Re:TinyGo: New Go Compiler Based on LLVM
by owaislone on Friday July 19, 2019 @01:24PM
(#20480644)
GC works even in WASM? That's great! What size wasm targets does TinyGo generate compared to the regular Go compiler?
[ Parent
| on HN ]
Re:TinyGo: New Go Compiler Based on LLVM
by sendilkumarn on Friday July 19, 2019 @01:52PM
(#20480904)
It produces much smaller binaries
My blog post on it -> https://dev.to/sendilkumarn/tiny-go-to-webassembly-5168
Re:TinyGo: New Go Compiler Based on LLVM
by justinclift on Friday July 19, 2019 @03:08PM
(#20481572)
In the (reasonably simple) stuff we've been doing so far, TinyGo produced wasm files are 2-3% the size of mainline Go produced wasm files. eg:
https://justinclift.github.io/tinygo_canvas2/ (~19.5kB)
https://justinclift.github.io/tinygo-wasm-rotating-cube/ (WebGL, ~12kB)