Goodreads helps you keep track of books you want to read.
Start by marking “Crafting Interpreters” as Want to Read:
Crafting Interpreters
Enlarge cover
Rate this book
Clear rating
Open Preview

Crafting Interpreters

4.72  ·  Rating details ·  170 ratings  ·  16 reviews
Despite using them every day, most software engineers know little about how programming languages are designed and implemented. For many, their only experience with that corner of computer science was a terrifying "compilers" class that they suffered through in undergrad and tried to blot from their memory as soon as they had scribbled their last NFA to DFA conversion on t ...more
Paperback, 865 pages
Published July 28th 2021 by Genever Benning (first published July 27th 2021)
More Details... Edit Details

Friend Reviews

To see what your friends thought of this book, please sign up.

Reader Q&A

To ask other readers questions about Crafting Interpreters, please sign up.

Be the first to ask a question about Crafting Interpreters

Community Reviews

Showing 1-30
Average rating 4.72  · 
Rating details
 ·  170 ratings  ·  16 reviews

More filters
Sort order
Start your review of Crafting Interpreters
Omar Khaled
Aug 26, 2020 rated it it was amazing
Just think about the amount of dedication and self discipline you need to have to produce something like that
Jun 13, 2021 rated it it was amazing
Programming languages are something of a hobby of mine. Going as far back as undergrad, I’ve written a fair few interpreters and compilers over the years. I’ve never really gotten beyond a strong basic level, but I’ve always wanted to. Crafting Interpreters is a great book for exactly that.

The book essentially walks you through two styles of interpreter of the same language: just an AST walking style written in Java (the sort I’ve done a few times) and then a much more optimized one based on by
Rene Stein
Oct 02, 2021 rated it it was amazing
Kniha Crafting Interpreters od Roberta Nystroma, kterou jsem o víkendu dočetl, je dílem, které by se mohlo stát klasikou.
Pro koho kniha je? Chtěli jste někdy vytvořit svůj vlastní programovací jazyk, nebo mít jednoduchý "embedovaný" skriptovací jazyk v aplikaci ? Moc ambiciózní a vy jste spokojeni se stávajícími jazyky? Hráli jste si třeba s C# Roslyn SDK, nebo jste použili C# generators a zhrozili jste se, jak amatérsky a nevzhledně vypadá - samozřejmě ne váš, ale kolegy 🙂 - generátor (no gene
Dec 23, 2020 rated it it was amazing
This is a great introduction to writing an interpreter. It start with the simple Java implementation, goes on to implement a virtual machine and then concludes by re-implementing everything in C with focus on performance. You will see chapters going through implementation of advanced features such as closures and OOP with inheritance.

In comparison to the famous Dragon Book this is a lot more practical reading. The book goes through every line of code, do not excluding anything. Despite of this,
Apr 24, 2021 rated it liked it
This was recommended by a co-worker to whom I had made clear that I didn't quite understand the difference between bytecode and native code or exactly what WASM is. I can now say I do understand these things and that I could probably write a compiler if so compelled. Like so many things in computing, compilation appears to be a black art only the most hard-core geniuses could understand until you learn just a little bit about it.

So this book is great for demystification, but it's quite long and
George Reilly
Dec 29, 2021 rated it it was amazing
I’ve read hundreds of technical books over the last 40 years. Crafting In­ter­preters is an instant classic, and far more readable and fun than many of the classics.

Nystrom covers a lot of ground in this book, building two very different in­ter­preters for Lox, a small dynamic language of his own design. He takes us through every line of jlox, a Java-based tree-walk in­ter­preter, and of clox, a bytecode virtual machine written in C.

For the first im­ple­men­ta­tion, jlox, he covers such topics a
Amr Hesham
Aug 13, 2019 rated it it was amazing
Amazing book to learn and practice about interpreter, Compiler, Virtual Machine
Rasmus Källqvist
May 31, 2022 rated it really liked it
A very good book, but the choice of Java for the first half strikes me as very odd. Too many pages are spent trying to make Java a language you can write a programming language implementation with, which probably would've been better served focusing on the topic by choosing a more suitable language like a functional one (OCaml, Haskell) or an imperative with sum type support (Rust, C++17) ...more
Melvin Guerrero
Oct 31, 2022 rated it it was amazing
This is an extraordinary book that helps you understand how a programming language works and how to develop your own. This book also has a phenomenal community on GitHub with many examples from this book in various programming languages on how to create your own interpreter.
Rohith Rokkam
Sep 21, 2022 rated it liked it
Shelves: did-not-finish
Good book to prove that there's no magic to interpreters.

