Stream: wasi

Topic: wasi-sdk p2 and pthreads


view this post on Zulip Scott Waye (Mar 25 2025 at 01:19):

wasi sdk has cmake files for vanilla, pthreads, p1, and p2. Is creating a p2-pthreads cmake file something that could work, (or p3 if that makes more sense)?

view this post on Zulip Scott Waye (Mar 25 2025 at 01:20):

c# currently uses the p2 cmake file, but am trying to advance the idea of enabling threads in the c# runtime.

view this post on Zulip bjorn3 (Mar 25 2025 at 07:44):

The component model doesn't support threads yet. That is waiting on the shared everything threads proposal.

view this post on Zulip Victor Adossi (Mar 25 2025 at 09:33):

Note that there is some work ongoing for that, and specs are moving (though of course this is all intended for post P3):

https://github.com/WebAssembly/component-model/blob/main/design/mvp/CanonicalABI.md#-canon-threadspawn_ref

Some context that might be helpful:
https://github.com/WebAssembly/component-model/pull/447
https://github.com/WebAssembly/component-model/pull/451

Repository for design and specification of the Component Model - WebAssembly/component-model
This change codifies the conclusions we arrived to in #89. It adds a new way to spawn threads, thread.spawn_indirect, which retrieves the thread start function from a table. This prompted me to ren...
This fixes some missing table of contents entries for thread built-ins.

Last updated: Apr 08 2025 at 23:03 UTC