Stream: git-wasmtime

Topic: wasmtime / issue #10335 Documentation for how to use from...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 05 2025 at 14:05):

geraintluff opened issue #10335:

It _looks_ like you can use Wasmtime across threads in a similar way to browsers:

However, some documentation would be extremely reassuring here.

Feature

Documentation and/or example code for how multiple (host) threads can make simultaneous C API calls which affect the same shared memory.

Benefit

Makes it clear that Wasmtime supports this use-case

view this post on Zulip Wasmtime GitHub notifications bot (Mar 05 2025 at 15:28):

alexcrichton added the wasmtime:docs label to Issue #10335.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 05 2025 at 15:28):

alexcrichton added the wasmtime:c-api label to Issue #10335.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 05 2025 at 15:29):

alexcrichton commented on issue #10335:

Yes it's the same model currently, creating/sharing memory and instantiating once-per-thread. There is not currently documentation for this and you're correct it'd be good to add some!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2025 at 16:35):

alexcrichton closed issue #10335:

It _looks_ like you can use Wasmtime across threads in a similar way to browsers:

However, some documentation would be extremely reassuring here.

Feature

Documentation and/or example code for how multiple (host) threads can make simultaneous C API calls which affect the same shared memory.

Benefit

Makes it clear that Wasmtime supports this use-case

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2025 at 16:35):

alexcrichton commented on issue #10335:

I'm going to close this as I think it's answered, but feel free to follow up here if there's anything else.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 24 2025 at 14:19):

PPakalns commented on issue #10335:

Looking for the same information. Can not find any practical example that demonstrates this feature for any language.


Last updated: Apr 17 2025 at 10:03 UTC