3 ms·
So do you get all the concurrency abilities of go with something like this or do you essentially get a nicer syntax around the capabilities of JS? Sorry if thi
by anm89 7y ago
So do you get all the concurrency abilities of go with something like this or do you essentially get a nicer syntax around the capabilities of JS?
Sorry if this is a dumb question but I'm pretty new to wasm.
- snek 7y agoconcurrency yes, parallelism no(t yet). each wasm module is single threaded, but you can create multiple modules in separate threads that communicate with each other via shared memory and atomic ops, but of course you have to figure out how to correctly emit modules that take advantage of this. So far emscripten's pthread is the only thing I'm aware of that properly does this.