Stream: git-wasmtime

Topic: wasmtime / issue #4594 components: Support creation of a ...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 03 2022 at 14:41):

alexcrichton labeled issue #4594:

Currently the Linker::func_new API added in https://github.com/bytecodealliance/wasmtime/pull/4537 has a bit of an odd API for the creation of a host function. Instead of taking a Component/string pair this should ideally look similar to the core wasm support where a function type is created directly.

This will entail being able to create a function type at runtime. Note that this is nontrivial compared to the support for core wasm since the type hierarchy is more complicated. I'm not sure how best this would work.

Additionally shortly after this is implemented we'll need to also implement the ability to compare two types across two different ComponentTypes stores. Currently type equality only checks indices but in the case of different indices a deep type equality needs to be performed.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 03 2022 at 14:41):

alexcrichton opened issue #4594:

Currently the Linker::func_new API added in https://github.com/bytecodealliance/wasmtime/pull/4537 has a bit of an odd API for the creation of a host function. Instead of taking a Component/string pair this should ideally look similar to the core wasm support where a function type is created directly.

This will entail being able to create a function type at runtime. Note that this is nontrivial compared to the support for core wasm since the type hierarchy is more complicated. I'm not sure how best this would work.

Additionally shortly after this is implemented we'll need to also implement the ability to compare two types across two different ComponentTypes stores. Currently type equality only checks indices but in the case of different indices a deep type equality needs to be performed.


Last updated: Dec 23 2024 at 13:07 UTC