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
20082026
-
…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 -
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.
comment by mr_toad · 2024-07-10 · in Show HN: Parallel DOM – Upgrade your DOM to be multithreaded -
Similarly for threads: https://github.com/webassembly/threads
comment by Extigy · 2024-03-12 · in No installation required: how WebAssembly is changing scientific computing -
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…
comment by kettlecorn · 2024-03-06 · in WebAssembly: Adding atomics waits to the main thread is the right thing to do -
▲ 5
WebAssembly: Adding atomics waits to the main thread is the right thing to dostory by kettlecorn · 2024-03-06 · 1 comment
-
…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 -
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…
comment by Animats · 2023-03-21 · in A world to win: WebAssembly for the rest of us -
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 -
…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 -
> Were these facilities added to a wasp runtime, https://github.com/WebAssembly/threads/blob/main/proposals/t...
comment by 15155 · 2022-08-17 · in Learn Postgres at the Playground – Postgres compiled to WASM running in browser -
WebAssembly is having/going to have threads https://github.com/WebAssembly/threads
comment by miohtama · 2022-02-16 · in LibreOffice running natively in the browser via WebAssembly -
…assembly instructions for atomics, rather than the JavaScript API. I.e. the opcodes listed here: https://github.com/WebAssembly/threads/blob/master/proposals...
comment by paulgb · 2021-07-21 · in Using WebAssembly threads from C, C++ and Rust -
…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…
comment by emteycz · 2021-05-21 · in WebContainers: Run Node.js natively in the browser -
…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…
comment by kllrnohj · 2021-05-01 · in Everything Old Is New Again: Binary Security of WebAssembly [pdf] -
…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)…
comment by emn13 · 2021-05-01 · in Everything Old Is New Again: Binary Security of WebAssembly [pdf] -
…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 (…
comment by twiss · 2021-03-18 · in Clio: A functional, distributed programming language that compiles to JavaScript -
…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 -
…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
comment by cdcarter · 2020-01-19 · in Standalone WebAssembly games using I/O devices -
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…
comment by teraflop · 2018-10-30 · in WebAssembly Threads ready to try in Chrome 70 -
…issues" in the blog post links to https://TBD . 0 - https://github.com/WebAssembly/proposals 1 - https://github.com/WebAssembly/threads
comment by kodablah · 2018-10-30 · in WebAssembly Threads ready to try in Chrome 70 -
…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 -
…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…
comment by panic · 2018-10-09 · in Calls between JavaScript and WebAssembly are finally fast -
WASM will have more low level support. https://github.com/WebAssembly/threads/blob/master/proposals...
comment by pjmlp · 2018-06-23 · in Web Assembly and Go: A look to the future -
…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 -
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 -
…(I am not sure how far along non-WebWorker-based wasm threads are, but here's the proposal: https://github.com/WebAssembly/threads )
comment by Rusky · 2017-05-15 · in An Abridged Cartoon Introduction To WebAssembly