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
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.
Reacted by Slava Kuzmich, Sébastien Deleuze, Suresh, Andrii Maliuta, Paul Merlin, Zalim Bashorov, andylamax, Bastian Müller, qk80, EdorianDark and 46 more
Reacted by Scott Pierce, Erlend Sogge Heggen, Jonas Tonndorf-Martini, Yegor, Louis Pilfold, mdh, Lv Yitian, ssttkkl and Metin Ur
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.
Reacted by Tyler Rockwood, Erlend Sogge Heggen, Libing Chen, Sébastien Deleuze, Zalim Bashorov, Jonas Tonndorf-Martini, Jesse Wilson, Kenji Tomita, Alexander Girke, Slava Kuzmich and 18 more
Reacted by Jesse Wilson, Alexander Girke, Benedict, Oscar Spencer, willflier, Louis Pilfold, abdulhamidalokzai, mdh and Lv Yitian
Reacted by Jesse Wilson, Benedict, Oscar Spencer, willflier, Rahul Butani, Rafael Fernández López, Louis Pilfold, abdulhamidalokzai, 题叶, mdh and 1 more
Reacted by Erlend Sogge Heggen, Suresh, Sébastien Deleuze, Zalim Bashorov, Jonas Tonndorf-Martini, Juanjo Aguililla, Jesse Wilson, Benedict, Ivan Mikushin, Oscar Spencer and 9 more
Reacted by Tyler Rockwood, abdulhamidalokzai, Erlend Sogge Heggen, Alexander Girke, huraway, Sébastien Deleuze, Louis Pilfold, Maksim Lin, Thomas Brigham, orzogc and 3 more
Reacted by Sébastien Deleuze, Louis Pilfold, Tyler Rockwood, Antonio Gámez, PhD, Ayke, mdh and Lv Yitian
Reacted by Tyler Rockwood, abdulhamidalokzai, Erlend Sogge Heggen, Sébastien Deleuze, Louis Pilfold, mdh and Lv Yitian
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
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.
Reacted by Alexander Girke, space-shell, YAMAMOTO Yuji and matt rice
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.
Reacted by Marcux83tw, mdh, Robbie McKinstry, Lv Yitian and JongChan Choi (Rieul)
Reacted by GalaxySnail, Francis O'Brien, Pat Hickey, Louis Pilfold, Brian McKenna, Dylan Scott, Sébastien Deleuze, Eugen Stan, Jeff Schram, orzogc and 4 more
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.
Reacted by Marcux83tw, SasakiSaki, 题叶, Kevin Moore, mdh and Lv Yitian
Reacted by Denis Washington, Afonso Bordado, Sébastien Deleuze, Louis Pilfold, Paul Berg, Eduardo Fonseca, Tyler Rockwood, Cassie Jones, Jonathan Hargreaves, luuillu and 14 more
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.
Reacted by SasakiSaki, Zalim Bashorov, Sébastien Deleuze, orzogc, Sammy Isseyegh, Thomas Crowley, mdh, Lv Yitian, bb010g, Nate and 2 more
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
Reacted by Edoardo Luppi, Cassie Jones, Sébastien Deleuze, Timofey Tsymlov and mdh
Reacted by Francis O'Brien, bb010g, Mitchell van der Hoeff, Cassie Jones, Sébastien Deleuze, Simon, Timofey Tsymlov, ssttkkl, Nate, Rikito Taniguchi and 3 more
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.
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.
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.
Reacted by Sébastien Deleuze, Hoang Phan, Eduardo Fonseca, Louis Pilfold, Khagan (Khan) Karimov and Andrey Mischenko
Reacted by J. Ryan Stinnett, Eduardo Fonseca, Evan Relf, Alexander Girke, Zalim Bashorov, bb010g, Oleg Yukhnevich, Louis Pilfold, sandstrom, Khagan (Khan) Karimov and 2 more
Activity
sdeleuze commentedon Feb 27, 2023
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.
fitzgen commentedon Mar 30, 2023
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.
fitzgen commentedon Apr 15, 2023
RFC is up: bytecodealliance/rfcs#31
tw-atroehrsm commentedon Oct 24, 2023
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
fitzgen commentedon Oct 25, 2023
There is work on parsing and validation, and refactors setting the stage for these things, happening in the
wasm-toolsrepository, since we need to be able to parse and validate Wasm before we can compile and run it.smndtrl commentedon Jan 4, 2024
@fitzgen could you provide links to the issues over there? I want to keep track with the progress due to the impact on Kotlin
fitzgen commentedon Jan 4, 2024
@smndtrl since bytecodealliance/wasm-tools#1346 merged, all GC spec tests are passing in wasm-tools.
You can look at https://github.com/bytecodealliance/rfcs/blob/main/accepted/wasm-gc.md#incremental-implementation-plan and https://docs.wasmtime.dev/contributing-implementing-wasm-proposals.html to get an idea of what is still to be done.
tw-atroehrsm commentedon Feb 6, 2024
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?

#5288
what could one do to support this effort?
fitzgen commentedon Feb 6, 2024
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.
fitzgen commentedon Feb 15, 2024
FYI: #7943 finishes the function references proposal and takes the first baby steps towards Wasm GC inside Wasmtime, adding support for Wasm GC's
nofuncand aConfig::wasm_gc(enabled)knob.oovm commentedon May 26, 2024
It looks like all gc types declarations are supported.
Can we create an issue to track the progress of the gc proposal, such as
fitzgen commentedon May 29, 2024
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.
lppedd commentedon Sep 25, 2024
Hi there! Just wondering if there are noteworthy updates on this front.
fitzgen commentedon Sep 25, 2024
All the
struct-related instructions are implemented.Almost done with
array-related instructions.Still to do:
ref.testref.castanyrefandexternreffuncrefs in the GC heap42 remaining items
wasm-smithmight generate #10596lppedd commentedon Apr 9, 2026
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.
fitzgen commentedon Apr 10, 2026
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.
Enable the Wasm GC proposal by default (bytecodealliance#13594)
fitzgen commentedon Jun 9, 2026
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 thewasm-proposal:gclabel rather than having a meta issue with child issues.sdeleuze commentedon Jun 9, 2026
Thanks a lot for the work on this feature!
maxbrunsfeld commentedon Jun 9, 2026
Congrats @fitzgen and everyone involved. Very excited that this exists.
Enable the Wasm GC proposal by default (bytecodealliance#13594)
Update SMT-based ISLE verifier (bytecodealliance#13550)