Show HN: Wasm decoder with focus on helpful errors/diagnostics

Hey everyone! I started writing a decoder from scratch for WebAssembly modules (i.e. a parser for `.wasm` files).

The primary motivation was to learn both WebAssembly _and_ a new language. However it turned out to be a very fun project, and I think there is space for a decoder with helpful error messages, that can serve as a good debugging tool or for educational purposes.

A sample output can be found at for an invalid module can be found at https://github.com/agis/wadec?tab=readme-ov-file#usage.

Recently it hit v2.0 spec conformance (I'm executing it against the upstream spec test suite.) 3.0 is next on the roadmap.

It's still in very early stage, but any feedback is more than welcome. Thanks!

https://github.com/agis/wadec

2 points pasxizeis 10 months ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton