A few I know of are: - Writing an Interpreter in Go by Thorsten Ball - Highly recommended! - Crafting Interpreters by Robert Nystrom if you can get past the prose; HTMLversion freely available - "Teaching Compilers Backward" in SigPlan naturally makes sense for interpreters as well - Ben Lynn's writings on the subject - bernsteinbear "Bytecode compilers and interpreters"
I'll have to check out some of the recommendations from @SimGunther. I've run across "Crafting Interpreters" before, but I haven't really spent any quality time with it. The book I spent the most time in was the purple dragon book: "Compilers: Principles, Techniques, & Tools" by Aho, Lam, Sethi and Ullman. I don't think this is the best book ... it is not beginner friendly and I really struggled through some of the parts before I understood it. It is very academically focused. I've played with the idea of building a more tutorial-based/beginner-friendly/prepared series on the topic, but I have other projects I have to finish up first.
Hi, thanks for sharing these streams. Can you suggest learning resources for creating a compiler from scratch?
A few I know of are:
- Writing an Interpreter in Go by Thorsten Ball - Highly recommended!
- Crafting Interpreters by Robert Nystrom if you can get past the prose; HTMLversion freely available
- "Teaching Compilers Backward" in SigPlan naturally makes sense for interpreters as well
- Ben Lynn's writings on the subject
- bernsteinbear "Bytecode compilers and interpreters"
I'll have to check out some of the recommendations from @SimGunther. I've run across "Crafting Interpreters" before, but I haven't really spent any quality time with it.
The book I spent the most time in was the purple dragon book: "Compilers: Principles, Techniques, & Tools" by Aho, Lam, Sethi and Ullman. I don't think this is the best book ... it is not beginner friendly and I really struggled through some of the parts before I understood it. It is very academically focused.
I've played with the idea of building a more tutorial-based/beginner-friendly/prepared series on the topic, but I have other projects I have to finish up first.