A Wasm to Go Translator
A Wasm to Go Translator
I've spent the past couple of weeks building a Wasm-to-Go translator. It supports a subset of Wasm useful enough to translate SQLite into 600k LoC (~20 MiB) of Go code. It already passes all of my Go SQLite driver's tests across the 20 platforms I support. Performance compared to https://wazero.io/ is a bit of a mixed bag: code that frequently crosses the Go-Wasm boundary improves, but code that spends most of its time in "Wasm land" doesn't. There's probably room for improvement (I'd love to hear your ideas), but this is also a testament to how good the wazero AOT compiler actually is. You can get a feel for the generated code by looking into https://github.com/ncruces/wasm2go/tree/main/testdata I should eventually spend some time ensuring the translator passes the spectest, though I suspect that'll be far less fun than building the translator itself was.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
leetspeak translator
Langy – AI Translator
Morse Code Translator
Porque sometimes one language no es enough.
Crypto Translator
Online Morse Code Translator
An Automated AI Translator
Chic Translator – Translations that don't suck
Pb2zig – Pixel Bender to Zig Translator
Free online leet speak (1337) text translator