Show HN: RedDragon, LLM-assisted IR analysis of code across languages

Hacker News Show AI
Generative AI

RedDragon is an experiment in building a compiler pipeline that analyses code (malformed / without dependencies / unknown language) across ~15 languages through a single 27-opcode IR, with LLM fallbacks. The design question: where exactly can LLMs enter a compiler pipeline? RedDragon has three specific insertion points: - LLM as an alternative compiler frontend. For languages without a built-in parser, the LLM receives a formal IR spec (all 27 opcodes, lowering templates, worked examples) and translates source to IR directly. No language-specific code needed.