Earlier quoted context omitted.
I wonder if that would make java more suitable to game development since pauses need to be <8ms, ideally.
8ms? Where do you get that number from? If your player has a 144Hz monitor then your pause time, rounded to the nearest millisecond, has to be 0ms.
Java’s new garbage collector promises low pause times on multi-terabyte heaps
241–245 of 245 posts
Re: Java’s new garbage collector promises low pause times on multi-terabyte heaps
#242Earlier quoted context omitted.
Plenty of people are writing low-latency trading applications in Java where the latency budget is under 100 microseconds. This has been the case for several years now. It's by no means new or even especially difficult these days. The resulting code is far more maintainable and robust than C++ solutions.
I've had the opposite experience. For green-field applications, it's far easier to write the application in C++ than Java & meet the latency requirements. Java requires far too much tuning, where as C++, from the get go, you can generally just glance at the code and have a good idea of the latency. We're currently fighting a Java app that in general has decent latency (10s of usecs), but has outliers of greater than…
Re: Java’s new garbage collector promises low pause times on multi-terabyte heaps
#243Earlier quoted context omitted.
I wonder if that would make java more suitable to game development since pauses need to be <8ms, ideally.
On smaller heaps it was already possible to get 5-10ms pauses with the (now deprecated) CMS collector. Unlike Z it was a non-compacting collector though and had some ugly worst-case behaviors.
Re: Java’s new garbage collector promises low pause times on multi-terabyte heaps
#244Earlier quoted context omitted.
Sounds interesting. Could you explain how so?
He's just trying to bash Java. HN readers hate Java for some reason.
Re: Java’s new garbage collector promises low pause times on multi-terabyte heaps
#245An interesting fact is that the hotspot team went back on their 20-year conviction that load-barriers reduce performance too much. I guess improvements in CPU and VM designs has changed their minds. This is a big deal, and a major departure. I'm hoping this will improve things, this new architecture more closely resembles Azul's C4. Java and large heaps with non-conforming object allocation patterns (medium aged obje…