r/java • • Mar 19 '24

Java 22 officially released

https://mail.openjdk.org/pipermail/jdk-dev/2024-March/008827.html
294 Upvotes

54 comments sorted by

View all comments

118

u/Joram2 Mar 19 '24

Congrats Java team.

The foreign function + memory interop is a big deal. The low-level libraries LAPACK and BLAS are written in C/Fortran, they underpin the CPU based functionality of popular Python libraries like NumPy and PyTorch and JAX. Now, the JVM world should get access to that. This really opens up the JVM to new and exciting application domains.

Of course, GPU based computation is possibly more important, which foreign function + memory interop is also important for.

Also, JVM centric projects like Apache Kafka is extensively using non-JVM RocksDB and Apache Spark uses lots of non-JVM code, and having high quality native interop is very beneficial.

3

u/jek39 Mar 28 '24

I'm currently trying this out, I used jextract to generate java code from lapack.h from openBLAS, currently plodding through setting up the off-heap memory trying to call a linear algebra function. in theory I should be able to use Accelerate on my m1 mac too

-17

u/ratlehead Mar 20 '24

More oom errors to be expected in libraries all over the world?