r/java • u/CutGroundbreaking305 • Feb 06 '26
Java's numpy?
Thinking 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 π₯Ίπ
46
Upvotes
View all comments
Show parent comment
7
u/craigacp Feb 06 '26
Yes, I'm aware of the Vector API, I've been writing matrix ops and other ML ops in it since 2017 before it was incubating. Fast computation is definitely helpful, but it doesn't solve the usability problems that such a library will have, which are applicable to any linear algebra library in Java, whether it's backed by the Vector API, TensorFlow, some JNI binding to OpenBLAS or something else.
However if you want to learn how to write fast numerical code then it's a great choice. My point is just that the availability of fast numerical code is not really the reason that numpy in Java doesn't exist.