Re:Crafting Interpreters
by brcmthrowaway on Friday July 12, 2024 @09:52PM
(#40951125)
Is this book still relevant?
[ Parent
| on HN ]
Yes, very much so. Why wouldn't it be? Can you recommend a better resource for learning how to create a programming language from first principles?
I just started it today, which I why I felt the inclination to create this post.
Re:Crafting Interpreters
by LoFiSamurai on Friday July 12, 2024 @10:32PM
(#40951308)
It’s an incredible book. Munificent did an amazing job.
Re:Crafting Interpreters
by SatvikBeri on Friday July 12, 2024 @09:55PM
(#40951141)
It's a 3 year old book on compilers, so if it was ever relevant once, it surely still is today!
Re:Crafting Interpreters
by danielvaughn on Friday July 12, 2024 @09:54PM
(#40951137)
Definitely. I just went through the first 60% or so and it's great. The language is java but it's easy to translate to other languages, which would be a good learning exercise in its own right.
This is not a book about bleeding edge compiler techniques. It teaches the foundations that makes it easier to learn the more complex parts of writing a compiler.
Unless compiler design radically changes it will likely remain a relevant book for a very very long time. Especially since Java-adjacent languages are likely to remain in vogue and the odds of us losing C as a major language in the next few decades is basically zero.
Super. Bob’s way of presenting his content is what I feel the most important to get out of. Great communicator.
Re:Crafting Interpreters
by rassibassi on Saturday July 13, 2024 @06:23AM
(#40953096)
CFG (context free grammar), which is explained in the book, is used here together with LLMs: https://tree-diffusion.github.io