Skip to content

partially revert future.{read,write} ABI changes #2229

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
merged 1 commit into from
Jun 9, 2025

Conversation

dicej
Copy link
Collaborator

@dicej dicej commented Jun 9, 2025

After Luke, Alex, and I reviewed the implementation details across wasm-tools, wit-bindgen, and wasip3-prototyping, we concluded that passing up to 4 flat parameters to future.write and removing the address param for no-payload future.read functions were both more trouble than they were worth.

This reverts those changes, meaning we're back to the original ABI except that the memory parameter is optional for no-payload futures.

@dicej dicej requested a review from a team as a code owner June 9, 2025 16:36
@dicej dicej requested review from alexcrichton and removed request for a team June 9, 2025 16:36
After Luke, Alex, and I reviewed the implementation details across `wasm-tools`,
`wit-bindgen`, and `wasip3-prototyping`, we concluded that passing up to 4 flat
parameters to `future.write` and removing the address param for no-payload
`future.read` functions were both more trouble than they were worth.

This reverts those changes, meaning we're back to the original ABI except that
the `memory` parameter is optional for no-payload futures.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej dicej force-pushed the new-old-future-abi branch from 289d663 to 219dc34 Compare June 9, 2025 16:51
@alexcrichton alexcrichton added this pull request to the merge queue Jun 9, 2025
Merged via the queue into bytecodealliance:main with commit 8ebb402 Jun 9, 2025
32 checks passed
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