Skip to content
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

[GR-48908] Implement Typed Function References Proposal for WebAssembly #9760

Open
fniephaus opened this issue Sep 26, 2024 · 0 comments
Open
Assignees
Labels

Comments

@fniephaus
Copy link
Member

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 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.

More details at https://github.com/WebAssembly/gc/blob/main/proposals/function-references/Overview.md

@fniephaus fniephaus added the wasm label Sep 26, 2024
@fniephaus fniephaus changed the title Implement Typed Function References Proposal for WebAssembly [GR-48908] Implement Typed Function References Proposal for WebAssembly Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants