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.
Java 22 Released
31–40 of 178 posts
Re: Java 22 Released
#32Earlier 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.
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
#33Finally 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.
Re: Java 22 Released
#34Re: Java 22 Released
#35Maybe 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.
Re: Java 22 Released
#36Maybe 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.
Re: Java 22 Released
#37Earlier 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.
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
#38“Vector API (Seventh Incubator)” Seven iterations? What is going on with vectors in Java?
Re: Java 22 Released
#39Maybe 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.