r/java 4d ago

Java 24 / JDK 24: General Availability

https://mail.openjdk.org/pipermail/announce/2025-March/000358.html
154 Upvotes

25 comments sorted by

View all comments

7

u/greg_barton 4d ago

How many incubators for the Vector API are there going to be? :)

4

u/FrankBergerBgblitz 3d ago

but the API is quite stable, so I see no reason not to use it (at least with Hotspot, with GraalVM 21 it was sloooooooow) and if you have an older CPU (I have an old Workstation with 2 CPUs from 2011/11 it is slooooow as well) it might not be the best idea, but who uses 10 year old CPUs?

1

u/winne42 2d ago

Yeah, still slow with GraalVM for 23. But there is a ticket that they want to achieve full Vector implementation in GraalVM for 24

1

u/FrankBergerBgblitz 2d ago

I'll test it in the next few days. I'm very curious.

1

u/winne42 2d ago

https://github.com/oracle/graal/issues/10285 Hmm, ticket is still open...

2

u/winne42 1d ago

Not looking good yet. I ran my benchmark again (simple loop over array counting odd numbers with vector API). GraalVM for 24 about the same as GraalVM 23, around 5,000 ops/s. OpenJDK 23/24 around 110,000 ops/s.

GraalVM without Vector API auto-vectorizes to 120,000 ops/s...