Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Writing A Compiler In Go

    Writing A Compiler In Go

    Thorsten Ball · 2018

    "This is the sequel to Writing An Interpreter In Go. We're picking up right where we left off and write a compiler and a virtual machine for Monkey. Runnable and tested code front and center, built from the ground up, step by step -- just like before. But this time, we're going to define bytecode, compile Monkey and execute it in our very own virtual machine. It's the next step in Monkey's evolution."--Back cover.

    Computer Science
    Open Library
    Stats for nerds
    33recommend
    42mentions
    39people
    2016–2026years
    83% recommend17% neutral

    Mentions per year

    201620182020202220242026

    What Hacker News says

    1. prologicOct 2026
      I still think the best books on interpreter and compiler implemtnations are the books by Thorsten Ball:

      - Writing an Interpreter in Go [1]

      - Writing a Compiler in Go [2]

      Absolutely best books I've ever read on the subject. And if you like to follow a step-by-step (each commit is a part of the boks) feel free to clone my own monkey-lang that followed the books pretty closely: https://git.mills.io/prologic/monkey

      [1] https://interpreterbook.com/

      [2] https://compilerbook.com/

      thread
    2. seg_lolDec 2025
      There is a good body of literature that is distinct from the academic compiler literature.

      https://t3x.org/

      https://compilerbook.com/

      https://interpreterbook.com/

      https://www.craftinginterpreters.com/

      R. G. Loeliger Threaded Interpretive Languages Their Design And Implementation https://news.ycombinator.com/item?id=43973544

      https://github.com/IUCompilerCourse/Essentials-of-Compilatio...

      And check out Andy Keep's Nanopass Compiler work, https://nanopass.org/

      thread
    3. Spartan-S63Apr 2025
      I've read Writing an Interpreter in Go and Writing a Compiler in Go. Crafting Interpreters is on my bookshelf and on the list to get through Soon™. The latter books by Thorsten Ball are an incredibly approachable introduction to the topic. It's how I initially learned Go and it reinforced what I learned back in my undergrad on how parsers and compilers work.

      I love writing parsers and get far too few opportunities to flex that muscle. I wish I had read Crafting Interpreters for this question, as well, but by all accounts it's an incredible tome, as well. Read them all and see what different information you pick up from them!

      thread
    4. kgabisApr 2025
      I went over "Writing an Interpreter in Go" and "Writing a Compiler in Go" but instead of doing it in Go, I did it in C. In hindsight it was a very good decision, because it forced me to write the code myself, instead of mindlessly copying it. After finishing the books I've spent some time extending the compiler I've written and I've published it on github (https://github.com/kgabis/ape). I've read Bob Nystrom's previous book, so I'm sure Crafting Interpreters is great as well, but I really recommend Writing an Interpreter/Compiler in Go.
      thread
    5. sitkackFeb 2025
      There is a whole body of non-academic work aimed at practioners for implementing compilers.

      Nils Holm's work https://t3x.org/

      Teaching and Learning Compilers Incrementally - Jeremy Siek - RacketCon 2023 https://www.youtube.com/watch?v=43VA_QaTRT8

      Nanopass https://nanopass.org/

      original paper that was the basis for nanopass http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf

      https://www.reddit.com/r/ProgrammingLanguages/comments/gnzra...

      The Crafting Interpreters and the Thorsten Ball books

      https://craftinginterpreters.com/contents.html

      https://interpreterbook.com/ https://compilerbook.com/

      https://www.phind.com/search/cm7efcpv000002e6hqdbfojex

      thread
    6. dashtiarianJan 2024
      For a start you should, you should buy the latest version of the Dragon Book and then put it on the shelf.

      Then you should get a copy of Modern Compiler implementation in ML. I love the Crafting Interpreters book, and also the Writing A Compiler In Go book; but they will not satisfy any person with undergraduate CS education.

      thread

    Related

    Cover of Writing An Interpreter In Go
    2016–2026

    Writing An Interpreter In Go

    Thorsten Ball
    73 recommend · 107
    Cover of Engineering a compiler
    2007–2026

    Engineering a compiler

    Keith D. Cooper
    39 recommend · 91
    Cover of Optimizing compilers for modern architectures
    2010–2025

    Optimizing compilers for modern architectures

    Randy Allen
    3 recommend · 5
    Cover of The Go Programming Language
    2015–2026

    The Go Programming Language

    Alan A. A. Donovan
    40 recommend · 100
    Cover of Compiler construction
    2008–2026

    Compiler construction

    Niklaus Wirth
    30 recommend · 81
    Cover of How to Design Programs
    2007–2026

    How to Design Programs

    Matthias Felleisen
    277 recommend · 776
    Cover of Crafting Interpreters
    2017–2026

    Crafting Interpreters

    Robert Nystrom
    295 recommend · 521
    Cover of Compilers, principles, techniques, and tools
    2007–2026

    Compilers, principles, techniques, and tools

    Alfred V. Aho
    195 recommend · 958