7 ms·
Book Review: “Crafting Interpreters” by Robert Nystrom
- kaladin_1 4y agoI started reading this book after seeing this thread, https://news.ycombinator.com/item?id=31835818 https://news.ycombinator.com/item?id=31835818 by Chidi. I like the author's sense of humour and the hand drawings. I'm currently doing an implementation in V, https://vlang.io/ https://vlang.io/ As this review says it can be challenging reimplementing it in another language but that is where the fun is. It can feel a bit boring just typing in the authors code into your IDE :(
- LanternLight83 4y agoI really look forward to reading the book myself, and don't have a background in compilation, but will probably try using my own language of choice for the first half anyways, because I feel I know what I want and no one can stop me :p > Second, because it's so large and packed already, the author left quite a few things out, particularly testing. There's precious little actual Lox code in the book, and no testing strategy. Testing interpreters well is relatively easy and very powerful, especially when implementing multiple ones for the same language. I do understand the space constraints, however. It's worth mentioning that the author does have a repo containing the tests they used while creating the book, which can be ran against the state of each interpreters (including your own) at the end of each chapter, which is really cool: https://github.com/munificent/craftinginterpreters#testing-your-implementation https://github.com/munificent/craftinginterpreters#testing-y...