Hacker ApprovedDepartments

Let's Build a Compiler

Let's Build a Compiler by Jack Crenshaw

by Jack Crenshaw

Hacker Approved

Shares rank 4 of 24 online tutorials by recommenders

People recommend it as an accessible, readable introduction that got many started building compilers and was preferred over other books. Critics note the series stops before it becomes truly useful and dislike the baked-in line wrapping.

People recommend it as an accessible, readable introduction that got many started building compilers and was preferred over other books. Critics note the series stops before it becomes truly useful and dislike the baked-in line wrapping.

13 people gave an opinion

recommend it
12
criticize it
1
approval share
92%
Each figure is one person. RecommendsCriticizes

Recommended in 5 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: not recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 12 people recommend itNeeds 10 or more, met.
  • 12 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 5 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Accessible without prior knowledge

    “accessible in the sense of being readable without extensive prior knowledge”

    Comment from 11 Dec 2025 in “Revisiting "Let's Build a Compiler"”

    “this was the most accessible body of work”

    Comment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”
  • Helps newcomers start building compilers

    “building a simple compiler for a toy language was a small project that was well within my grasp”

    Comment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”

    “I got to learn from Jack Crenshaw's tutorial from comp.compilers newsgroup on USENET.”

    Comment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”

    “I loved that tutorial! It got me started down this path.”

    Comment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”
  • Preferred over other compiler books

    “Crenshaw's Let's Build a Compiler was more useful to me than all these books”

    Comment from 10 May 2026 in “Making your own programming language is easier than you think (but also harder)”

    “IMHO the best tutorial is Crenshaw's "Let's Build a Compiler" series.”

    Comment from 8 Nov 2025 in “Becoming a compiler engineer”

What people warn about

Each mark is one comment

  • Baked-in line wrapping in listings

    “I've been having a look at the Crenshaw series, and it seems pretty good, but one thing that kinda annoys me is the baked-in line wrapping.”

    Comment from 15 Apr 2026 in “Want to Write a Compiler? Just Read These Two Papers (2008)”

Other online tutorials people recommend

The four most recommended other online tutorials, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Let's Build a Compiler by Jack Crenshaw compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
CSS-Tricks23388%4—Approved
Beej's Guide to Network Programmingby Brian "beej Jorgensen" Hall16194%723 yrs3 ownersApproved
Learn OpenGL15383%3——
Let's Build a Compilerby Jack CrenshawThis page12192%5—Approved
Patterns.dev12763%1——
See all 24 online tutorials, ranked

What people said

12 of the 14 comments that mention it, newest first. Each links to the original comment.

“Crenshaw's books are also pretty good too -- even if a bit outdated by now.”

RecommendsComment from 24 Oct 2026 in “Practical Compiler Construction – Nils M Holm”

“Crenshaw's Let's Build a Compiler was more useful to me than all these books”

RecommendsComment from 10 May 2026 in “Making your own programming language is easier than you think (but also harder)”

“crenshaw is fantastic but this structural thinking is what separates toy compilers from ones you can actaully extend later”

RecommendsComment from 15 Apr 2026 in “Want to Write a Compiler? Just Read These Two Papers (2008)”

“I've been having a look at the Crenshaw series, and it seems pretty good, but one thing that kinda annoys me is the baked-in line wrapping.”

MixedComment from 15 Apr 2026 in “Want to Write a Compiler? Just Read These Two Papers (2008)”

“accessible in the sense of being readable without extensive prior knowledge”

RecommendsComment from 11 Dec 2025 in “Revisiting "Let's Build a Compiler"”

“Crenshaw's tutorial doesn't quite reach the point where it becomes useful”

CriticizesComment from 11 Dec 2025 in “Revisiting "Let's Build a Compiler"”

“I loved that tutorial! It got me started down this path.”

RecommendsComment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”

“I printed this out (so I could have it with me everywhere) and read it when I was younger.”

RecommendsComment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”

“I got to learn from Jack Crenshaw's tutorial from comp.compilers newsgroup on USENET.”

RecommendsComment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”

“building a simple compiler for a toy language was a small project that was well within my grasp”

RecommendsComment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”

“this was the most accessible body of work”

RecommendsComment from 10 Dec 2025 in “Revisiting "Let's Build a Compiler"”

“IMHO the best tutorial is Crenshaw's "Let's Build a Compiler" series.”

RecommendsComment from 8 Nov 2025 in “Becoming a compiler engineer”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.