Hacker ApprovedDepartments

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.

Compiler textbooks ranked by the number of people who recommend them
Rank
1Compilers: Principles, Techniques, and Toolsby Aho, Sethi and Ullman231758%9——
2Modern Compiler Implementationby Andrew Appel90100%4——
3Writing a C Compilerby Nora Sandler8280%8——
4Engineering a Compilerby Cooper and Torczon60100%3——
Tied 5Compiler Constructionby Niklaus Wirth40100%3——
Tied 5Essentials of Compilationby Siek40100%3——
Tied 5Lisp in Small Piecesby Christian Queinnec4180%3——
Tied 5Understanding and Writing Compilersby Richard Bornat40100%1——
9Introduction to Compilers and Language Designby Douglas Thain3175%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.