Stream: wasi

Topic: wasi idl


view this post on Zulip Onigbinde Oluwamuyiwa Elijah (Nov 09 2022 at 03:46):

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.

view this post on Zulip Pat Hickey (Nov 10 2022 at 00:49):

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

view this post on Zulip Pat Hickey (Nov 10 2022 at 00:50):

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

view this post on Zulip Pat Hickey (Nov 10 2022 at 00:53):

so the wit spec is here https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md

Repository for design and specification of the Component Model - component-model/WIT.md at main · WebAssembly/component-model

view this post on Zulip Pat Hickey (Nov 10 2022 at 00:57):

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

A language binding generator for WebAssembly interface types - GitHub - bytecodealliance/wit-bindgen: A language binding generator for WebAssembly interface types

view this post on Zulip Onigbinde Oluwamuyiwa Elijah (Nov 16 2022 at 00:24):

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: Oct 23 2024 at 20:03 UTC