Stream: git-wasmtime

Topic: wasmtime / issue #10176 Add embedder APIs for defining re...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2025 at 17:54):

fitzgen added the wasmtime:api label to Issue #10176.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2025 at 17:54):

fitzgen added the wasm-proposal:gc label to Issue #10176.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2025 at 17:54):

fitzgen opened issue #10176:

While we provide embedder APIs for creating one-off function/array/struct types, we don't currently have a way to define a set of types inside a rec group. This means the embedder cannot define a type that has a reference to itself, or any mutually recursive types. It also means that if a Wasm module uses such a type in its imports or exports, the embedder must find it and pluck it out via Module::{imports,exports} rather than simply create it themselves when they are trying to define functions that take/return those types.

This shouldn't be hard to implement, but it will require a bit of API design work that we want to make sure we are happy with, and that we think will extend well for Wasm's likely future type system extensions, before we commit to anything.

Random, half-baked thoughts:


Last updated: Feb 28 2025 at 03:10 UTC