3 ms·
What is a "real" thread? A POSIX thread? The entire notion of processes and threads is a bit weird inside of a WASM module. Arguably a WASM module shouldn't ca
by duped 4y ago
What is a "real" thread? A POSIX thread?
The entire notion of processes and threads is a bit weird inside of a WASM module. Arguably a WASM module shouldn't care about them at all - the host runtime should be managing parallelism.
- convolvatron 4y agoI'm confused. certainly as an application developer in most languages today I have to be aware of and manage any execution concurrency
- deathanatos 4y agoThe host runtime might provide the ability to spawn threads, but WASM would presumably still need to establish a memory model. I don't know if it has one, or not. (Or, I suppose it can just completely isolate the memory between threads, and say nothing is shared. But I don't think that's what people would want?)