News for hackers. Stuff that matters.
Re:Java 22 Released by melling on Tuesday March 19, 2024 @11:10AM (#39756534)
“Vector API (Seventh Incubator)”

Seven iterations? What is going on with vectors in Java?

Re:Java 22 Released by GreenToad on Tuesday March 19, 2024 @11:16AM (#39756623)
"Vector API" is universal api for SIMD. It will probably remain in incubator until valhalla delivers value types.
Re:Java 22 Released by packetlost on Tuesday March 19, 2024 @12:16PM (#39757288)
Is there a timeline on Valhalla? I only loosely follow the Java ecosystem these days, but Valhalla is of particular interest to my performance-oriented mind.
Re:Java 22 Released by e3bc54b2 on Tuesday March 19, 2024 @01:22PM (#39758113)
I follow up on valhalla every now and then. It looks few more releases away, probably not before next LTS.

That being said, the amount of rigor with which the JDK devs test their experiments is really something to witness. Its equivalent to old school MS with painstaking maintenance at backwards compatibility, all the while moving the wheel of progress.

Every single change so far has been planned with a decade of advanced planning because that's just how this ecosystem roles.

Re:Java 22 Released by voidfunc on Tuesday March 19, 2024 @11:15AM (#39756614)
My understanding is it depends on Valhalla (value classes) and they basically keep updating it as that project changes.
Re:Java 22 Released by exidex on Tuesday March 19, 2024 @11:16AM (#39756622)
They said it is waiting for some feature from project Valhalla. Not sure which one though
Re:Java 22 Released by pron on Tuesday March 19, 2024 @12:17PM (#39757293)
There are ad-hoc hacks in the JDK to avoid allocation for vectors; once we get some Valhalla features, vectors could be represented as plain value objects.
Re:Java 22 Released by geodel on Tuesday March 19, 2024 @11:15AM (#39756610)
It will go on until 'value classes' are incorporated in Java
Re:Java 22 Released by MrBuddyCasino on Tuesday March 19, 2024 @11:16AM (#39756617)
The Foreign Memory API is in the works since 2014. They are just very diligent and careful.
Re:Java 22 Released by kaladin_1 on Tuesday March 19, 2024 @11:49AM (#39757014)
Yeah, given the amount of legacy infra built on Java. They don't have the luxury to move fast and break things.
Re:Java 22 Released by neonsunset on Tuesday March 19, 2024 @02:59PM (#39759075)
If you're interested, there already is a somewhat similar language that offers first-class support for these.