News for hackers. Stuff that matters.
Re:Java 26 is here, and with it a solid foundation for the f... by gf000 on Tuesday March 17, 2026 @04:35PM (#47417935)
They trade blows, and have different philosophies (complex runtime, simpler language vs the reverse).

E.g. on the GC side Java is ahead of any other platform, especially with the low-latency ZGC garbage collector.

Re:Java 26 is here, and with it a solid foundation for the f... by spockz on Tuesday March 17, 2026 @05:19PM (#47418470)
I would love to have a Java compiler with the capabilities of the .net compiler. To make incremental builds to aid code completion including type information, looking past simple syntactical errors, fixing them, and continuing compilation.

Currently, this is “magic” embedded in eclipse, IntelliJ, and maybe a bit in the vscode plugin. Imagine having a Java LSP running that can provide all this information while typing.

.net has had this for ages. From a language design I think that is wonderful.

Re:Java 26 is here, and with it a solid foundation for the f... by hocuspocus on Tuesday March 17, 2026 @06:05PM (#47418985)
Java LSP backends are basically headless Eclipse and NetBeans, they definitely go beyond syntactical errors.

There's also the upcoming Metals v2 that's using another compiler frontend optimized for performance, Google Turbine: https://metals-lsp.org

Actionable diagnostics for Java aren't implemented yet though.

Re:Java 26 is here, and with it a solid foundation for the f... by pjmlp on Wednesday March 18, 2026 @03:51AM (#47422824)
It also slows VS code a lot, is not properly documented, and still relies on concatenating strings together, due to Source Generators interaction with attributes.
Re:Java 26 is here, and with it a solid foundation for the f... by adgjlsfhk1 on Tuesday March 17, 2026 @06:52PM (#47419459)
The counterpoint is that Java has so much SOTA GC work precisely because the language makes writing efficient code that doesn't heavily tax the GC basically impossible.
Re:Java 26 is here, and with it a solid foundation for the f... by rossjudson on Tuesday March 17, 2026 @11:20PM (#47421260)
Tell me you haven't looked at Java in 15 years without telling me.

Given that the vast majority of non-GC language code does a terrible job of managing memory, it's not difficult at all for the JVM to win out on efficient, reliable systems.

Re:Java 26 is here, and with it a solid foundation for the f... by adgjlsfhk1 on Wednesday March 18, 2026 @01:21AM (#47421840)
To be clear, I think that GC is absolutely the right approach, you just need an object model that lets you write idiomatic code that allocates an order of magnitude or 2 less. Once Valhala is (finally) released, the Java ecosystem will start to have the tools to write efficient code (the same tools that C# has had for ~2 decades now), but until then it's just completely impossible to write object oriented code in Java without millions of allocations per second.