ncruces/wasm2go
View on GitHub ↗ ★ 245 Go
A Wasm to Go translator
21 mentions on Hacker News by 2 people: 2 stories, 19 comments · first 2026-02-26 · latest 2026-10-12
20082026
-
…I just wrote up the security goals of the tool I use to translate C to Go: https://github.com/ncruces/wasm2go/blob/main/SECURITY.md I obviously can't make any promises, as it's just a personal pet project, but those are the goals, an
comment by ncruces · 2026-10-12 · in A Modern Web App in C -
…on average better), for a significant reduction in code size. http://www.gii.upv.es/tlsf/index.html https://github.com/ncruces/wasm2go/blob/main/libc-gen/c/mall...
comment by ncruces · 2026-09-17 · in Comparison of Malloc() Algorithms -
Thanks for the kind words! Added you to my users page a couple days ago, hope you don't mind: https://github.com/ncruces/wasm2go/blob/main/USERS.md
comment by ncruces · 2026-09-12 · in Performance of WebAssembly Runtimes in 2026 -
Curious where my wasm2go would stand compared to wazero. I should test it myself. :) https://github.com/ncruces/wasm2go
comment by ncruces · 2026-09-12 · in Performance of WebAssembly Runtimes in 2026 -
I wrote this bump malloc that I use for very short lived Wasm modules: https://github.com/ncruces/wasm2go/blob/main/libc-gen/c/mall...
comment by ncruces · 2026-07-23 · in Why malloc always does more than I asked for? -
I wish I could've one shoted this 200 LoC PR: https://github.com/ncruces/wasm2go/pull/42/changes#diff-5181... I'd really like to know the prompt, because I did try and, this took me way too long to figure out.
comment by ncruces · 2026-06-19 · in Is AI ruining our skills? Early results are in – and they're not good -
I just spent a week reviewing this ~200 LoC PR: https://github.com/ncruces/wasm2go/pull/37 It was submitted by a seasoned user, who probably asked a frontier LLM. It still felt… wrong. I didn't understand it, and I wouldn't merge it…
comment by ncruces · 2026-06-17 · in AI demands more engineering discipline. Not less -
…shape to test if it was a good idea. I think it was (a good idea), and AI made it easier for sure. https://github.com/ncruces/wasm2go
comment by ncruces · 2026-06-09 · in Ask HN: What are tools you have made for yourself since the advent of AI? -
…connections). And it should run everywhere Go runs. 1: https://github.com/ncruces/go-sqlite3 2: https://github.com/ncruces/wasm2go
comment by ncruces · 2026-06-07 · in A CGo-free port of SQLite/SQLite3 -
…easier). Feel free to scrutinize/criticize the code. Not vibe coded, but plenty of GenAI help. https://github.com/ncruces/wasm2go
comment by ncruces · 2026-05-19 · in The last six months in LLMs in five minutes -
Adding support for the threads/atomics proposal to my Wasm to Go transpiler: https://github.com/ncruces/wasm2go Since I started it a couple of months ago, it's been used by me to transpile SQLite to Go, and by some other folks to transpile…
comment by ncruces · 2026-05-10 · in Ask HN: What are you working on? (May 2026) -
…the person who tried to translate Perl got a 80MB Go file that was taking them 20min to compile. https://github.com/ncruces/wasm2go/discussions/15
comment by ncruces · 2026-04-29 · in WASM is not quite a stack machine -
Shameless plug… compiling it to Go is a great option too: https://github.com/ncruces/wasm2go I've used it to translate SQLite (with a few extensions) and, that I know of, it's been used (to varying degrees of success) to translate the…
comment by ncruces · 2026-04-28 · in WASM is not quite a stack machine -
Still working on improving wasm2go (a Wasm to Go "transpiler"): https://github.com/ncruces/wasm2go Already using it for my SQLite driver, and already in use by some a few other projects: https://github.com/topics/wasm2go
comment by ncruces · 2026-04-12 · in Ask HN: What Are You Working On? (April 2026) -
…(and doing stuff where this actually matters) adding this to your CI can be as simple as this: https://github.com/ncruces/wasm2go/blob/v0.3.0/.github/workf... On Linux it's really as simple as installing QEMU binfmt and doing: GOARCH=s390x…
comment by ncruces · 2026-04-03 · in Big-Endian Testing with QEMU -
…it's nice to test on actual hardware. Here's a workflow so you can see both approaches working: https://github.com/ncruces/wasm2go/blob/main/.github/workflo...
comment by ncruces · 2026-03-30 · in The RISE RISC-V Runners: free, native RISC-V CI on GitHub -
…that can translate SQLite compiled to Wasm into 500k lines of Go in about a month of my spare time. https://github.com/ncruces/wasm2go
comment by ncruces · 2026-03-15 · in The 100 hour gap between a vibecoded prototype and a working product -
…code to C (or Go). wasm2c: https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.... wasm2go: https://github.com/ncruces/wasm2go
comment by ncruces · 2026-03-08 · in Notes on writing Rust-based Wasm -
…s://github.com/ncruces/go-sqlite3/discussions/361 If you're interested in generated sample code, see: https://github.com/ncruces/wasm2go/tree/main/testdata If you're interested in using wasm2go, but feel that something is missing, I'm…
comment by ncruces · 2026-03-06 · in Ncruces/wasm2go: A WASM to Go translator -
▲ 2
Ncruces/wasm2go: A WASM to Go translatorstory by atkrad · 2026-03-05 · 2 comments
-
▲ 7
Show HN: A Wasm to Go Translatorstory by ncruces · 2026-02-26 · 1 comment