DeepRead
Cover of Writing A Compiler In Go

Writing A Compiler In Go

Thorsten Ball · 2018

Programming and computer science › Compilers and interpreters

#1,115 most recommended

About the book

A hands-on guide to building a compiler and virtual machine in Go for the Monkey language, continuing from the tree-walking interpreter in the author's earlier book. It covers turning the parsed AST into bytecode, designing an instruction set, and running that bytecode on a stack-based VM. Compilers and virtual machines are understandable engineering that a programmer can build step by step, without a background in compiler theory. The book presents the bytecode compiler and VM as a natural extension of an interpreter the reader has already written, so each new piece builds on working code. Its implicit claim is that writing the system yourself is the most direct way to learn how high-level code is turned into something a machine executes.

Written by Claude from what it knows of this book.

What Hacker News says 85% recommend · 0% critical

05102016202020262022 peak · 10
This bookAverage book in Compilers and interpreters

In the commenters’ own words

What Open Library readers say

No Open Library reader has rated it yet.

  • 4 want to read
  • 0 reading
  • 1 have read

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
2018
Editions known
2 at Open Library
Open Library
OL24141622W

Explore in the mosaic

Read next: its neighbours on the mosaic