Live data from Hacker News

Java 22 Released

mail.openjdk.org

31–40 of 178 posts

Re: Java 22 Released

#31
post #26

Earlier quoted context omitted.

The FFI is also an artifact of CLR type system and the ability of have proper stack value based types.

They will eventually bring value types to Java with Project Valhalla.

I wonder how long it will take. We’ve been waiting for ten years already.

Re: Java 22 Released

#32
post #31
post #26

Earlier quoted context omitted.

They will eventually bring value types to Java with Project Valhalla.

I wonder how long it will take. We’ve been waiting for ten years already.

One design iteration already has a working, implemented branch available, it’s just one of the hardest designs to get right, to remain backwards compatible, to have it work nice with generics and all the other features, etc.

So once they actually settle on a design (which they seem to have closed on quite a lot in the last couple of years), it might not take that long to happen.

Re: Java 22 Released

#35

Maybe my favorite feature in this release: https://openjdk.org/jeps/463 Finally solves the inscrutable Hello World program! Yes, it's just ergonomics for early beginners. But could be the difference in whether or not someone new to programming sticks with Java or not.

love this!

Re: Java 22 Released

#36

Maybe my favorite feature in this release: https://openjdk.org/jeps/463 Finally solves the inscrutable Hello World program! Yes, it's just ergonomics for early beginners. But could be the difference in whether or not someone new to programming sticks with Java or not.

The thought process leading up to this work

https://openjdk.org/projects/amber/design-notes/on-ramp

Re: Java 22 Released

#37
post #15

Earlier quoted context omitted.

Small correction: FFI in Android land is abysmal, to get decent performance when accessing all kinds of system APIs you almost always end up having to write helpers in Java, to try to alleviate the pain of JNI as much as possible (it is still significant). Interop with iOS OTOH is a breeze, some of the APIs may require newer Swift Library Evolution ABI (direct calls to Swift exprots, without going through C/objC) but…

Calling Android "Java" has always been a stretch. Not only has Android never been compatible with any version of Java, the divergence between Android and Java is only growing. JDK 22 is Java; Android is Android.

Calling Android Java is certainly a stretch, but aside from Sun/Oracle folks, I don't ever see anyone do that. Android is Android, Java is Java, and Android is written in Java.

If the language of the non-standard, deliberately ES262-incompatible NodeJS programming system (and GraalJS, for that matter) is called "JS" without anyone batting an eye—which it does—it's pretty silly to insist the language of Android isn't Java.

Re: Java 22 Released

#39

Maybe my favorite feature in this release: https://openjdk.org/jeps/463 Finally solves the inscrutable Hello World program! Yes, it's just ergonomics for early beginners. But could be the difference in whether or not someone new to programming sticks with Java or not.

I 1000% agree. Though, a favorite early programming memory of mine was when static methods finally clicked and I went back and looked at all that boilerplate that meant nothing to me and it all became crystal clear what it meant and why it had to be like that.
Post reply on HN