Stream: git-wasmtime

Topic: wasmtime / PR #7802 WASI: remove unnecessary Sync constra...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 15:49):

badeend requested pchickey for a review on PR #7802.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 15:49):

badeend opened PR #7802 from badeend:no-sync2 to bytecodealliance:main:

Fundamentally, preview2 is fully synchronous. So at least in theory there should be no need for all the Sync constraints. In practice it took me a while to figure out how to actually make it work. In summary:


Chat: https://bytecodealliance.zulipchat.com/#narrow/stream/217126-wasmtime/topic/Wasmtime.20preview2.20.60Sync.60

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 15:49):

badeend requested wasmtime-core-reviewers for a review on PR #7802.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 17:44):

github-actions[bot] commented on PR #7802:

Subscribe to Label Action

cc @peterhuene

<details>
This issue or pull request has been labeled: "wasi", "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 18:58):

pchickey submitted PR review:

Thanks! These are all nice improvements.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 18:58):

pchickey submitted PR review:

Thanks! These are all nice improvements.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 18:58):

pchickey created PR review comment:

Needing a mutex here is a minor bummer, but I think the next refactor is to make there be two different ctx structs:Host for all preview 2 compatible things, and LegacyHost for using wasi-common if, and only if, threads are required.

I am working on a PR that separates out wasi-common from wasmtime-wasi, so that we can ship just the preview 2 implementation without any of the old one, so I'll fix this up after that lands.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 19:11):

badeend submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 19:11):

badeend created PR review comment:

Yeah, but at least .lock() never gets called, so effectively it's mostly a Box

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 22:10):

badeend updated PR #7802.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2024 at 22:12):

badeend commented on PR #7802:

There were some build errors specific to Rust version 1.73 (and lower probably).

This should be good to go again.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 22 2024 at 18:27):

pchickey merged PR #7802.


Last updated: Dec 23 2024 at 13:07 UTC