News for hackers. Stuff that matters.
Re:Go, don't collect my garbage by dboreham on Monday November 13, 2017 @08:22AM (#15686333)
Simpler would be "just work like I expect".
Re:Go, don't collect my garbage by merlish on Monday November 13, 2017 @08:27AM (#15686365)
I think the expectation the Go lot have been working towards is the expectation that individual pauses are very short. Contrast to a Java server GC, aiming towards overall efficiency. (Tell me if I'm wrong, I'm no expert.)
Re:Go, don't collect my garbage by weberc2 on Monday November 13, 2017 @08:36AM (#15686413)
Yes, Go optimizes for low latency and Java for high throughput.
Re:Go, don't collect my garbage by pjmlp on Monday November 13, 2017 @08:59AM (#15686543)
Depends on the Java GC being used.
Re:Go, don't collect my garbage by weberc2 on Monday November 13, 2017 @12:40PM (#15688247)
Granted, but the stock GC is optimized for throughput.
Re:Go, don't collect my garbage by pjmlp on Monday November 13, 2017 @04:49PM (#15690584)
The stock GC on OpenJDK, there are other JVMs to choose from.
Re:Go, don't collect my garbage by weberc2 on Monday November 13, 2017 @08:36AM (#15686407)
As another commented posted elsewhere, GC is all about tradeoffs, and for a govern set of GC tradeoffs there will always be pathological cases. Another GC might work out of the box for this workload, but perform very badly for a workload at which Go's GC excels. As others have already mentioned, the fact that he was so easily able to tune the GC is a testament to Go's simplicity.

There are lots of good criticisms of Go to be had, but it's runtime is pretty remarkable, in my opinion.

Re:Go, don't collect my garbage by falcolas on Monday November 13, 2017 @08:27AM (#15686366)
What about the use cases where what you expect is not what I expect? GC is, as a sibling comment says, about compromises around memory safety.
Re:Go, don't collect my garbage by zaarn on Monday November 13, 2017 @08:26AM (#15686357)
Doesn't work with GCs.

As another comment in this thread explained, GCs have CPU and Memory tradeoffs and you can easily make a GC that would work excellent in the OP benchmark but would suffer severely under other workloads.