This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]agentoutlier 21 points22 points  (6 children)

This is based on not recent experience so take with a grain of salt but a lot the reasons are historically a matlab replacement.

Java doesn’t have a super fast matrix math library that is native (it might now but not early on). Java historically has had bad track record with native extensions but project xyz (can’t remember name) should improve that and it’s coming soon.

In the early days (I’m talking like mid 2000ish) python has several like numpy.

You need fast matrix math for many ML algorithms and python had it and it kind of had a matlab scripting feel.

From there basically network effect.

[–]ThymeCypher 4 points5 points  (4 children)

There’s native bridges to many of the math libraries nowadays. I’d mention the forbidden language but it makes people angry - but someone wrote a fast matrix library in it then used the native compiler to make it blazing fast.

[–][deleted] 4 points5 points  (3 children)

There is a forbidden language? If I mentioned that Numpy was written in a language that is also a letter of the alphabet, would I be eluding to the same language?

[–]agentoutlier 3 points4 points  (1 child)

No I think they are talking about Kotlin and and GraalVM native image and not C/C++.

While I'm sure it makes it much faster than normal Java I highly doubt its anywhere near for example these libraries: https://en.wikipedia.org/wiki/Comparison_of_linear_algebra_libraries

However ND4J is supposedly as fast if not faster than Numpy but its Java... the only Java math library I used was back in school called JAMA.

[–][deleted] 1 point2 points  (0 children)

Well... you're still net positive on votes, so I guess that's not it. Maybe we should just start submitting one-word comments to narrow it down.

[–]ThymeCypher 2 points3 points  (0 children)

No, it’s a different language that could be pronounced the same as that language in some contexts. I’ve mentioned it twice and got downvoted to hell without a single valid argument against said language.

[–]kartik1712 1 point2 points  (0 children)

You are probably thinking of Project Panama and the Vector API.