DeepRead
Cover of Crafting Interpreters

Crafting Interpreters

Robert Nystrom · 2021

Programming and computer science › Compilers and interpreters

#46 most recommended

About the book

Crafting Interpreters is a free-to-read programming book that walks through building a complete programming language, Lox, from scratch. It is split into two implementations: a tree-walking interpreter written in Java, and a bytecode virtual machine written in C. Topics include scanning, parsing, expression evaluation, variables, functions, closures, classes, inheritance, garbage collection and the design of a stack-based VM. Nystrom's premise is that language implementation is not a black art reserved for compiler specialists, and that a working interpreter can be built by an ordinary programmer by writing it step by step. The book teaches by having the reader type in and run real code at each stage, rather than by formal theory or tool-generated parsers. It also contrasts the two designs, showing how a simple tree-walker gives way to a faster bytecode VM, and why the performance and memory trade-offs lead to the choices real languages make.

Written by Claude from what it knows of this book.

What Hacker News says 74% recommend · 1% critical

050100201720202022202420262022 peak · 94
This bookAverage book in Compilers and interpreters

In the commenters’ own words

What Open Library readers say 4.50 from 2 ratings

  1. 51
  2. 41
  3. 30
  4. 20
  5. 10
  • 26 want to read
  • 2 reading
  • 5 have read

Only 2 ratings: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2021
ISBN
9780990582939
Editions known
6 at Open Library
Open Library
OL26124818W

Computer scienceComputer softwareComputers

Explore in the mosaic

Read next: its neighbours on the mosaic