Stream: wasmtime

Topic: CLI Embedding (+ Value Imports)


view this post on Zulip Robin Brown (Aug 22 2022 at 14:20):

I'm looking to implement the CLI Embedding Proposal, does anyone know when the prerequisites will be available?
The main feature needed is iterating over a components type to identify and then supply specific value imports.

Add a Typed Main proposal to the component model. Rendered

view this post on Zulip Joel Dice (Aug 22 2022 at 20:03):

@Alex Crichton can give a more complete answer, but I don't believe any work has been done yet to support component values. Here's where an implementation would start, I believe: https://github.com/bytecodealliance/wasmtime/blob/bb0b6dafdeab816cdf5b8977cbd627092d022a91/crates/environ/src/component/translate.rs#L825
See also the first item under "Unsure how to implement so far" here

A standalone runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.
This is intended to be a tracking issue for the implementation of the component model proposal of WebAssembly. I'm in the progress of implementing this with work in Wasmtime starting at #4005 a...

view this post on Zulip Alex Crichton (Aug 30 2022 at 15:04):

I am not familiar with the CLI embedding proposal myself, but if it relies on anything related to value imports/exports that's not at all implemented yet (and I basically have no idea how to implement it). Otherwise though it should be the case that most of the pieces are all there

view this post on Zulip Joel Dice (Sep 01 2022 at 21:48):

@Kyle Brown FYI, we've made some progress on this: https://github.com/bytecodealliance/wasmtime/issues/4844

The current implementation of the component model traked in #4185 is fairly complete with the current state of the spec but a major gap is the implementation of value imports, value exports, and th...

Last updated: Dec 23 2024 at 13:07 UTC