Show HN: Wrote a tiny WebAssembly (wat2wasm) compiler in Go

https://github.com/thomscoder/luna
by thomscoder • 4 years ago
75 2 4 years ago

As a personal project I wrote a really tiny Wat 2 Wasm compiler in Go. Mainly for demonstrative and educational purposes. It was tough: I didn't know anything about WebAssembly internals and I'm a newbie with Go... so I tried to document it as much as I could for anyone that would like to approach the quest in the future!

It misses a lot of features (that will be gradually implemented).

Any feedback is welcomed!!

Demo: https://luna-demo.vercel.app

Related Stories

Loading related stories...

Source preview

github.com