Hacker News new | ask | show | jobs
by pjmlp 37 days ago
There are no GC pauses in modern Java implementations, and there are plenty of systems written in C and C++ that have been replaced by Java, I took part in such projects.

Companies like PTC and Aicas stay in business, because there are plenty of industries that pay for their embedded JVM implementations instead of keeping legacy C and C++ infrastructure running.

1 comments

Every GC in Java involves synchronization points and the pausing of application threads.
I'm arguing against "Java performance is as good as it gets" in this thread, but the best Java GCs have sub-millisecond pause times for huge heap sizes and, apparently, such a GC even became the default recent-ish-ly: https://inside.java/2023/11/28/gen-zgc-explainer/

The JVM is amazing technology for what it is, but what it is still limits how fast it can go.

We are really talking about different categories of software. The C++ / Rust world typically operates at a different one than where Java does. It used to be manual memory management was a burden that the biz wasn't willing to invest in for typical software - with LLMs, the trade-off landscape has changed (sounds like buzzword BS, but it's true).

When you can get the benefits and let the LLMs pay for the downsides you'd otherwise have to handle - that's a change of circumstances that we really ought to pay attention to as software devs.

Can you write very fast Java software, yes - LMAX is a great example. Can you write slow Rust/C++ code, absolutely. But the values, community and tech built around the latter really does make it a lot easier when that's your (and your LLM's) goal.

Not every GC, better learn the ecosystem.
Provide the GC name.