News for hackers. Stuff that matters.
Re:Why I love Rust for tokenising and parsing by ThePhysicist on Friday November 08, 2024 @04:39AM (#42085590)
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.
Re:Why I love Rust for tokenising and parsing by ducktapeofficer on Friday November 08, 2024 @06:02AM (#42085903)
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.
Re:Why I love Rust for tokenising and parsing by packetlost on Friday November 08, 2024 @10:11AM (#42087433)
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.
Re:Why I love Rust for tokenising and parsing by guappa on Monday November 11, 2024 @02:48AM (#42105247)
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.