Conversation
4c32ea0 to
83f95ba
Compare
1846e4d to
8b1a3bc
Compare
Member
|
@carllocos Multivalues should work now in WebAssembly. Important caveat: support for it in other languages is still missing. Both Rust and AssemblyScript do not support it as far as I can tell. This does present a problem for having multivalue primitives. |
Member
I am partially wrong. Wasmtime docs still show how it works with tuple returns in Rust (https://docs.wasmtime.dev/examples-multi-value.html) but Rust itself does not output should functions anymore since a change in LLVM19 back in 2024. |
tolauwae
reviewed
Apr 17, 2026
Some tests with 64 bit values were temporarily commented out due to problems with Latch. These problems are now fixed, therefore the tests can be reintroduced.
1ff4bd3 to
1b1bd32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #297.
This extends the implementation to support WebAssembly's multi-value proposal, allowing functions and control structures to return multiple values. This change aligns with the accepted proposal https://github.com/WebAssembly/multi-value/blob/master/proposals/multi-value/Overview.md.
Functions can now return multiple values:
Control structures support multi-value types:
The host can now invoke functions with multiple return values: