Hi all.
Thanks for all the work you do on WASM
, wasmtime
, and wasi
.
I learned there's a new idl
in the works for WASI, and I'm curious about it's motivations and what it would mean for people trying to build support for wasi
in their Runtime especially in rust.
Also, you might have your reasons here, but I noticed the snapshots in wasi-common
do not have documentation for the API, although they're there in the witx
.
the new idl is called wit
, and it did start as being part of WASI but the current expectation is that its going to be specified as part of the component-model proposal
the goal is that wit will have a 1:1 correspondence with a component type, which has a binary representation, as well as a webassembly text (s-expression) representation. however, the s-expression representation of a component type is pretty challenging for humans to read and write (it requires understanding many low level details of how components are specified), whereas wit has a friendly syntax
so the wit spec is here https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md
the bytecode alliance implementation of that spec (only implementation i know of, but i tend to keep my head down and not know what anyone else is implementing) is all found in the wit-bindgen repo https://github.com/bytecodealliance/wit-bindgen
Wow. Thank you @Pat Hickey . I appreciate the details you provided.
I must confess I waited for a response only in the first couple hours. I'm only just seeing this now. (I'm not really a zulip user)
Apologies, and thanks again. This helps. Thanks!
Last updated: Nov 22 2024 at 17:03 UTC