proposal: wasm: Thread support #56305
Labels
arch-wasm
WebAssembly issues
FeatureRequest
Issues asking for a new feature that does not need a proposal.
FrozenDueToAge
Proposal
Milestone
Problem
Most browsers (Chrome, FF, Safari, etc.) are shipping with thread support in Wasm. See https://webassembly.org/roadmap.
Based on discussions in #28360 and #28631, this proposal aims to create progress on Wasm thread support in Go. While standardization of threads is still in Phase 2 (with a vote to move to Phase 3 happening later this month), experimental thread support will improve performance for many Go Wasm applications. Wasm is a great tool for performing computationally intensive tasks, but without thread support, it is often more performant to use JavaScript alone.
Proposal
Until standardized, thread support should exist behind the
GOWASM
environment variable (e.g.GOWASM=threads
).A program using go routines can be compiled using the following:
The text was updated successfully, but these errors were encountered: