Pushed my wit-bindgen experiments here: <https://g...
# webassembly
a
Pushed my wit-bindgen experiments here: https://github.com/alxgrk/wit-bindgen Disclaimer: the code it produces should be more or less compile error free (except for the
@JsName
export names), but doesn’t run yet due to missing implementation of GC proposal in
wasmparser
crate (Ivan Mikushin said that he thinks he can complete that in ~1month) and maybe others. Also, memory allocation & de-allocation will probably not work as expected. I tried to stick as close to the TeaVM Java implementation as possible to minimize maintenance later, but of course I don’t know yet if the generated code would actually run correctly. If you want to have a look at generated test code, run
cargo test
in the repository’s root directory & view the files at
target/runtime-tests/{test-case}/kotlin-{test-case}
- currently,
{test-case}
equals one of
smoke
(already free of any compile error because there are no exports),
lists
,
numbers
,
records
or
variants
. Please let me know if you see any obvious issues.
❤️ 1
👍 2