Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I was so excited for this, then I realized it uses C (which I'm not familiar with).


The first half of the book uses Java, which you might be more familiar with. The C it uses is fairly vanilla. You shouldn't have to be a C expert to understand it.

Also, all of the code in the book has been ported to a large number of languages:

https://github.com/munificent/craftinginterpreters/wiki/Lox-...


The book has two interpreters. The first one is in Java. The second one uses C. If you're familiar with Java then it makes for a great learning experience to contrast the Java version with the C version. (I think it's worth it to learn just enough C to be able to go through this second version. It makes for an awesome learning experience!)


I hate, HAAAAAAATEEEE, C.

But his C is so clean. Is readable as far as is possible, imho.

Plus, exist some many implementations of this in as languages are, so you can go along (https://github.com/search?q=crafting+interpreters or using https://github.com/search?q=lox+interpreter).


The golang based https://interpreterbook.com/ project might be interesting to you instead, then?


The first implementation is in java and the second is in c. Even if you don’t know C you should give this book a shot!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: