Wr

Wrote a tiny WebAssembly (wat2wasm) compiler in Go

Hacker News

Wrote a tiny WebAssembly (wat2wasm) compiler in Go

As a personal project I wrote a really tiny Wat 2 Wasm compiler in Go. Mainly for demonstrative and educational purposes. It was tough: I didn't know anything about WebAssembly internals and I'm a newbie with Go... so I tried to document it as much as I could for anyone that would like to approach the quest in the future! It misses a lot of features (that will be gradually implemented). Any feedback is welcomed!! Demo: https://luna-demo.vercel.app

Share card

Actual performance

75points
2comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
68%68% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, tiny · Missing: mac, agents, macos
65%65% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: personal, education · Missing: mobile apps, ios, entrepreneurs
44%44% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
39%39% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
23%23% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
12%12% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
5%5% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

A
A tiny x86 compiler with ELF and PE target71%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A tiny x86 compiler with ELF and PE target

Hacker News11
A
A tiny WebAssembly compiler76%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A tiny WebAssembly compiler

Hacker News1
Ha
Haskell Tiny Tetris80%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Haskell Tiny Tetris

Hacker News4
C+
C++ (tiny) BigNum Multiply w/ Genaille-Lucas Rulers from 189159%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C++ (tiny) BigNum Multiply w/ Genaille-Lucas Rulers from 1891

Hacker News1
TO
TOCC – A Tiny DFA to C Compiler64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TOCC – A Tiny DFA to C Compiler

Hacker News9
Ti
Tiny Syntax Highlighter57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tiny Syntax Highlighter

Hacker News3
Vt
Vtcc, Tiny C Compiler translated to V64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Vtcc, Tiny C Compiler translated to V

Hacker News5
Bi
BigHN, DarkHN, and NoHN - Very Tiny Userscripts to Customise HN62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BigHN, DarkHN, and NoHN - Very Tiny Userscripts to Customise HN

Hacker News2
Ti
Tiny VPSs without exhausting IPv4 addresses48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tiny VPSs without exhausting IPv4 addresses

Hacker News95
A
A tiny Go wrapper around Restcountries43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A tiny Go wrapper around Restcountries

Hacker News4