2 ms·
> high-level goal: a small book that builds a complete, efficient interpreter. Bob, you wrote 600 full-sized pages, not including appendices. And I'm going to
by mabbo 5y ago
> high-level goal: a small book that builds a complete, efficient interpreter.
Bob, you wrote 600 full-sized pages, not including appendices.
And I'm going to spend my 3-week vacation coming up reading all of them.
- mumblemumble 5y agoFor what it's worth, if you only go through the implementation of the tree-walk interpreter in Java, that's 234 pages. The next 370-ish pages are the C re-implementation as a bytecode interpreted language. So that adds a bunch more stuff to cover: actually compiling, bytecode interpretation, garbage collection, etc. Also, a huge chunk of it is code listings. Unlike other comparable books I've seen, Nystrom's doesn't skimp on the details, or make you go download the code from GitHub. Compared to how other books I've seen tend to do it, I'd argue that that's several hundred pages' worth of making the book quicker to read.