Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Lots of folks use Golang on the client side, even on mobile (for which Go has really great support with go-mobile). Of course it adds around 10-20 MB to your binary and memory footprint but in todays world that's almost nothing. I think Tailscale e.g. uses Golang as a cross-platform Wireguard layer in their mobile and desktop apps, seems to work really well. You wouldn't build a native UI using Golang of course but for low-level stuff it's fantastic. Tinygo even allows you to write Golang for microcontrollers or the web via Webassembly, lots of things aren't supported there but a large part of the standard library is.


Saying a the language adds 10-20 mb and go on to say it's almost nothing is avoiding the issue raised. The footprint always matters and we should use the right tool for the right job.


It's not ignoring it, it's saying that 20Mb of data isn't really a lot these days which is objectively true for most contexts.


It's not just data. It's data that needs to be memory mapped and faulted into RAM.

Go programs do have kinda slower startup times compared to regular dynamically linked C/C++ programs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: