6 ms·
I was told that garbage collection knobs were an antifeature.
by staticassertion 4y ago
I was told that garbage collection knobs were an antifeature.
- geodel 4y agoWell, you are in luck. Java provides more than five hundred flags to configure runtime behavior. So there is no limit on things you can achieve with that.
- deleted 4y ago[deleted]
- klabb3 4y agoGreat. I love it when my test matrix size exceeds the number of quarks in the known universe.
- deleted 4y ago[deleted]
- kaba0 4y agoIt hasn’t been true at all for modern GCs. G1GC basically has only one knob that you may change: the target pause time. This changes between better throughput vs lower latency (which two problems are mostly opposite ends of the same axis). And your sarcasm aside, Java has the state-of-the-art GCs by a long shot.
- ibraheemdev 4y agoIs allocating a large array on startup to avoid gc cycles better?
- staticassertion 4y agoJust trying to understand if this is what simple looks like.
- coder543 4y ago2 knobs after a decade vs how many in Java? Yes, that is exactly what simple looks like. After years of real world experience, I can say that the Go garbage collector worked fantastically across a range of applications that I've been involved in. No tool is perfect for every job, of course, and having hundreds of knobs does not make Java perfect for every job either.
- staticassertion 4y ago
- coder543 4y agoYou clearly seem to be here to troll / just crap on Go while trying to appear fake-earnest, and that goes against HN guidelines. I believe this falls under "sneering". I've actually also used Rust plenty in professional contexts over the last five years. Once again: no tool is perfect for every job.
- staticassertion 4y ago
- coder543 4y agoAs I recall, C#'s GC famously has very few knobs as well. I don't think you can swap the GC implementation, either, which is a source of even more complexity in the world of Java.
- dang 4y agoPlease stop.
- eikenberry 4y agoI'd say it makes Java's GC worse at nearly every job as that means the defaults probably aren't what you want but are probably what you are going to use.
- dilap 4y agoObviously the fewer you need the better. Zero-knob GC not yet discovered.
- erik_seaberg 4y agoEvery missing knob is another reason for a risky rewrite hoping perf might improve.
- the-smug-one 4y agoIsn't that what Java's ZGC stands for ;-)?
- oconnor663 4y agoGenerics were an antifeature too.
- mikymoothrowa 4y agoNo. “Generics are great. we haven’t gotten around to doing it the right way” vs “if we start introducing knobs, soon enough, knob turning is going to be a full time role “
- oconnor663 4y agoAh you're right. I was remembering some opinions from Go folks on HN, but I should avoid conflating that with the actual Go team.