Stream: wit-bindgen

Topic: package keyword


view this post on Zulip Christopher Hunt (May 30 2023 at 01:43):

Hey there - just starting out with wit-bindgen. There's a package keyword required with its parameters as foo:foo (for example). I'm not able to find any doc on what these foos refer to. I can see that a "world" is a component, so perhaps the package is a collection of worlds? But then what would be the :foo? Thanks.

view this post on Zulip Christopher Hunt (May 30 2023 at 02:28):

TBH I’m also confused by what is meant by a world. The wasi wit files use names like “example”.

view this post on Zulip Lann Martin (May 30 2023 at 13:12):

Worlds are collections of imported and/or exported interfaces. They can be abstract, defining a contract between components, or concrete, describing a particular component's actual imports/exports. They are called "worlds" because they describe a component's "entire world" in terms of interactions with other components / its host.

view this post on Zulip Brian (May 30 2023 at 16:00):

@Christopher Hunt for a breakdown of what is part of the package identifier, this PR describes the meaning of each segment: https://github.com/WebAssembly/component-model/pull/198/files#diff-4853dcfce4501ba0f387ca3885f38ac65dc38cc79e4ef16192213d94bce28517R30

This is an update to WIT.md and a minor update to Binary.md to reflect the changes discussed in #193. Lots more discussion is in the issue, and a summary of the changes is: WIT use statements are ...

view this post on Zulip Mossaka (Joe) (May 30 2023 at 16:20):

This proposal could help too

I've been talking with @lukewagner and @guybedford recently about #177 and how best to tackle that in components and WIT, and I'm opening this issue to propose changes to both WIT and the component...

view this post on Zulip Christopher Hunt (May 30 2023 at 21:59):

Thank you!


Last updated: Nov 22 2024 at 16:03 UTC