Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



The 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?)


I'm confused. certainly as an application developer in most languages today I have to be aware of and manage any execution concurrency




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: