A Wasm to Go Translator
Details
- External ID
- 47168530
- Source
- HN
- Company
- —
- Product
- A Wasm to Go Translator
- Website domain
- github.com
- Launched
- Feb. 26, 2026
- Cohort
- —
- Upvotes
- 7
- Upvotes percentile
- 0.38207547169811323
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
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/testdataI 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.
Enrichment
- Theme
- lightweight and on-device AI runtimes
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- translate webassembly to go
- Manually corrected
- False
Could you build this?
No Transpiling WebAssembly bytecode into idiomatic, performant Go code capable of compiling 600k LoC of C/SQLite requires compiler engineering and virtual machine architecture expertise.
What it would actually take: Requires building a full Wasm binary decoder, type checker, control flow restructuring engine (converting Wasm structured control flow / irreducible CFGs into Go loops and gotos), and emulating linear memory/pointer arithmetic in Go. This is low-level compiler research requiring deep expertise in Wasm specs and Go compiler internals.
Discussion
1 comment analyzed.
Competitors mentioned: wazero
Concerns raised: Generated code is slow to compile and unreadable
Feature requests: Performance optimization for little endian platforms using unsafe.Pointer
Competitors
Other products that read as similar to this one — 48 launches clear the similarity bar, closest 8 shown.
Attention rank: #31 of 49 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 117 days after the earliest competitor.
- Llm.sql · hn · 2026-04-24 · 8 upvotes · similarity 0.50
- I made a Clojure-like language in Go, boots in 7ms · hn · 2026-05-09 · 292 upvotes · similarity 0.44
- NetWasm · hn · 2026-09-29 · 5 upvotes · similarity 0.38
- Distilled 0.6B text-to-SQL model · hn · 2026-01-21 · 5 upvotes · similarity 0.37
- I fine-tuned Qwen 3.5 (0.8B–4B) on a Mac for text-to-SQL · hn · 2026-03-05 · 7 upvotes · similarity 0.37
- go-acs · github · 2026-09-28 · 9 upvotes · similarity 0.37
- ChikkaDB · hn · 2025-11-29 · 5 upvotes · similarity 0.36
- Codex CLI compiled to WASM running in the browser · hn · 2026-08-19 · 5 upvotes · similarity 0.36
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.