Hello I'm happy to share that WASM Analyzer is now up and running. It allows you to inspect wasm files by uploading them (it's only client side so no wasm files are ever stored or sent to a server) or by exploring and inspecting components on the WARG registry: https://wa2.dev/
Give it a try and share any feedback you might have. We are working on publishing it open-source in the coming days.
Documentation will soon be published as well.
it looks like wasi:cli
and wasi:http
are missing metadata and comments, not sure why that would be. probably a bug in the wit
tool or I didn't save the changes to the manifest before publishing
weird that wasi:http
has a comments section, but it's empty
i'll look into that
wasi:http
doesn't use doc comments
Oh nice catch, saw all the heavy commenting and my brain tricked me
Yeah that's unfortunate
Worked great on a couple core wasm files I threw at it (python wasi and a few emscripten wasm files I had around)!
Couldn't get it to load the 150MB libreoffice wasm file: https://wasm-test.libreoffice.org/soffice.wasm
End up with some console errors:
image.png
The documentation link at the initial screen seems broken. It just adds a #
to the url.
Milan said:
Couldn't get it to load the 150MB libreoffice wasm file: https://wasm-test.libreoffice.org/soffice.wasm
End up with some console errors:
image.png
There was a fix released for the wasm exception proposal. Might be worth another try
super happy for someone to change the regular comments to doc comments in wasi-http! (why do we even have non-doc-comments anyway)
I pushed up new packages for wasi:http
and wasi:cli
that fixes the missing metadata (I had a version of the wit
tool that didn't publish with it, oops) and comments for wasi:http
(at least for the fork at my wasi repo)
Scott Waye said:
Milan said:
Couldn't get it to load the 150MB libreoffice wasm file: https://wasm-test.libreoffice.org/soffice.wasm
End up with some console errors:
image.pngThere was a fix released for the wasm exception proposal. Might be worth another try
Doesn't seem to have done the trick. Cleared cache and restarted chrome but still fails. Also fails in Firefox. Guessing it's a memory issue. Opening that wasm file gets to 2GB of ram usage:
image.png
Can't tell much from the stack trace:
wa2.dev-1694042951369.log
Oh, sorry about that. I will take a look and fix it.
bjorn3 said:
The documentation link at the initial screen seems broken. It just adds a
#
to the url.
We will be launching the documentation site later today and update the link.
Milan said:
Scott Waye said:
Milan said:
Couldn't get it to load the 150MB libreoffice wasm file: https://wasm-test.libreoffice.org/soffice.wasm
End up with some console errors:
image.pngThere was a fix released for the wasm exception proposal. Might be worth another try
Doesn't seem to have done the trick. Cleared cache and restarted chrome but still fails. Also fails in Firefox. Guessing it's a memory issue. Opening that wasm file gets to 2GB of ram usage:
image.pngCan't tell much from the stack trace:
wa2.dev-1694042951369.log
I have deployed a fix now. The issue was that it converted the WASM file to WAT for you to view. But since the wasm module is so large it produces more WAT than what we can hold in memory. For now it just skips outputting WAT for large files. I will put a more permament fix in, in the future.
That worked! (Sorry for the delayed reaction, IT decided to block the domain and just got the notification it was unblocked :sweat_smile:)
Hi, get exception when I try to open trivial component. https://raw.githubusercontent.com/pavelsavara/jsco/main/hello/wasm/hello.wasm
Last updated: Dec 23 2024 at 12:05 UTC