Stream: wasi

Topic: wasi for custom languages


view this post on Zulip Carlo Kok (Jan 19 2022 at 13:52):

I read the docs on WASI however what I can't seem to find is how a non rust/c++ language would integrate with the wasi spec. Ie what is expected, what is provided by wasi. how is the tooling in regards to things like debugging?

view this post on Zulip Dan Gohman (Jan 19 2022 at 13:57):

the big picture for WASI is that we set out to build a System Interface for wasm, but it turned out that much of what we were building needed to be factored out and built into a platform layer rather than just being part of WASI, so the whole platform is changing.

view this post on Zulip Carlo Kok (Jan 19 2022 at 13:58):

So if I wanted to support WASI from my compiler, the suggestion is to wait till WASI is more stable (abi/api wise) ?

view this post on Zulip Dan Gohman (Jan 19 2022 at 13:59):

You can target WASI today; it's just a minimal abi -- program starts with a _start function export, exports memory as "memory", and a set of imports in the wasi_snapshot_preview1 import namespace

view this post on Zulip Dan Gohman (Jan 19 2022 at 14:00):

But answers to more advanced questions like debugging will often be in flux for a while

view this post on Zulip Carlo Kok (Jan 19 2022 at 14:00):

Is there a capable debugger for what is there right now?

view this post on Zulip Carlo Kok (Jan 19 2022 at 14:00):

In the browser we take over chrome remotely and do it that way

view this post on Zulip Dan Gohman (Jan 19 2022 at 14:02):

https://docs.wasmtime.dev/examples-debugging.html is what we have today

view this post on Zulip Carlo Kok (Jan 19 2022 at 14:04):

just trying to get a feel for the landscape atm. I had two customers asking if we were considering WASI as a host

view this post on Zulip Carlo Kok (Jan 19 2022 at 14:04):

thanks!

view this post on Zulip Dan Gohman (Jan 19 2022 at 14:06):

Overall, the answer is, there's current WASI which is somewhat stable though not very advanced, and then there are big changes coming up.


Last updated: Dec 23 2024 at 12:05 UTC