News for hackers. Stuff that matters.
Re:Groupcache: an alternative to memcached, written in Go by coldtea on Tuesday July 30, 2013 @05:01AM (#6125949)
>It does not matter how sophisticated GC code is when you have millions of tiny objects from from crappy Java code with useless copying and referencing. This is why it uses so much memory.

Or, you know, you can avoid writing "crappy" code. Whereas with Go's GC, even proper code will have problems.

You are arguing something that is beyond discussion: Java's GC is better than Go's.

Re:Groupcache: an alternative to memcached, written in Go by dschiptsov on Tuesday July 30, 2013 @06:48AM (#6126183)
Or, you know, you can avoid writing "crappy" code. - In Java - hardly. It requires a discipline and skills beyond capacity of a typical developer. This phenomena could be called "memory is cheap and JVM will handle everything".

Even in Clojure code, for example, they implement a node of a binary tree as a hash-table which is a meaningless waste. Position based selectors would be good enough.

Java's GC is better than Go's - yes, in theory, on paper. In practice well-written Go code could outperform typical Java code, even with less sophisticated GC.

Of course, I cannot prove that, but there are some intuitions to support such claims.