r/java • • 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

47 comments sorted by

View all comments

Show parent comment

1

u/account312 Feb 12 '26

I think java is pretty miserable for most numerics work and will remain so until we get operator overloading.

1

u/Joram2 Feb 12 '26

I see:

  • prototyping + notebook work: this is all python. Other languages have operator overloading, but no other language is competitive with Python here.
  • production numeric processing like the large data center processing that the big AI companies do. This is mostly C/Rust + GPU specific languages like CUDA. Java could be used instead of C/Rust but developer preference drives C/Rust.
  • application work adjacent to numeric processing: here people use everything and anything: Java, Go, Node.Js, etc.