News for hackers. Stuff that matters.
Re:Beating C with 70 lines of Go by timClicks on Wednesday November 20, 2019 @03:10PM (#21587955)
I'm really surprised by how much memory this task needs. Using a 16KB buffer and incrementing an integer needs multiple MB.

I guess that's the size of the executable after it's been loaded into RAM that's so large?

Re:Beating C with 70 lines of Go by weberc2 on Wednesday November 20, 2019 @04:04PM (#21588495)
Yeah, if that figure includes the executable, then it's also probably including the whole runtime (scheduler, GC, etc) since Go programs statically link the runtime by default. In that case, 2MB isn't so bad (especially considering glibc is ~10MB [and with no scheduler or GC!] iirc).
Re:Beating C with 70 lines of Go by ajeetdsouza on Wednesday November 20, 2019 @05:35PM (#21589359)
The size of a compiled Hello World program is 2 MB on my machine, so you're probably right!