I really wish this book used something other than Java. Nothing against Java - just that I don't know it and don't feel excited about learning it.
For what it's worth, these days you could use an LLM to turn each code snippet into many other languages. Or just focus on his words and use the snippets like generic code and figure out how to do it in whatever language of choice. You don't need to "learn java" to become conversant or read it as pseudocode.
Crafting Interpreters
41–50 of 193 posts
Re: Crafting Interpreters
#42I really wish this book used something other than Java. Nothing against Java - just that I don't know it and don't feel excited about learning it.
Re: Crafting Interpreters
#43I really wish this book used something other than Java. Nothing against Java - just that I don't know it and don't feel excited about learning it.
Re: Crafting Interpreters
#44Mad respect to those with that kind of dedication, and everyone working to keep all the dev infrastructure going, but I'm super glad my "I want to make a language" phase was just a passing interest! That's just a crazy amount of work!
Re: Crafting Interpreters
#45I really wish this book used something other than Java. Nothing against Java - just that I don't know it and don't feel excited about learning it.
When Java gets pattern matching, it will become a more reasonable choice to write an interpreter in.
Re: Crafting Interpreters
#46Re: Crafting Interpreters
#47Alright, I will finally read the book. It has been collecting dust in my bookshelf for a while.
Re: Crafting Interpreters
#48Mad respect to those with that kind of dedication, and everyone working to keep all the dev infrastructure going, but I'm super glad my "I want to make a language" phase was just a passing interest! That's just a crazy amount of work!
It doesn't have to be a crazy amount of work, see Lisp-in-Lisp in the original SCIP book or a lambda calculus interpreter in Haskell (fits on a screen).
I guess if you have a lot of fairly small ideas with a lot of novelty, I could see the appeal of a new language to express them in.
Re: Crafting Interpreters
#49Mad respect to those with that kind of dedication, and everyone working to keep all the dev infrastructure going, but I'm super glad my "I want to make a language" phase was just a passing interest! That's just a crazy amount of work!
It doesn't have to be a crazy amount of work, see Lisp-in-Lisp in the original SCIP book or a lambda calculus interpreter in Haskell (fits on a screen).
You could spend considerably more time implementing a Lisp dialect's math library than the interpreter. There are a lot of combinations.
Where are the objects, hash tables, exception handling, ...
Of course you can get some of these things from a host language, but someone had to make them.
Re: Crafting Interpreters
#50Is this book still relevant?