Skip to content
Tech News
← Back to articles

Show HN: GDSL – 800 line kernel: Lisp subset in 500, C subset in 1300

read original more articles
Why This Matters

This article highlights the potential for highly compact and efficient compiler development, demonstrating that small, purpose-built compilers for languages like Lisp and C can be created in just a few thousand lines of code. This challenges the notion that modern compilers must be enormous and complex, opening doors for more lightweight, customizable, and accessible compiler tools in the tech industry.

Key Takeaways

Pages for posting about my work until I decide to tackle websites.

2/14/26

Early GDSL

Seeds 3/14/26

Compilers are enormous these days, millions of lines spanning frontend to backend to turn text to process on a system. Any small compiler gets small by making tradeoffs, it constrains itself to a shape small enough that it fits, or simply doesn’t implement the features.

That’s what I would’ve believed before I wrote a subset of C in 1500 lines, with the only feature compromises being ‘I haven’t built that part yet but I could’. Then, on the same kernel with zero modification, wrote a Lisp compiler in 500 lines. They’re fast enough to be useful, they aren’t fragile stacks of tightly optimized assumptions ready to collapse at a breath. They’re just 3 weeks of work reconstructing what a language can mean. Which made me ask: what are these other compilers doing that add the million lines?

And this is the answer I’ve landed on so far.

Seams

Landscapes

Kludges

... continue reading