Hacker GitHub

← All repos

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

Mentions per year 21 mentions · busiest year 2026 (21)
20082026
  1. …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
  2. …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
  3. 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
  4. Curious where my wasm2go would stand compared to wazero. I should test it myself. :) https://github.com/ncruces/wasm2go
  5. 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...
  6. 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.
  7. 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…
  8. …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
  9. …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
  10. …easier). Feel free to scrutinize/criticize the code. Not vibe coded, but plenty of GenAI help. https://github.com/ncruces/wasm2go
  11. 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…
  12. …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
  13. 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
  14. 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
  15. …(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
  16. …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...
  17. …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
  18. …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
  19. …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
  20. ▲ 2
    Ncruces/wasm2go: A WASM to Go translator
    story by atkrad · 2026-03-05 · 2 comments
  21. ▲ 7
    Show HN: A Wasm to Go Translator
    story by ncruces · 2026-02-26 · 1 comment