6 ms·
Go makes pretty bad WebAssembly. It only embeds in Javascript, and it's at least 2MB for Hello World. You can't really use it in server-side engines like wasm
by fizx 6y ago
Go makes pretty bad WebAssembly. It only embeds in Javascript, and it's at least 2MB for Hello World. You can't really use it in server-side engines like wasmer/wasmtime.
TinyGo is far better, but only supports a subset of Go's stdlib.
I'm playing with TinyGo, and using GPRC communication with the outer engine as a poor substitute for WASM interface types.
https://github.com/fizx/goingo https://github.com/fizx/goingo if you want to read the ugly prototype!
- syrusakbary 6y agoI'm hoping that Go will focus on improving the size of the binaries soon, specially for the Wasm use cases. goingo is a great idea... excited for it!