logoalt Hacker News

spankalee • today at 2:06 AM • 1 reply • view on HN

Wasm is a first-class target for Rust, which produces faster and smaller Wasm binaries. My understanding is that you need to use TinyGo to reasonably target Wasm with Go.

Go having a garbage collector isn't necessarily bad, since Wasm has GC, but I think Go's GC can't easily use Wasm GC because Go has interior pointers.


Replies

win311fwg • today at 7:29 AM

WASM is also a first-class target for Go (gc).

However, it has a relatively large runtime, so TinyGo is often preferred when bundle size needs to be small.

➕ show 1 reply