Wednesday, April 15, 2020

Crafting Interpreters

Bob Nystrom (via Gus Mueller):

This book contains everything you need to implement a full-featured, efficient scripting language. You’ll learn both high-level concepts around parsing and semantics and gritty details like bytecode representation and garbage collection. Your brain will light up with new ideas, and your hands will get dirty and calloused. It’s a blast.

Starting from main(), you build a language that features rich syntax, dynamic typing, garbage collection, lexical scope, first-class functions, closures, classes, and inheritance. All packed into a few thousand lines of clean, fast code that you thoroughly understand because you write each one yourself.

See also: Crafting “Crafting Interpreters”, Jordan Rose.

1 Comment RSS · Twitter

I’ve sort of been following allowing with this series and it’s really good. Bob Nystrom is a great writer. He previously wrote an amazing series (that he turned in to a book) called Game Design Patterns, which has some really insightful stuff that I think is interesting to developers of all software, not just game developers.

Leave a Comment