Stream: wasmtime

Topic: Threads Proposal


view this post on Zulip Ashanti Mutinta (Jul 08 2025 at 11:04):

Hello! Was curious about the threads proposal. I was wondering if it is something still planned, I am writing a small toy async preview 2 runtime https://github.com/StaticallyTypedAnxiety/tiny-async-runtime
I think its gotten to the point where I can see it working with threads. I was mainly wondering if threads is something that will come with preview 3 down the line?

A Simple Async Runtime for Wasi Preview 2. Contribute to StaticallyTypedAnxiety/tiny-async-runtime development by creating an account on GitHub.

view this post on Zulip Victor Adossi (Jul 08 2025 at 14:03):

Hey @Ashanti Mutinta have you seen the new sections in the Canonical ABI on this?

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

Design work is still on-going but IIRC @Andrew Brown is the right person to update you here

Repository for design and specification of the Component Model - WebAssembly/component-model

view this post on Zulip Ashanti Mutinta (Jul 08 2025 at 15:19):

Victor Adossi said:

Hey Ashanti Mutinta have you seen the new sections in the Canonical ABI on this?

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

Design work is still on-going but IIRC Andrew Brown is the right person to update you here

Oh perfect! I read the streams and future parts but havent read the spawn yet. I shall take a look. Thank you!

view this post on Zulip Victor Adossi (Jul 08 2025 at 15:26):

You may also benefit from the PRs that lead to that: https://github.com/WebAssembly/component-model/pulls?q=is%3Apr+thread+is%3Aclosed

Lots to dig into there!

Repository for design and specification of the Component Model - Pull requests · WebAssembly/component-model

view this post on Zulip Andrew Brown (Jul 08 2025 at 16:15):

@Ashanti Mutinta I can answer any additional questions you may have; we definitely could use more help pushing that proposal forward.

view this post on Zulip Ashanti Mutinta (Jul 08 2025 at 20:38):

Andrew Brown said:

Ashanti Mutinta I can answer any additional questions you may have; we definitely could use more help pushing that proposal forward.

Awesome thank you. Is there an experimental target we can play with by any chance? That is probably asking a bit too much but i was curious :sweat_smile:

view this post on Zulip Scott Waye (Jul 08 2025 at 20:53):

I suppose once the proposal has moved forward a bit, it would help those producing Wasm from LLVM if there was a LLVM instruction.

view this post on Zulip Andrew Brown (Jul 08 2025 at 22:08):

Yeah, no target yet.


Last updated: Dec 06 2025 at 06:05 UTC