Hacker GitHub

← All repos

WebAssembly/threads

View on GitHub ↗ ★ 772 WebAssembly

Threads and Atomics in WebAssembly

26 mentions on Hacker News by 24 people: 1 story, 25 comments · first 2017-05-15 · latest 2026-05-27

Mentions per year 26 mentions · busiest year 2021 (6)
20082026
  1. …group are recently considering relaxing the limitation that the main thread can't use atomic.wait: https://github.com/WebAssembly/threads/issues/177#issuecomme...
    comment by AgentME · 2026-05-27 · in Theseus: Translating Win32 to WASM
  2. There is a proposal to add threading to WASM itself https://github.com/WebAssembly/threads/blob/main/proposals/t... But that’s not going to help when accessing the DOM.
  3. Similarly for threads: https://github.com/webassembly/threads
  4. Specifically I submitted this to draw attention to the latest comment in the thread: https://github.com/WebAssembly/threads/issues/177 It's a good deep dive into how a small, but well-intentioned, browser choice nearly a decade ago led to…
  5. …the time the answer in the WASI world. For this case it's complicated because some runtime supports https://github.com/WebAssembly/threads which mostly contains things like the spec for atomic but not the actual "threads" specs and then…
    comment by pryz · 2023-09-14 · in WASI Support in Go
  6. Useful info is here: https://github.com/WebAssembly/threads/blob/main/proposals/t... Atomics are well covered. The "wait" and "notify" primitives map efficiently to mutexes. "Blocking on the main thread is not allowed, so we can't call…
  7. There is a WebAssembly proposal called "Threads". https://github.com/webassembly/threads "This proposal adds a new shared linear memory type and some new operations for atomic memory access. The responsibility of creating and joining…
    comment by richdougherty · 2023-03-21 · in A world to win: WebAssembly for the rest of us
  8. …WASM supports the exact same multi-threaded/shared-memory/atomic-operations model as the JVM: https://github.com/WebAssembly/threads
    comment by brabel · 2022-09-21 · in Wasmtime 1.0
  9. > Were these facilities added to a wasp runtime, https://github.com/WebAssembly/threads/blob/main/proposals/t...
  10. WebAssembly is having/going to have threads https://github.com/WebAssembly/threads
  11. …assembly instructions for atomics, rather than the JavaScript API. I.e. the opcodes listed here: https://github.com/WebAssembly/threads/blob/master/proposals...
  12. …assembler, it's (going to be) very high level: - https://github.com/WebAssembly/reference-types - https://github.com/webassembly/threads - https://github.com/WebAssembly/exception-handling - https://github.com/WebAssembly/function-reference…
  13. …have - both threads & shared memory are available already in Chrome & Firefox's stable releases ( https://github.com/WebAssembly/threads/blob/master/proposals... & https://webassembly.org/roadmap/ ). Which means it also has accurate…
  14. …memory; and those choices aren't by coincidence, they're by design to keep things safe (see e.g. https://github.com/WebAssembly/threads/issues/8 ). If indeed webassembly adds features that add attack surface, I sure hope (and fully expect)…
  15. …target, as they're probably hard to use correctly manually. That being said, WebAssembly threads ( https://github.com/WebAssembly/threads ) may be more appropriate for this. For completeness, Workers can also transfer memory (…
  16. …on the potential of WASM for universal deployment, but the slow pace is a bit concerning. [1] https://github.com/WebAssembly/threads
    comment by the_duke · 2021-01-05 · in Wasmer 1.0
  17. …in wasm, there are a ton of inflight proposals and extensions to get it beyond the mvp stage. [0]: https://github.com/WebAssembly/threads [1]: https://github.com/WebAssembly/multi-memory
  18. Some discussion here: https://github.com/WebAssembly/threads/issues/9 tl;dr if WASM shared memory is specified to follow the same rules as SharedArrayBuffer, then atomic operations are sequentially consistent. Normal memory accesses in the…
  19. …issues" in the blog post links to https://TBD . 0 - https://github.com/WebAssembly/proposals 1 - https://github.com/WebAssembly/threads
  20. …isn't further along yet (I really need some test cases in the suite to make me feel better). 0 - https://github.com/WebAssembly/threads/issues/106
    comment by kodablah · 2018-10-23 · in Multithreading Rust and Wasm
  21. …here. Like the existing memory instructions, the atomic instructions proposed for threads ( https://github.com/WebAssembly/threads/blob/master/proposals... ) don't take a linear memory parameter. That means they operate on the same default…
  22. WASM will have more low level support. https://github.com/WebAssembly/threads/blob/master/proposals...
  23. …fater than JavaScript. Not to forget wasm is in very early stage, once we get threading support( https://github.com/WebAssembly/threads ) we can get much better results.
    comment by akmittal · 2017-12-18 · in WebAssembly Raytracer
  24. Correct, shared memory and atomics are likely the first big post-MVP feature: https://github.com/WebAssembly/threads/blob/master/proposals...
    comment by jfbastien · 2017-06-07 · in Assembling WebAssembly
  25. …(I am not sure how far along non-WebWorker-based wasm threads are, but here's the proposal: https://github.com/WebAssembly/threads )