
Writing An Interpreter In Go
Thorsten Ball · 2018
Programming and computer science › Compilers and interpreters
#415 most recommended
Hacker News
107
mentions by 90 people · top 3% of 15,732 books
Open Library
4.00★★★★★★★★★★
1 rating · 7 want to read
Wikipedia
—
No article yet
About the book
A hands-on guide to building an interpreter for Monkey, a small C-style dynamically typed language, in Go. It covers the lexer, the Pratt parser and AST, and a tree-walking evaluator, including environments, functions, closures, strings, arrays, and hash maps. Building a working language implementation is within reach of an ordinary programmer, and the core pieces are small, understandable components rather than deep theory. The book's approach is to build each stage incrementally with tests and to show that a Pratt parser handles operator precedence in a compact, extensible way. It presents the tree-walking evaluator as a clear model of how a language runs, which readers can then extend or compare with other approaches.
Written by Claude from what it knows of this book.
What Hacker News says 81% recommend · 2% critical
In the commenters’ own words
I've been spending the last couple weekends porting Thorsten Ball's Monkey language (from the texts Writing an Interpreter in Go and Writing a Compiler in Go)…
I mean IME with Pluralsight, I fully meant what I said. Most videos barely go beyond the documentation. I've paid for Lynda (now LinkedIn learning), Frontend…
What Open Library readers say 4.00 from 1 rating
- 50
- 41
- 30
- 20
- 10
- 7 want to read
- 2 reading
- 2 have read
Only 1 rating: treat the average as a hint.
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
- Ask HN: Books you plan to read in 2020?
- Ask HN: What are some books where the reader learns by building projects?
- Ask HN: Fun Tech Book Recommendations?
- Ask HN: CS and programming books of 2017
- Ask HN: Books like “Crafting interpreters” or “The ray tracer challenge”?
- Ask HN: Books that teach you programming languages via systems projects?
- Ask HN: What books or courses do you know similar to "From Nand to Tetris"?
- Ask HN: What are some books where the reader learns by building projects?
Details
- First published
- 2018
- ISBN
- 9783982016115
- Editions known
- 2 at Open Library
- Open Library
- OL24141621W
Go (Computer program language)Mathematics
Read next: its neighbours on the mosaic
Crafting InterpretersRobert Nystrom · 2021 · recommended by 295 people · 18 people recommended both
Writing A Compiler In GoThorsten Ball · 2018 · recommended by 33 people · 27 people recommended both
Language Implementation PatternsTerence Parr · 2009 · recommended by 18 people · named together in 3 comments
The Go Programming LanguageAlan A. A. Donovan · 2015 · recommended by 40 people · 3 people recommended both
Threaded interpretive languagesR. G. Loeliger · 1981 · recommended by 24 people · 2 people recommended both
Compiler design in CAllen I. Holub · 1990 · recommended by 11 people · similar by subject and what people say about it
Engineering a compilerKeith D. Cooper · 2004 · recommended by 39 people · named together in 2 comments
Beautiful RacketMatthew Butterick · 2017 · recommended by 44 people · similar by subject and what people say about it
Ray Tracer ChallengeJamis Buck · 2019 · recommended by 21 people · 3 people recommended both
Write Great CodeRandall Hyde · 2004 · recommended by 16 people · similar by subject and what people say about it
Essentials of programming languagesDaniel P. Friedman · 1992 · recommended by 43 people · similar by subject and what people say about it
Advanced compiler design and implementationSteven S. Muchnick · 1997 · recommended by 13 people · similar by subject and what people say about it
Essentials of CompilationJeremy G. Siek · 2023 · recommended by 17 people · similar by subject and what people say about it
Ruby under a microscopePat Shaughnessy · 2014 · recommended by 32 people · named together in 2 comments
Compilers, principles, techniques, and toolsAlfred V. Aho · 1986 · recommended by 195 people · similar by subject and what people say about it
Parsing TechniquesDick Grune · 2007 · recommended by 16 people · similar by subject and what people say about it
An Introduction to Programming in GoCaleb Doxsey · 2012 · recommended by 11 people · similar by subject and what people say about it
Parsing Techniques A Practical GuideCeriel Jacobs · 2010 · recommended by 7 people · similar by subject and what people say about it
Writing compilers and interpretersRonald Mak · 1991 · recommended by 4 people · similar by subject and what people say about it
Writing Interpreters and Compilers for the Raspberry Pi Using PythonAnthony Dos Reis · 2018 · recommended by 3 people · similar by subject and what people say about it
Flex & bisonJohn R. Levine · 2009 · recommended by 3 people · similar by subject and what people say about it
Building GitJames Coglan · 2021 · recommended by 19 people · similar by subject and what people say about it
Programming in GoMark Summerfield · 2012 · recommended by 2 people · similar by subject and what people say about it
Programming Language PragmaticsMichael L. Scott · 1999 · recommended by 31 people · similar by subject and what people say about it