top | item 45715033

(no title)

plainOldText | 4 months ago

Reminder the creator of Wren wrote the awesome Crafting Interpreters book [0].

[0] https://craftinginterpreters.com/

discuss

order

thw_9a83c|4 months ago

It is an excellent book and one of the canonical texts on the subject. My only suggestion for the "Lox" language would be to include an implementation of arrays, and preferably also hash/dict arrays. Other than that, the book contains everything you need to know about implementing a programming language.

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.

ronbenton|4 months ago

Knowing this is the author makes me 1000% more interested in Wren. What a great book!

l9o|4 months ago

This is awesome. Thank you for sharing. I have been working on a small interpreted language for shell scripts with lots of help from Claude Code. The main idea is to automatically generate the cli interface for the scripts based on function definitions. However, I'm far from a programming languages expert, so I've been a bit hesitant to share my work. Going to give this book a read this week to see how far I am. Thank you!

pansa2|4 months ago

Yeah, my understanding is that the bytecode interpreter in the second half of the book is essentially a stripped-down version of the Wren virtual machine.

alberth|4 months ago

Is Bob still involved (in Wren)?

I thought his focus was Dart these days given being employed by Google.