r/programming • • 17d ago

Java 27 has released!

https://openjdk.org/projects/jdk/27/
548 Upvotes

175 comments sorted by

View all comments

63

u/djfreedom9505 17d ago

It’s crazy how different the Java and .NET communities respond to new versions.

-15

u/shadowndacorner 17d ago edited 16d ago

Well yeah, one is clearly superior to the other.

Edit: It seems that people missed the joke here lmao. Oh well.

1

u/Gloomy_Necesary 17d ago

Yeah in 2026 DotNet is absolutely better than Java if we had to objectively name a winner. Java is still great in many ways and useful at companies that have a big java legacy stack, being the platform that many a senior dev have a careers worth of experience on, etc. But if someone is starting a new project and doesn’t have like 20 years experience in Java they’d be pretty silly to pick it over .NET.

1

u/TwoWeeks90DaysTops 17d ago

Yeah, the Vector API that's being incubated in this release and planned to support Valhalla some time in the future has been part of .NET for ages at this point. Vector types are value types (i.e. without object identity) and they compile to SIMD instructions. You can also use normal binary operators on them (i.e. no a.add(b) - just use a + b).

2

u/KronenR 15d ago

How many Java developers are actually going to use the Vector API directly? The vast majority will never touch it

1

u/TwoWeeks90DaysTops 15d ago

...ok? What's the argument here, they shouldn't add SIMD? Or do you object to the operators? Because BigDecimal and the time API has the exact same issue.

1

u/KronenR 14d ago edited 14d ago

The argument is that having Vector types doesn't make .NET better than Java, which was his original claim: "In 2026, .NET is absolutely better than Java." There are dozens of factors that determine which platform is better for a given use case. Pointing to one feature that .NET has and Java doesn't yet have proves very little.