HN Hall of Fame Weekly email

Writing a C Compiler, Part 1

norasandler.com Books & learning Tutorials & guides Computer science Candidate
Screenshot of norasandler.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 3 calendar years, with breakout response in 2 of them.

submissions
3
submitters
3
observed span
2017–2023
peak thread · 60 comments
369 pts
latest 20+ return · 2023-06-08
107 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

Most compiler tutorials show how to write a compiler, but now how to write an optimising compiler. In fact, it's not that much harder, and is a nice walkthrough in some very cool ideas in graph theory, dataflow analysis,etc. Which is why I've been writing a mini-LLVM in haskell as a tutorial to explain optimising compiler construction: [Tiny optimising compiler](https://github.com/bollu/tiny-optimising-compiler)

bollu·369-point thread·

Yet another “compiling” course that puts all the emphasis on parsing. Rule of thumb: parsing/lexing shouldn’t takes more than 10% of your compiler course.

hcks·107-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
479

reference only — not used in Hall rules or ranking

Total comments
103

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2017-12-01Writing a C Compiler, Part 1First breakout · Best threadsidcool36960
2019-07-09Writing a C Compilerpcr91030330
2023-06-08Writing a C Compiler (2017)Latest 20+ point returnlrsjng10743