Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atomics stabilisation #2325

Closed
chemicstry opened this issue Oct 7, 2020 · 4 comments
Closed

Atomics stabilisation #2325

chemicstry opened this issue Oct 7, 2020 · 4 comments
Labels

Comments

@chemicstry
Copy link

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?

@alexcrichton
Copy link
Contributor

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.

@chemicstry
Copy link
Author

chemicstry commented Oct 7, 2020

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 😕

@alexcrichton
Copy link
Contributor

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.

@alexcrichton
Copy link
Contributor

I've opened rust-lang/rust#77839 to continue discussion on this on the Rust side of things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants