Wasm-bindgen: Atomics stabilisation

Created on 7 Oct 2020  路  4Comments  路  Source: rustwasm/wasm-bindgen

I'm not sure if this is the correct repository to ask, but was wondering about the wasm32 atomics stabilisation. Multithreading in wasm was introduced almost 2 years ago with this blogpost, however, compiling the example still requires not only nightly rust, but also rebuilding std lib.

So I was wondering what is the current progress on wasm threads and when will we be able to use them in stable rust?

question

Most helpful comment

I've opened https://github.com/rust-lang/rust/issues/77839 to continue discussion on this on the Rust side of things.

All 4 comments

AFAIK no progress has been made on shipping this in the standard library. The best idea we've had (which is the same as two years ago) is to have a second target (naming TBD) which is wasm-with-atomics. Other than -Zbuild-std, though, everything should be ready to go.

Thanks for the explanation! Is there anything I could help with to make this move forward?

There are multiple projects that would already like to use threading in wasm, but this really complicates building 馃槙

Unfortunately I don't know of a great way to move it forward. The next step is probably for a concrete proposal to be made, so the best help would be to come up with a proposal yourself, but that's no light undertaking.

I've opened https://github.com/rust-lang/rust/issues/77839 to continue discussion on this on the Rust side of things.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexcrichton picture alexcrichton  路  3Comments

fitzgen picture fitzgen  路  3Comments

MarcAntoine-Arnaud picture MarcAntoine-Arnaud  路  3Comments

aschampion picture aschampion  路  4Comments

derekdreery picture derekdreery  路  3Comments