Stream: wasmtime

Topic: wasmtime-dart


view this post on Zulip yohe (Sep 10 2024 at 18:36):

Hey, I wanted to ask if the bytecodealliance has plans or knew of any efforts to provide wasmtime bindings for the Dart language? We're evaluating adding support for Dart to our project and I'm asking in case there was work done that we we aren't aware of.

view this post on Zulip Alex Crichton (Sep 10 2024 at 19:04):

I'm not aware of anything myself, but if you do find something let us know so we can try to link it from docs

view this post on Zulip yohe (Sep 10 2024 at 19:46):

There's https://github.com/juancastillo0/wasm_run/ but it's on an older version. It is a bit more that wasmtime though and it uses wasmi, an interpreter on iOS targets and the browser itself for web.

Critically for our usecase, it doesn't have any WASI 0.2 support.

A WebAssembly executor for Dart and Flutter applications. Uses Rust's wasmtime optimizing runtime or wasmi interpreter to parse and execute WASM and WAT files. - juancastillo0/wasm_run

view this post on Zulip yohe (Sep 10 2024 at 19:47):

Oh wait, it does seem to have some bindgen support. I wonder why they've marked component model as unsupported in the table/matrix.

view this post on Zulip yohe (Sep 10 2024 at 19:51):

Yeah, looks like the bindgen stuff is experiment. They do have preview1 support though.

I guess we'll use what's in there as a starting point, seems like a serious effort even if abandoned.


Last updated: Nov 22 2024 at 16:03 UTC