Skip to content

feat: wasi p3 async support for jco #585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

vados-cosmonic
Copy link
Collaborator

This PR is almost certain to be long lived, and contains the ongoing p3 async support for

To understand this PR, see the following other resources:

Current ongoing implementation in wasmtime is over here:

Particularly useful from the upstream repos are the test programs that show usage of the new async APIs from the only language with support at present (Rust):

@vados-cosmonic vados-cosmonic force-pushed the feat=p3-async-support branch 3 times, most recently from 2b33a98 to 708cd3b Compare March 11, 2025 11:29
@vados-cosmonic
Copy link
Collaborator Author

Just a note -- I'm rolling the upgrade to tooling version 227.1 here -- the upgrade seems to have broken some things on the jco side, right now the remaining errors are:

  • unreachable resource trampolines: It turns out that some trampolines that are supposed to be unreachable are actually needed, so I think upstream might have made our detection logic not work.
  • Deduping The deduping logic seems to be broken with upstream changes -- in PString$1 isn't being generated anymore.

@guybedford
Copy link
Collaborator

@vados-cosmonic please create a separate PR for the 227.1 upgrade path for direct review and testing, that way I can also more easily assist.

@vados-cosmonic
Copy link
Collaborator Author

vados-cosmonic commented Mar 13, 2025

Ah apologies for the noise, will pull out that update into a new PR, thanks (in advance) for the help @guybedford 🙇

@vados-cosmonic vados-cosmonic force-pushed the feat=p3-async-support branch 4 times, most recently from 82dafa1 to d04011a Compare March 13, 2025 16:40
@vados-cosmonic vados-cosmonic force-pushed the feat=p3-async-support branch 3 times, most recently from db7408d to a812534 Compare May 19, 2025 16:39
@vados-cosmonic vados-cosmonic enabled auto-merge May 19, 2025 16:39
@vados-cosmonic vados-cosmonic force-pushed the feat=p3-async-support branch 2 times, most recently from 9b43d49 to c29e93e Compare May 23, 2025 11:56
@vados-cosmonic vados-cosmonic force-pushed the feat=p3-async-support branch 5 times, most recently from 3aab70e to 59cf305 Compare May 29, 2025 19:39
@vados-cosmonic
Copy link
Collaborator Author

OK, so I had to make a couple concessions here:

  • updating upstream libs broke the WebIDL testing (this seems to be purely a problem with resources that contain methods with the same exact name -- at the wasm-tools component new level)
  • Actually running the updated async error-context component requires many more intrinsics than it did when this PR was first open, and to stop this PR from growing even more, the tests checks generation but stops JUST short of actually running the function.

@vados-cosmonic vados-cosmonic force-pushed the feat=p3-async-support branch 8 times, most recently from 1fbcbb5 to 87ce320 Compare May 29, 2025 20:15
@vados-cosmonic vados-cosmonic disabled auto-merge May 29, 2025 20:36
This commit adds initial support for async component model features
with the error-context intrinsics.

Signed-off-by: Victor Adossi <[email protected]>
@vados-cosmonic vados-cosmonic force-pushed the feat=p3-async-support branch from 1f75ac4 to d3e225e Compare May 29, 2025 20:41
@vados-cosmonic vados-cosmonic enabled auto-merge May 29, 2025 20:42
@vados-cosmonic vados-cosmonic added this pull request to the merge queue May 29, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 29, 2025
@vados-cosmonic vados-cosmonic added this pull request to the merge queue May 29, 2025
Merged via the queue into bytecodealliance:main with commit 7882498 May 29, 2025
26 checks passed
@vados-cosmonic vados-cosmonic deleted the feat=p3-async-support branch May 29, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants