Do we have an interpreter for mono? Would something like this make sense?
I don't fully understand how this might work so I'm asking here, but the general idea in my head is for an online playground that runs all in the client's browser. It has a WASM module that can take a roc app and runs it in an interpreter and then returning the results for the mainForHost.
This idea, as a simpler alternative to compiling to WASM bytecode and then running that as a standalone thing.
Found some relevant discussion https://roc.zulipchat.com/#narrow/channel/304641-ideas/topic/Compile.20time.20computation/near/409294769
@Brendan Hansknecht talks about an IR interpreter
We do not have one
We probably want one for simple compile time evaulation
I don't think the interpreter would work with effects, so you probably want a different solution
I think another challenge is that the compiler assumes we have a filesystem for loading and working with modules. So we probably would need to abstract that out before the above could work.
I think the web repl already deals with the lack of filesystem
I'm not sure if it knows how to load modules other than builtins though
Last updated: Jun 16 2026 at 16:19 UTC