Skip to content

Implement the WebAssembly GC Proposal #5032

Closed
22 of 27 issues completed
Closed

Description

@Srinivasa314

Tracking issue for implementation of the WebAssembly GC proposal

Note: Wasmtime has an initial, feature-complete Wasm GC implementation that you can turn on with Config::wasm_gc in the library or by passing -W gc on the command line. This issue is tracking robustness, performance, and everything necessary to turn it on by default at this point.

Sub-issues

Sub-issues

22 of 27 Issues completed
Loading 27 sub-issues

Activity

  1. sdeleuze commented on Feb 27, 2023

    @sdeleuze

    FYI we are now able to run a Kotlin/Wasm HTTP server via KoWasm on Node.js and I would be happy to leverage Wasmtime to run it as soon as it will get GC support.

    This would be a really good fit since we would like to leverage WASI Preview2+ and Wasm Component Model asap.

    See also my blog post The huge potential of Kotlin/Wasm for more context.

  2. fitzgen commented on Mar 30, 2023

    @fitzgen
    Member

    Heads up: I am working on an RFC to work out the design of our Wasm GC support. I expect to start implementing Wasm GC once that RFC reaches consensus and merges and I've finished implementing Wasm tail calls.

  3. self-assigned this
    on Mar 30, 2023
  4. fitzgen commented on Apr 15, 2023

    @fitzgen
    Member
  5. tw-atroehrsm commented on Oct 24, 2023

    @tw-atroehrsm

    hey there! any updates on this front? Really looking forward to use Kotlin/WASM with this runtime.
    For now only V8 is feasible, as it includes a GC and has implemented the proposal

  6. fitzgen commented on Oct 25, 2023

    @fitzgen
    Member

    There is work on parsing and validation, and refactors setting the stage for these things, happening in the wasm-tools repository, since we need to be able to parse and validate Wasm before we can compile and run it.

  7. smndtrl commented on Jan 4, 2024

    @smndtrl

    @fitzgen could you provide links to the issues over there? I want to keep track with the progress due to the impact on Kotlin

  8. fitzgen commented on Jan 4, 2024

    @fitzgen
    Member
  9. tw-atroehrsm commented on Feb 6, 2024

    @tw-atroehrsm

    So it there any timeline, roadmap when this will be available at least with the null GC?

    this was merged in may 2023 so can be marked as done?
    image

    #5288

    what could one do to support this effort?

  10. fitzgen commented on Feb 6, 2024

    @fitzgen
    Member

    The function references proposal still needs to be exposed in the embedder API.

    I am actively working on that and the rest of getting Wasm GC implemented. Right now it mostly involves some refactoring to the runtime's internals to pave the way for future changes. Unfortunately, there isn't much that can be split out and implemented in parallel right now.

  11. fitzgen commented on Feb 15, 2024

    @fitzgen
    Member

    FYI: #7943 finishes the function references proposal and takes the first baby steps towards Wasm GC inside Wasmtime, adding support for Wasm GC's nofunc and a Config::wasm_gc(enabled) knob.

  12. oovm commented on May 26, 2024

    @oovm

    It looks like all gc types declarations are supported.

    Can we create an issue to track the progress of the gc proposal, such as

    • gc instruction support
    • non-collection runtime
    • baseline gc runtime
  13. fitzgen commented on May 29, 2024

    @fitzgen
    Member

    Yes all the types are supported now, but instantiating them is not implemented yet; I'm working on it. Then the various instructions. Then the collector itself. (Right now we are reusing the deferred reference-counting collector that Wasmtime already has, so we can collect some garbage, but not cycles).

    Personally, I'm not a huge fan of opening a bunch of tracking issues for things already effectively tracked by this issue. Happy to cross-link more PRs here as they come in though.

  14. lppedd commented on Sep 25, 2024

    @lppedd

    Hi there! Just wondering if there are noteworthy updates on this front.

  15. fitzgen commented on Sep 25, 2024

    @fitzgen
    Member

    All the struct-related instructions are implemented.

    Almost done with array-related instructions.

    Still to do:

    • ref.test
    • ref.cast
    • branch-on-cast instructions
    • conversions between anyref and externref
    • support for funcrefs in the GC heap
    • lots of various optimizations
    • better pooling allocator integration
  16. 42 remaining items

  17. added
    wasm-proposal:gc
    on Apr 9, 2026
  18. lppedd commented on Apr 9, 2026

    @lppedd

    Looks like what's really missing now is Component Model support. Is that correct @fitzgen?
    All the linked issues seem refactorings/improvements over what is already working.

  19. fitzgen commented on Apr 10, 2026

    @fitzgen
    Member

    Looks like what's really missing now is Component Model support. Is that correct @fitzgen? All the linked issues seem refactorings/improvements over what is already working.

    The GC proposal is indeed implemented and spec-compliant in Wasmtime. There are a number of outstanding issues we want to resolve before turning it on by default, but that doesn't include every linked issue here.

    For working passing GC values across component directly, without copying to linear memory, the component model spec needs to to be updated to define a GC ABI. This is roughly expected to happen on top of the lazy value lowering ABI that is planned.

  20. fitzgen commented on Jun 9, 2026

    @fitzgen
    Member

    I closed this issue because Wasm GC has been implemented in Wasmtime for some time now, and is now also enabled by default on main. We can track Wasm GC-related issues via the wasm-proposal:gc label rather than having a meta issue with child issues.

  21. sdeleuze commented on Jun 9, 2026

    @sdeleuze

    Thanks a lot for the work on this feature!

  22. maxbrunsfeld commented on Jun 9, 2026

    @maxbrunsfeld
    Contributor

    Congrats @fitzgen and everyone involved. Very excited that this exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

wasm-proposal:gc

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions