[Project Feedback] WASM Workers using Shared Memory
⚓ Rust 📅 2026-06-18 👤 surdeus 👁️ 2Hi,
I am working on a library called worxide to run web workers on the same "slab" of memory, allowing for pointers of memory to be passed across and used. This avoids any need for Copy/Clone'ing of data and more importantly doesn't require any ser- or deser-ialization.
https://crates.io/crates/worxide
It feels a little bit too good to be true however, I am successfully using this in a large private project without any issues so far.
This is subtly different to wasm-bindgen-spawn which has an extra worker to co-ordinate everything, where-as worxide uses the main thread to do this, with the main thread and any worker threads all sharing the same memory, there's no dispatch worker.
Is this unsound? I'm keen not to go any further if there is a gap in my understanding, cheers.
1 post - 1 participant
🏷️ Rust_feed