seed icon indicating copy to clipboard operation
seed copied to clipboard

Multithreading

Open MartinKavik opened this issue 5 years ago • 1 comments

Library: https://crates.io/crates/wasm-mt

Interesting links:

  • https://rustwasm.github.io/wasm-bindgen/exbuild/raytrace-parallel/
  • https://rustwasm.github.io/2018/10/24/multithreading-rust-and-wasm.html
  • https://blog.scottlogic.com/2019/07/15/multithreaded-webassembly.html
  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/Planned_changes#WebAssembly_Shared_Memory
  • https://web.dev/earth-webassembly/

This issue is a starting point for future experimenting.

MartinKavik avatar Jun 23 '20 17:06 MartinKavik

The wasm-mt library uses web-workers as thread-emulators. "Real" threads (&shared memory) officially proposed.

samuelpilz avatar Jun 23 '20 19:06 samuelpilz