Y Hacker News Books
Buy on Amazon4.8 out of 5, 734 ratings on Amazon

#175 of 2,629 all-time

Crafting Interpreters

Robert Nystrom

32 people recommended it in 18 threads, 2017–2025.

What people on Hacker News said

forbiddenvoid
Crafting Interpreters by Robert Nystrom is of similar quality. There are a lot of 'oh that's how that works' moments in this book.

on HN, 2022

nyarlathotep_
An absolute joy to work through and provides enough technical detail to provide a good foundation without having to slog through compiler textbooks.

on HN, 2023

dgb23
I think it's a good method for experienced programmers, who are self-taught (like me) or just want to brush up some skills and knowledge.

on HN, 2023

TrustPatches
Even if you don’t care about language design, it’s a great way to get you to think about the tools we use everyday, how they get made, and why their limitations exist.

on HN, 2022

munificent
which walks you through implementing an interpreter (well, two actually) from scratch, a chapter at a time:

on HN, 2017

And on Amazon

Excellent book!

Must read for anyone interested in programming (whether you like to build interpreters or not). The step-by-step approach, gentle introduction to complex topics and humor is a joy to read.

Shankar Narayanan · verified purchase · 5/5

Great hands-on interpreter implementation book for beginners

Excellent book! It takes a hands-on approach to implementing an interpreter. While it covers the basics of theory, it also walks you through two complete implementations of an interpreter for the Lox language (a language designed specifically for this book). The book is not heavy on theory and is an excellent choice for someone who knows nothing about interpreters and wants to learn by doing or for someone who also wants to be able to say, "I wrote an interpreter." It is also beautifully designed, full of nice illustrations, and is written with humor.

Idan · verified purchase · 5/5

Super. Fascinating.

One of the best tech books I've ever read. The author implements an interpreter for the same (made up) language, twice. Once in Java, and again, in a much more low-level way, in C. The writing is crisp and clear, and the examples are complete. (the full code is available on GitHub, and he walks you through everything) You'll get as much out of this book as you want. Highly recommend.

Adam Rackis · verified purchase · 5/5

Where it comes up