Stream: wasi

Topic: preview2 in wasmtime 10.0 release


view this post on Zulip Pat Hickey (Jun 06 2023 at 17:19):

Hi folks - preview2 support will be available in the wasmtime-wasi crate as part of the 10.0 release, which was cut a few days ago and will be released on the 20th. however, there are known bugs in the implementation, and it is not ready for production use. So, despite being "on by default" in the cargo features, we are treating it like an off-by-default feature in that we wont be doing patch releases for bugs.

view this post on Zulip Pat Hickey (Jun 06 2023 at 17:20):

same for the component adapter (though there are no known bugs in there at the moment)

view this post on Zulip Pat Hickey (Jun 06 2023 at 17:22):

in general, since the preview2 definition is still a moving target (and wasmtime's use of preview2 doesn't have perfect fidelity with upstream in the standards repos yet) it will be difficult to treat preview2 support as stable, and provide api-compatible patches, until we finalize those definitions. we are hoping to settle those by the fall of this year.

view this post on Zulip fitzgen (he/him) (Jun 06 2023 at 17:22):

it relies on component support right? which is off by default, so preview2 would also be off by default, right?

view this post on Zulip Pat Hickey (Jun 06 2023 at 17:22):

but, please do start using it in non-production contexts and report bugs!

view this post on Zulip Pat Hickey (Jun 06 2023 at 17:22):

it does, but the wasmtime-wasi crate will turn on the wasmtime crate's (off by default) component-model feature. components are still off by default in wasmtime::Config.

view this post on Zulip DougAnderson444 | PeerPiper.io (Jun 08 2023 at 14:02):

@Pat Hickey is there a "Hello World" of the latest config and versions we could use as a starting point? One with both a Component and a Host using that component? Would go a long way as I know a bunch of us are still having trouble getting something up and running with all the changes. Thanks!

view this post on Zulip Pat Hickey (Jun 09 2023 at 17:40):

the closest thing to a hello world at the moment is the contents of test-programs/tests/command.rs

view this post on Zulip Pat Hickey (Jun 09 2023 at 17:40):

and building your guests according to test-programs/build.rs

view this post on Zulip Scott Waye (Jun 20 2023 at 15:22):

not really related but does wasmtime 10.0. have wasm exception support?

view this post on Zulip Chris Fallin (Jun 20 2023 at 15:24):

No, we haven't built that yet; it's quite a complex feature and relies on underlying support in the compiler (which, last I had heard, @bjorn3 was working on) as well

view this post on Zulip bjorn3 (Jun 20 2023 at 15:57):

I have the cranelift side working for aarch64. I won't be working on implementing it in wasmtime though. Adding support for working with exception tags and handling lowering of new control flow instructions in cranelift-wasm turned out to be a lot more involved than I thought. It is probably best if someone with more experience with wasmtime implements those things. I have implemented it in both cg_clif and cranelift-jit-demo and plan to work on them and then do the experiments for my thesis and after I'm done with my thesis I'm going to open a couple of PRs.

view this post on Zulip Chris Fallin (Jun 20 2023 at 16:14):

very excited to see your work @bjorn3 !


Last updated: Oct 23 2024 at 20:03 UTC