malcolmstill / zware

Zig WebAssembly Runtime Engine
MIT License
293 stars 10 forks source link

WASM-GC #229

Open mnemnion opened 4 months ago

mnemnion commented 4 months ago

Tracking issue for the garbage collection extension to WebAssembly.

I'm assuming that this is NYI for zware. It hasn't made it into an official spec yet, but the design is stabilizing and implementations are starting to appear in the wild, Chrome's engine for example.

malcolmstill commented 4 months ago

Thanks for the issue @mnemnion, it would certainly be cool to support this.

As it stands I have not read the gc spec, so would have to do some work to understand where even to start.

mnemnion commented 4 months ago

It's standard-tracked but not yet standard, so there's plenty of time to figure it out.

I just figured that, as Zig supports a WASM backend, and the bootstrap process uses a minimal WASM interpreter, that Zig should have a first-class WASM runtime, which (my having admittedly not tried to use it) zware appears to be well on the way to being.