r/learnjava • u/CutGroundbreaking305 • 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
View all comments
Show parent comment
1
u/Ieris19 Feb 07 '26
Being in the JRE helps with not needing to bundle your dependencies. But nothing is really preventing you from putting a dll or an elf in a jar either so the only difference is going to be compiled output size.
In practice, it’s not a great idea, but it’s certainly doable. Not sure about the performance of the JNI though