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?
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.
So if I wanted to support WASI from my compiler, the suggestion is to wait till WASI is more stable (abi/api wise) ?
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
But answers to more advanced questions like debugging will often be in flux for a while
Is there a capable debugger for what is there right now?
In the browser we take over chrome remotely and do it that way
https://docs.wasmtime.dev/examples-debugging.html is what we have today
just trying to get a feel for the landscape atm. I had two customers asking if we were considering WASI as a host
thanks!
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