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
3
u/agibsonccc Feb 06 '26
I wrote nd4j I can tell you it doesn't quite work like that. Nd4j just does c++ offload. We also have a cuda backend I don't know why tornado would help? Alternatives like djl also have gpu offload. Tornado is for pure java code. We DID used to have a pure java backend a long time ago if you go back far enough in the commits if someone wants to try that I'd be interested to see if anything could make sense there.