Stream: git-wasmtime

Topic: wasmtime / issue #11940 c-api: Dealing with lists is inco...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2025 at 23:00):

alexcrichton opened issue #11940:

I wanted to write down something that irks me when working with Wasmtime's C/C++ API that I've noticed recently. It boils down to basically the handling of lists throughout the API is pretty inconsistent and varies place-to-place in terms of ownership, semantics, representation, and performance. For example:

Much, if not most, of this is wasm.h idioms clashing with what's natural to implement in Wasmtime. Wasmtime internally has some inconsistencies too, however -- in https://github.com/bytecodealliance/wasmtime/pull/11937 the wasmtime Rust API for getting the types of a function's parameters means that the result looks quite different than other C APIs.

On one hand this is wasm.h-vs-not, but the way we've designed the C API right now is that it's not possible to avoid using wasm.h so users are forced to deal with this no matter what. That's not great, in my opinion, so I wanted to file this issue.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2025 at 23:00):

alexcrichton added the wasmtime:c-api label to Issue #11940.


Last updated: Jan 10 2026 at 20:04 UTC