Stream: general

Topic: mapping components and wit to various languages


view this post on Zulip nikomatsakis (Oct 28 2024 at 08:33):

Is there some kind of summary page showing how WIT and WASM components are "canonically" mapped to various languages?

For example, what does a "world" look like when I'm in Java, in Rust, etc?

view this post on Zulip Lann Martin (Oct 28 2024 at 12:31):

There is not, afaik

view this post on Zulip Joel Dice (Oct 28 2024 at 13:51):

The closest thing available now might be https://component-model.bytecodealliance.org/language-support.html

view this post on Zulip Joel Dice (Oct 28 2024 at 14:03):

Note that the state of Java support for WIT is in limbo right now. See https://github.com/bytecodealliance/wit-bindgen/issues/1010 and #wasmtime > Java Component Model Support for details.

the lib.rs in teavm-java seems to have a number of todo! macros currently, which prevent bindings being generated for any .wit files containing resource types.

view this post on Zulip Victor Adossi (Oct 28 2024 at 15:06):

AFAIK going forward documentation on language semantics/mappings should land in the component-model book and relevant toolchain repositories (be they examples or guides), with links going between the two as necessary.

While the component-docs repo is likely to be light on code for every language under the sun, the language toolchains should have more examples that showcase functionality.

view this post on Zulip nikomatsakis (Oct 31 2024 at 15:40):

Thank you


Last updated: Nov 22 2024 at 16:03 UTC