Stream: general

Topic: dump instances (and other debugging utilities)


view this post on Zulip Soni L. (Sep 23 2024 at 16:17):

instead of useless error messages like "instance not valid to be used as import", why not dump the entire instance's type signature?

view this post on Zulip Lann Martin (Sep 23 2024 at 16:30):

You are welcome to open a feature request in https://github.com/bytecodealliance/wasm-tools

CLI and Rust libraries for low-level manipulation of WebAssembly modules - GitHub - bytecodealliance/wasm-tools: CLI and Rust libraries for low-level manipulation of WebAssembly modules

view this post on Zulip Soni L. (Sep 23 2024 at 17:18):

in wasmtime

view this post on Zulip Soni L. (Sep 23 2024 at 17:19):

like, why do we need

      (export $error-e "error" (type (eq $error-t)))
      (type $stream-error-t (variant (case "last-operation-failed" (own $error-e)) (case "closed")))
      (export $stream-error "stream-error" (type (eq $stream-error-t)))

instead of, say,

      (type $stream-error (variant (case "last-operation-failed" (own $error-t)) (case "closed")))

why does the latter not work? why doesn't wasmtime tell us why it doesn't work?

view this post on Zulip Soni L. (Sep 23 2024 at 19:19):

opened an issue https://github.com/bytecodealliance/wasmtime/issues/9293

Feature Improve error messages. Benefit Descriptive error messages are useful when writing raw wasm code. Implementation N/A Alternatives Not much of an alternative, but one can use wabt. For compa...

Last updated: Dec 23 2024 at 13:07 UTC