Back to the bookshelf

Typographic jacket · original cover not fetched

FROM THE SHARED SHELF · 2006–2026 SAMPLE

Writing An Interpreter In Go

Thorsten Ball

6 readers recommend it across 6 discussions

Topics are model-inferred labels.

Keep it on your reading list

THE WORD OF MOUTH

What made it worth passing on?

Original Hacker News comments, in the readers’ own words.

stevekemp
Crafting Interpreters is a good recommendation, and in the same spirit "Writing an Interpreter in Go" (and it's followup about writing a virtual machine) is a good addition. A lot of the complexity and front-work of these kinda things is the parsing step though, so you can follow MAL (or any other make a lisp tutorial) though that won't necessarily help with other languages it frees you to jump to the interesting parts. FORTH, mentioned in another comment, has that same appeal. I wrote a quick tutorial here, back in the day: https://github.com/skx/foth

Also recommended in this reply

benjaminjosephw
Thorsten Ball's Writing An Interpreter In Go. A fantastically written technical book that walks through writing an interpreter for a simple programming language. It's test driven and a great introduction to the core concepts. Also a good book to get hands on with idiomatic Go code. https://interpreterbook.com/ Thorsten does a great job talking about the concepts in the book in this Go Time podcast: https://changelog.com/gotime/107
misiti3780
Writing a Go Interpreter Writing a Go Compiler No One Cares about Crazy People I Heard You Paint Houses UNIX: A History and a Memoir Red Famine: Stalin's War on Ukraine How Asia Works The Dream Machine Black Earth The Fabric of Reality Behave (tried twice, maybe third times a charm?) A Short History of Nearly Everything Stiff: The Curious Lives of Human Cadavers Genius: The Life and Science Richard Feynman Super Thinking Man's Search for Meaning The Cooking Gene The Vital Question: Why is Life The Way it Is (re-read) The Case Against Sugar The 15 Decisive Battles of the World The History of the Peloponnesian War The Beginning of Infinity The Book of Why