It is an excellent book and one of the canonical texts on the subject. My only suggestion for the "Lox" language would be to include an implementation of arrays, and preferably also hash/dict arrays. Other than that, the book contains everything you need to know about implementing a programming language.
This is awesome. Thank you for sharing. I have been working on a small interpreted language for shell scripts with lots of help from Claude Code. The main idea is to automatically generate the cli interface for the scripts based on function definitions. However, I'm far from a programming languages expert, so I've been a bit hesitant to share my work. Going to give this book a read this week to see how far I am. Thank you!
Yeah, my understanding is that the bytecode interpreter in the second half of the book is essentially a stripped-down version of the Wren virtual machine.
thw_9a83c|4 months ago
smnplk|4 months ago
x-yl|4 months ago
mhaberl|4 months ago
[0] https://gameprogrammingpatterns.com/
ronbenton|4 months ago
l9o|4 months ago
manveru|4 months ago
pansa2|4 months ago
alberth|4 months ago
I thought his focus was Dart these days given being employed by Google.