The best compiler textbooks, according to hackers
9 compiler textbooks were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one. None of them earns the Hacker Approved badge yet.
All 9 compiler textbooks, ranked
Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.
| Rank | |||||||
|---|---|---|---|---|---|---|---|
| 1 | Compilers: Principles, Techniques, and Toolsby Aho, Sethi and Ullman | 23 | 17 | 58% | 9 | — | — |
| 2 | Modern Compiler Implementationby Andrew Appel | 9 | 0 | 100% | 4 | — | — |
| 3 | Writing a C Compilerby Nora Sandler | 8 | 2 | 80% | 8 | — | — |
| 4 | Engineering a Compilerby Cooper and Torczon | 6 | 0 | 100% | 3 | — | — |
| Tied 5 | Compiler Constructionby Niklaus Wirth | 4 | 0 | 100% | 3 | — | — |
| Tied 5 | Essentials of Compilationby Siek | 4 | 0 | 100% | 3 | — | — |
| Tied 5 | Lisp in Small Piecesby Christian Queinnec | 4 | 1 | 80% | 3 | — | — |
| Tied 5 | Understanding and Writing Compilersby Richard Bornat | 4 | 0 | 100% | 1 | — | — |
| 9 | Introduction to Compilers and Language Designby Douglas Thain | 3 | 1 | 75% | 1 | — | — |
How we rank
Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same compiler textbook in five threads counts once.
The badge goes to compiler textbooks that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.
Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.