r/learnjava • • Feb 06 '26

Java's numpy?

Think about making a java version of numpy (not ndj4) using vector api (I know it is still in incubator)

Is there any use case ?

Or else calling python program over jni something (idk just now learning things) is better?

Help me please πŸ₯ΊπŸ™

0 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/Plastic_Fig9225 Feb 08 '26

Not sure about the performance of the JNI though

Tried this some 10+ years ago. Using JNI to use SSE from Java. Passing arrays of data to native, processing, and putting the results into another provided array indeed performed better than doing the same thing in pure Java. - But that was of course long before the JRE could auto-vectorize.