logoalt Hacker News

neomantra • today at 12:01 PM • 0 replies • view on HN

I was a drive-by contributor to TinyGo, focused on getting MacOS and JS/WASM working well this summer, along with getting BubbleTea to work with it (the last of which was finally merged yesterday!). It was a lot of work, but now it unlocked so much capability for me.

The TinyGo project is an intensely talented cadre of developers. They care deeply this alternative Go compiler/runtime. It was really neat to see them in action and how an already established project accelerated in a year.

It was interesting to see how they adopted LLMs (basically use them but you better know what's going on) and how they dealt with newcomers. The project's scaffolding has improved to keep pace.

While it was intended to get Golang on small devices, the same love makes it work well for WASM. Also it improves as LLVM improves.

I rather consistently get 50% size binaries that run 10% faster and use lower memory than Vanilla Go. The drawback is 5x slower build times. So I dev-loop with Vanilla go and then prod-loop with TinyGo.

Booba will help you embed your Golang in a browser, either Vanilla or TinyGo. There's still some go.mod friction, but the next BubbleTea release will fix that.

https://nimbleterminal.com/booba

Here's some TinyGo interactive graphics next to Vanilla:

https://nimblemarkets.github.io/ntcharts3d/?demo=gallery&com...

Pro-tip: use gc=boehm for JS/WASM targets