Stream: general

Topic: WASM Analyzer


view this post on Zulip Timmy Silesmo (Sep 06 2023 at 15:25):

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.

view this post on Zulip Peter Huene (Sep 06 2023 at 17:32):

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

view this post on Zulip Peter Huene (Sep 06 2023 at 17:33):

weird that wasi:http has a comments section, but it's empty

view this post on Zulip Peter Huene (Sep 06 2023 at 17:34):

i'll look into that

view this post on Zulip Lann Martin (Sep 06 2023 at 18:08):

wasi:http doesn't use doc comments

view this post on Zulip Peter Huene (Sep 06 2023 at 18:18):

Oh nice catch, saw all the heavy commenting and my brain tricked me

view this post on Zulip Peter Huene (Sep 06 2023 at 18:18):

Yeah that's unfortunate

view this post on Zulip Milan (Sep 06 2023 at 19:43):

Worked great on a couple core wasm files I threw at it (python wasi and a few emscripten wasm files I had around)!

view this post on Zulip Milan (Sep 06 2023 at 19:49):

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

view this post on Zulip bjorn3 (Sep 06 2023 at 20:14):

The documentation link at the initial screen seems broken. It just adds a # to the url.

view this post on Zulip Scott Waye (Sep 06 2023 at 21:09):

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

view this post on Zulip Pat Hickey (Sep 06 2023 at 21:22):

super happy for someone to change the regular comments to doc comments in wasi-http! (why do we even have non-doc-comments anyway)

view this post on Zulip Peter Huene (Sep 06 2023 at 22:47):

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)

view this post on Zulip Milan (Sep 06 2023 at 23:32):

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.png

There 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

view this post on Zulip Timmy Silesmo (Sep 07 2023 at 05:56):

Oh, sorry about that. I will take a look and fix it.

view this post on Zulip Timmy Silesmo (Sep 07 2023 at 05:59):

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.

view this post on Zulip Timmy Silesmo (Sep 07 2023 at 08:27):

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.png

There 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

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.

view this post on Zulip Milan (Sep 13 2023 at 00:00):

That worked! (Sorry for the delayed reaction, IT decided to block the domain and just got the notification it was unblocked :sweat_smile:)

view this post on Zulip Pavel Šavara (Sep 23 2023 at 10:25):

Hi, get exception when I try to open trivial component. https://raw.githubusercontent.com/pavelsavara/jsco/main/hello/wasm/hello.wasm

image.png


Last updated: Nov 22 2024 at 17:03 UTC