There have been a few webassembly threads already, but it's a bit unclear to me 
what's the current status of targeting webassembly. For instance [this 
thread](https://forum.nim-lang.org/t/4399#27529) mentions:

> Nims garbage collector only works if the Nim runtime controls the root of the 
> call stack, if I understand the experts correctly. That's normally not the 
> case in the browser, but the fact that Nims GC is thread-local might save us 
> here...

How exactly can we setup a project so that "running at the root of the call 
stack" is accomplished? Does compiling via emscripten and loading the resulting 
JS glue code satisfy this criterion or not?

Reply via email to