3 ms·
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 bi
by ThePhysicist 2y ago
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.
- ducktapeofficer 2y agoSaying 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.
- deleted 2y ago[deleted]
- packetlost 2y agoIt'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.
- guappa 2y agoIt'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.