Stream: show and tell

Topic: ๐Ÿต๐Ÿค˜๐Ÿผ - Monkey Roc!


view this post on Zulip Brendan Hansknecht (May 31 2023 at 01:52):

๐Ÿต๐Ÿค˜๐Ÿผ - Monkey Roc!

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.

view this post on Zulip Georges Boris (May 31 2023 at 10:03):

did you do it for theprimeagen's thingy? :grinning_face_with_smiling_eyes:

view this post on Zulip Brendan Hansknecht (May 31 2023 at 13:04):

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