News for hackers. Stuff that matters.
Re:Java at 30: The Genius Behind the Code That Changed Tech by astrange on Friday May 16, 2025 @08:43PM (#44011114)
I'm honestly amazed people say this about Java, because the language almost couldn't be worse at giving you tools to use memory efficiently.

There's no value types (outside primitives) and everything is about pointer chasing. And surely if there was less pointer chasing it'd be easier to do the GC work at the same time.

Re:Java at 30: The Genius Behind the Code That Changed Tech by vips7L on Friday May 16, 2025 @09:44PM (#44011413)
When people talk about GC performance they’re not talking about using memory efficiently. They’re talking about how fast the GC can allocate and how long it will stop the world when it needs to collect. In both of these areas you won’t find GCs better than the ones provided by HotSpot. Even with what you mention, pointer chasing and lack of structs, they still outperform other implementations.