News for hackers. Stuff that matters.
Re:Go GC: Prioritizing low latency and simplicity by eloff on Monday August 31, 2015 @10:09PM (#10150308)
It's not a limitation, just a tuning knob that can be used to trade off GC cycles against memory usage. If you're in a low-memory environment, tune the knob to use more CPU.
Re:Go GC: Prioritizing low latency and simplicity by mehrdada on Monday August 31, 2015 @10:16PM (#10150323)
My comment was targeting that particular statement and was not meant to be interpreted as a deficiency in this particular GC design, though if I were to comment about that, I have to say I remain a bit skeptical about how far you can effectively scale it down via this single knob technique; scaling up, I'm more certain about.
Re:Go GC: Prioritizing low latency and simplicity by eloff on Monday August 31, 2015 @10:48PM (#10150424)
Fair enough. It might not scale down that well, especially since on low-memory systems you often worry about CPU usage and power usage as well. But Go uses a lot less memory to begin with, so the default GOGC value of 100% (half of application memory used, half free) will still be less than a similar Java program, even ignoring that Java also needs a heap larger than the allocated size to get good performance.
Re:Go GC: Prioritizing low latency and simplicity by cwyers on Monday August 31, 2015 @10:16PM (#10150322)
What if you're in a low-everything environment?
Re:Go GC: Prioritizing low latency and simplicity by millstone on Tuesday September 01, 2015 @12:14AM (#10150692)
Then don't use Go. Go was pitched as a systems language, but has found its niche as a server language. It's to be expected that the maintainers will make decisions that tune it for servers.
Re:Go GC: Prioritizing low latency and simplicity by wereHamster on Tuesday September 01, 2015 @01:58AM (#10150948)
Don't use a language which has GC. Allocate all objects statically.. no memory management needed at runtime.
Re:Go GC: Prioritizing low latency and simplicity by Taek on Monday August 31, 2015 @10:31PM (#10150368)
At some point you can no longer afford the luxury of a garbage collector. As the tech gets better, that point gets lower and lower, but there are still limitations.
Re:Go GC: Prioritizing low latency and simplicity by NateDad on Tuesday September 01, 2015 @12:08AM (#10150676)
Phones have two gigs of RAM and four cores these days. Low what? If you're talking software on an internet connected fridge, then, maybe, but that's a pretty niche area even in today's mostly theoretical and overpriced IOT world.