DL
Size: a a a
DL
VG
EM
LA
i
EM
LA
% du -sch main.wasm
7.1M main.wasm
7.1M total
VG
LA
DL
% du -sch main.wasm
7.1M main.wasm
7.1M total
LA
DL
% du -sch main.wasm
7.1M main.wasm
7.1M total
TinyGo supports a subset of the Go language targeted for embedded devices, and has a WebAssembly output target.
While it does have limitations (not yet a full Go implementation), it is still fairly capable and the generated Wasm files are… tiny. ~10kB isn’t unusual. The "Hello world" example is 575 bytes. If you gz -6 that, it drops down to 408 bytes.
LA
DL
LA
LA
LA