You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This proposal adds function references that are typed and can be called directly.
Unlike the existing funcref type and call_indirect instruction, typed function references do not need to be stored in a table to be called. This simplifies interoperability with the host, making it easier to pass callbacks from Java or other Graal Languages to WebAssembly code. Since these function references will be typed, this also means that indirect function calls within a WebAssembly module can now be executed with fewer runtime checks.
fniephaus
changed the title
Implement Typed Function References Proposal for WebAssembly
[GR-48908] Implement Typed Function References Proposal for WebAssembly
Sep 26, 2024
TL;DR
We plan to implement the WebAssembly Typed Function References proposal in GraalWasm.
Details
This proposal adds function references that are typed and can be called directly.
Unlike the existing
funcref
type andcall_indirect
instruction, typed function references do not need to be stored in a table to be called. This simplifies interoperability with the host, making it easier to pass callbacks from Java or other Graal Languages to WebAssembly code. Since these function references will be typed, this also means that indirect function calls within a WebAssembly module can now be executed with fewer runtime checks.More details at https://github.com/WebAssembly/gc/blob/main/proposals/function-references/Overview.md
The text was updated successfully, but these errors were encountered: