Rust wasm32 multi threading?

What is the current state of multi threading for rust/wasm32 ?

I am not after web workers / performance gains.

I am interested in having different parts of the program run in logically different threads and being responsible for their own isolated 'domain' (so I am perfectly fine with Rust threads being compiled to green threads and sharing one JS thread).

What is the state of rust/wasm32 threading?

it's not very mature yet, they did a first demo of this with a raytracer last month, there are still some challenges left: Multithreading Rust and Wasm | Rust and WebAssembly

1 Like

"Native" wasm threads work in firefox nigthly 64 and chrome shipped technical preview in 70. They seem to be ready for production soon-ish.