4 ms·
Javascript runtimes do fine with concurrent operations, but obviously are not intended for parallelism. On the WASM side: Does WASM support real threads yet? O
by Matthias247 6y ago
Javascript runtimes do fine with concurrent operations, but obviously are not intended for parallelism.
On the WASM side: Does WASM support real threads yet? Otherwise moving to Rust wouldn't really help you? If it's just "WebWorker" like multiple runtimes, you might still pay serialization costs to move objects between workers.
- loxs 6y agoNo, JS runtimes don't do "fine" with concurrent operations, unless you are "waiting". If you are doing heavy processing, the whole service freezes. That's indeed the primary reason I need worker threads. Erlang's runtime does "fine" with its preemptive concurrency model, JS runtimes are a joke in this regard.
- IggleSniggle 6y agoHave you tried async generator functions?