top | item 45715724

(no title)

smnplk | 4 months ago

I wish he would have used C for everything. You need to buyin into Java's whole OOP thing, which I am not a fan of.

discuss

order

SatvikBeri|4 months ago

It's not too hard to adapt the first half of the book into whatever language you want. People have posted versions in dozens of languages: https://github.com/munificent/craftinginterpreters/wiki/Lox-...

(There are fewer options for the second half, since you need more control over memory management.)

Conscat|4 months ago

It's hard to say what "that hard" should be considered, but the book's first half involves Java reflection, which isn't obvious code to port to different languages in my opinion.

thw_9a83c|4 months ago

I understand. I wasn't a Java person when I read that book, yet I still prefer Java over more esoteric options. If Golang is easier for you to understand (no OOP), then I can recommend this one:

https://interpreterbook.com/

BTW, I'm not the author of either of those books, but I have read both of them.

nine_k|4 months ago

Wren, the topic of the post, is positioned as a descendant of Smalltalk, the most OOP language of them all. The author clearly finds the OOP paradigm important.