News for hackers. Stuff that matters.
Re:Crafting Interpreters by brcmthrowaway on Friday July 12, 2024 @09:52PM (#40951125)
Is this book still relevant?
Re:Crafting Interpreters by metadat on Friday July 12, 2024 @09:56PM (#40951153)
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.
Re:Crafting Interpreters by runevault on Saturday July 13, 2024 @12:40AM (#40951815)
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.

Re:Crafting Interpreters by linhns on Saturday July 13, 2024 @03:44AM (#40952514)
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