16 ms·
Except Java has support for shared memory between threads, whereas WASM is single-threaded with message passing. Don't expect e.g. to implement a high-performan
by amelius 4y ago
Except Java has support for shared memory between threads, whereas WASM is single-threaded with message passing. Don't expect e.g. to implement a high-performance multi-threaded database in WASM anytime soon.
- kettlecorn 4y agoWASM supports shared memory: https://docs.wasmtime.dev/api/wasmtime/struct.SharedMemory.html https://docs.wasmtime.dev/api/wasmtime/struct.SharedMemory.h... It works on web too.
- amelius 4y ago+1, thanks for the correction
- brabel 4y agoThat's incorrect. WASM supports the exact same multi-threaded/shared-memory/atomic-operations model as the JVM: https://github.com/WebAssembly/threads https://github.com/WebAssembly/threads