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…
What it does
In the maker’s words, at launch
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.
Does the same job
all alternatives →- GBGo bindings to SQLite using wazero2023 · github.com · ▲9
- CLCodeQL-Like Analyzer for Go2020 · github.com · ▲39
- LSLlm.sql – Run a 640MB LLM on SQLite, with 210MB peak RSS and 7.4 tok/sApr 2026 · ▲8
Hi HN, I built llm.sql, an LLM inference framework that reimagines the LLM execution pipeline as a series of structured SQL queries atop SQLite. The motivation: Edge LLMs are getting better, but hardware remains a bottleneck, especially RAM (size and bandwidth). When available memory is less than the model size and KV cache, the OS incurs page faults and swaps pages using LRU-like strategies, resulting in throughput degradation that's hard to notice and even harder to debug. In fact, the memory access pattern during LLM inference is deterministic - we know exactly which weights are needed…
- GMGoSMig – minimal, type-safe SQL migrations written in GoOct 2025 · github.com · ▲7
I built GoSMig for my own projects and open-sourced it in case it helps others. It’s a tiny generic library (no external deps except golang.org/x/term) for writing SQL migrations in Go with compile-time checks. It supports transactional and non-transactional migrations, rollback, status, version, and a small CLI handler so you can ship your own migration binary. Why another migrator? - Minimal API, no DSL or file layout to learn - Type-safe via Go generics - Works with database/sql and sqlx out of the box - Should work with any db library (or wrapper) that implements some…
- SASqlm a minimalist sql builder for Golang2016 · github.com · ▲8
- BLBuild Local-First Apps(WASM+SQLite)2023 · ▲7
Hey, everyone! SkyAlt is a browser and SDK for Local-first applications at the top of SQLite files. One and half months ago, I started working on the idea of rebuilding some software as services I use into local-first apps. SkyAlt is a combination of SQLite(storage), WASM(app binary) and JSON(settings, communication). I decided to build my own 'browser', which has around ~10K LOC and has nothing to do with WebKit(HTML/CSS/JS) or Chromium. Apps use immediate mode GUI to draw and communicate with Skyalt. The layout is a flexible grid. Apps are written in the Go language. Right now…
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com
