Stream: wasmtime

Topic: wasmtime GC example


view this post on Zulip Wu Yu Wei (Sep 18 2024 at 06:07):

Hey guys I would like to know the progress of GC proposal implementation on wasmtime. And is there some example we could learn from already?

view this post on Zulip Wu Yu Wei (Sep 18 2024 at 06:07):

Basically, I want to see if we can build a DOM structure from wasmtime to replace mozjs from Servo.

view this post on Zulip Alex Crichton (Sep 18 2024 at 14:57):

GC is not yet fully implemented but it's under development. For now you'll have to track PRs/issues manually

view this post on Zulip fitzgen (he/him) (Sep 18 2024 at 14:58):

you can generally create GC objects on the host right now (eg https://docs.rs/wasmtime/latest/wasmtime/struct.StructRef.html) but the actual instructions are not all implemented yet (see https://github.com/bytecodealliance/wasmtime/pull/9275 for example)

This commit implements the struct.* instructions for the GC proposal. These instructions allow allocating new structs and getting and setting their fields. The implemented instructions are: struc...

view this post on Zulip Notification Bot (Sep 18 2024 at 14:58):

This topic was moved here from #general > wasmtime GC example by fitzgen (he/him).

view this post on Zulip Wu Yu Wei (Sep 19 2024 at 05:21):

Thanks for the directions! I'll look into them.


Last updated: Oct 23 2024 at 20:03 UTC