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-44605] Implement Garbage Collection Proposal for WebAssembly #9758

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

[GR-44605] Implement Garbage Collection Proposal for WebAssembly #9758

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

Comments

@fniephaus
Copy link
Member

TL;DR

We plan to implement the WebAssembly Garbage Collection proposal in GraalWasm.

Details

This proposal lets programs compiled to WebAssembly make use of the embedder's garbage collector. It achieves this by introducing types for structs and arrays and exposing new instructions that let WebAssembly modules allocate such objects.
These new objects will be managed by the runtime, outside of the module's linear memory. This means that when you compile a high-level language with GC to WebAssembly, you will no longer need to include a GC in the compiled module.
This, in turn, will lead to both smaller modules and faster execution, since you can rely on the mature GC used in GraalVM.

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

@fniephaus fniephaus added the wasm label Sep 26, 2024
@fniephaus fniephaus changed the title Implement Garbage Collection Proposal for WebAssembly [GR-44605] Implement Garbage Collection 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