4 ms·
> I wonder what would happen if you ran a golang wasm binary on a the golang wagon WASM interpereter IIRC it won't quite work because the plumbing required for
by kodablah 8y ago
> I wonder what would happen if you ran a golang wasm binary on a the golang wagon WASM interpereter
IIRC it won't quite work because the plumbing required for WASM on the host side isn't done there yet [0]. The plumbing is mostly [1]. In a project I did on the side to reduce Go WASM size and startup time [2], I built just enough of this plumbing to solve my needs. Go initially targets only JS [3], so sadly us with non-web use cases might have to wait.
0 - https://github.com/go-interpreter/wagon/issues/69 https://github.com/go-interpreter/wagon/issues/69
1 - https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js https://github.com/golang/go/blob/master/misc/wasm/wasm_exec...
2 - https://github.com/cretz/go-wasm-bake https://github.com/cretz/go-wasm-bake
3 - https://github.com/neelance/go/pull/7#issuecomment-377298992 https://github.com/neelance/go/pull/7#issuecomment-377298992
- parhamn 8y agoNeat, thanks!