I didn't like that there were two interpreters or the language choices of Java/C. It would have been nice to have a single language for the whole book, to avoid reimplementing core pieces of the interpreter and boring boilerplate.
Dec 16, 2021 rated it it was amazing
Went through this and coded up the first interpreter in Java. Very clearly written, with nice steps that build incrementally. I really enjoyed the new things I learned and the things I already knew that he explained in new ways.
Nov 15, 2021 rated it really liked it
A good overview of how to implement a bytecode interpreter; if you are willing to take on a dialect of LISP called Scheme, "The Structure and Interpretation of Computer Programs", might make a good companion. ...more
Nick Keighley
Aug 23, 2021 rated it it was amazing
Really is a fun book. The author brings a real delight to what he is writing about. Another book of his "Game Programming Patterns" is equally fun. ...more
Victor Zverovich
Sep 24, 2022 rated it really liked it
Pretty good hands-on introduction to writing a compiler/interpreter. The choice of C as an implementation language makes the second part of the book somewhat messy but otherwise I recommend it.
Imaculate Mosha
Mar 27, 2022 rated it it was amazing
Shelves: technical
Friendly and fun journey into the world of programming languages. Highly recommend!
rated it it was amazing
Sep 23, 2022
Nesvarbus Vardas
rated it it was amazing
Jun 27, 2021
Jordy Van
rated it it was amazing
Dec 17, 2021
rated it it was amazing
Dec 30, 2021
Wan Adam
rated it it was amazing
Oct 08, 2022
rated it it was amazing
Aug 20, 2021
rated it it was amazing
Apr 26, 2020
Bill de hÓra
rated it really liked it
Dec 29, 2021
Mandar Kulkarni
rated it liked it
May 23, 2020
rated it really liked it
Jan 18, 2021
rated it it was amazing
Apr 07, 2022
Erlend Landrö
rated it it was amazing
Nov 29, 2021
Xueqiao Xu
rated it it was amazing
Jun 14, 2020
rated it it was amazing
Nov 02, 2021
« previous 1 3 4 5 6 next »
There are no discussion topics on this book yet. Be the first to start one »

Readers also enjoyed

  • Computer Systems: A Programmer's Perspective
  • Designing Data-Intensive Applications
  • Operating Systems: Three Easy Pieces
  • A Philosophy of Software Design
  • Computer Networking: A Top-Down Approach
  • Mister Miracle
  • Programming Languages: Application and Interpretation
  • The Manager's Path: A Guide for Tech Leaders Navigating Growth and Change
  • Software (Ware, #1)
  • Algorithms Plus Data Structures Equals Programs (Prentice-Hall series in automatic computation)
  • Great Science Fiction Stories by the World's Great Scientists
  • JavaScript Allongé: A strong cup of functions, objects, combinators, and decorators
  • The World of Odysseus
  • Effective Java
  • The Little Schemer
  • The Neutrino: Ghost Particle of the Atom
  • One Minute Manager Salesperson
  • The Algorithm Design Manual
See similar books…

Goodreads is hiring!

If you like books and love to build cool products, we may be looking for you.
Learn more »
Robert Nystrom has programmed professionally for twenty years, about half of which is in games. During his eight years at Electronic Arts, he worked on behemoths like Madden and smaller titles like Henry Hatsworth in the Puzzling Adventure. He's shipped games on the PC, GameCube, PS2, XBox, X360, and DS, but is most proud of the tools and shared libraries he created for others to build on. He love ...more

Related Articles

It’s hard to believe the year 2022 is already coming to an end. That went fast, didn’t it? Still, there’s just enough time to wedge in a...
39 likes · 7 comments