Live data from Hacker News

Java 27: What's New?

loicmathieu.fr

51–60 of 64 posts

Re: Java 27: What's New?

#51
post #7

Java 27 already? I just learned about Java 26. But I’m not complaining, the JEPs that is getting introduced on every release are quite exciting features. I highly recommend following the Java official YouTube channel, they publish entertaining, yet informative videos/shorts about tips/tricks/features.

would you mind linking to the channel? not sure which one you mean

I mean, just writing "Java official YouTube channel" to Google or YouTube gives it:

https://www.youtube.com/@java

Re: Java 27: What's New?

#52
post #50
post #48

Earlier quoted context omitted.

> The current numbering scheme is annoying and distracting, bears no information yet is still error prone. > This release should've been called 26.1, then 27.0, 27.1, 28.0 and so on. And how does that bear any information any differently?

When I encounter a version number I mostly want to know either: - what are the major characteristics of the program - how old is the program Traditional software versioning helps in the first case: they bump version after a big event (new feature, rewrite, etc). Date based versioning helps in the second case. (I prefer date based versioning over traditional or semver.) Their numbering system doesn't help anyone in an…

> doesn't tell you whether Java 27 is old or new. "Java 26.1: What's New?" would

How does 26.1 tell you that? Because you "assume" it is a date? It also still doesn't? How do you know the new 1 isn't 26.100?

> Traditional software versioning helps in the first case: they bump version after a big event

They pretend to. It's given most developers headaches in terms of you have to have something to bump the version so either they make something up or never do it and so fails your test either way.

At the end of the day either:

You care: a quick check won't hurt. It's twice a year.

You don't care: what difference does it make?

Re: Java 27: What's New?

#53
post #46
post #32

Earlier quoted context omitted.

I believe that's by design: applications are encouraged to upgrade often. That's usually a smooth process for standard-conforming applications. Applications that need to move slower can stick to LTS versions. LTS hopping has become a little bit more viable since the interval has been shortened to two years, i.e., four major versions.

> I believe that's by design: applications are encouraged to upgrade often. I'm not sure what's your thought process here. I'm not saying they should have a release every 2 years instead of every half a year, but that their numbering scheme is bad . It makes upgrading harder. If they'd just put the date in the version field, people would know how old the software is (this applies to every software btw not just Java a…

> If they'd just put the date in the version field, people would know how old the software is

Does it tell you anything? If this "software" just bumps the date and never provides anything meaningful it is useful to you? It's about the substance.

Re: Java 27: What's New?

#54
> On the performance side, I noted two interesting improvements:

> HashMap.putAll() now has a fast-path when the Map is a HashMap, which directly calls putHashMapEntries(), resulting in a 66-86% improvement (PR #28243);

> A new intrinsic for the AVX2 architecture has been added for binary search, resulting in a 1.5x to 2.35x improvement for arrays above a certain threshold (int=256, long=768, short=512, char=512) (PR #30612).

Ok THIS is impressive!

Re: Java 27: What's New?

#56
Dear diary, the year is 2094, 10 years since society collapsed. The neighbors went scavenging for food and I haven't seen them in 4 days. I fear the worst. Meanwhile, JEP 533 – Structured Concurrency still hasn't been declared stable, and it has entered its five-hundredth preview release in OpenJDK 136.

Re: Java 27: What's New?

#57
post #11

Java 27 already? I just learned about Java 26. But I’m not complaining, the JEPs that is getting introduced on every release are quite exciting features. I highly recommend following the Java official YouTube channel, they publish entertaining, yet informative videos/shorts about tips/tricks/features.

Since 2018 they've been making two releases per year. One in March and one in September.

[deleted]

Re: Java 27: What's New?

#58
post #37

Earlier quoted context omitted.

But can't you continue to run older bytecode versions on newer JVMs? I think you can also specify the source version separately.

Yes, you can. There is no need to recompile, unless you're interested in new language features. Maintaining binary compatibility is a principal goal of the platform which continues to constrain design decisions for all future changes.

There are some actual removal of feature too (breaking backwards compatibility on purpose). But those come with deprecation warnings for years before the actual feature is removed. And even then quite often it is still possible to enable with some feature flag for a version or two.

Re: Java 27: What's New?

#60
post #46
post #32

Earlier quoted context omitted.

I believe that's by design: applications are encouraged to upgrade often. That's usually a smooth process for standard-conforming applications. Applications that need to move slower can stick to LTS versions. LTS hopping has become a little bit more viable since the interval has been shortened to two years, i.e., four major versions.

> I believe that's by design: applications are encouraged to upgrade often. I'm not sure what's your thought process here. I'm not saying they should have a release every 2 years instead of every half a year, but that their numbering scheme is bad . It makes upgrading harder. If they'd just put the date in the version field, people would know how old the software is (this applies to every software btw not just Java a…

The official guidance is very simple and straightforward: upgrade regularly and keep eyes open for the few actual things that could cause trouble. If a project cannot keep up it can always stick to LTS versions. That's it.
Post reply on HN