I wrote an implementation of the monkey lang interpreter from Writing An Interpreter In Go (interpreterbook.com).
Was fun to implement and mess around with roc some more. For the most part, I think it turned out ok. I tried to make things kinda DOD inspired, which was probably a mistake (probably should have started with just the simple version). The evaluator is a lot slower than I would like. Since I implemented exactly as specified in the book, I am simulating mutable references in Roc. It just is a bad combo. That said, it does work.
Also, using an emoji name for the executable was definitely a bad idea, but I like :monkey_face::rock_on:๐ผ. The issue is that my terminal does not like emoji. Leads to text glitchiness.
did you do it for theprimeagen's thingy? :grinning_face_with_smiling_eyes:
I did it slightly before. then i added it to the prime thing. Though i later went back and simplified the version for prime.
Last updated: Jul 06 2025 at 12:14 UTC