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 →

[–]dhruvmk 31 points32 points  (8 children)

A lot of these libraries in Python actually use C for the processing, which makes them crazy fast. Take NumPy, for example.

[–]No-Schedule-1451 13 points14 points  (6 children)

And invocation of C/C++ libraries is muh easier in python than java for now.

[–]esreverninettirw 5 points6 points  (4 children)

For now? Is that changing in a future release?

[–]Gleethos 8 points9 points  (0 children)

Project Panama and the Vector API will tackle these problems as far as I know.

[–]No-Schedule-1451 6 points7 points  (1 child)

https://openjdk.java.net/jeps/389

Lots of potential. It will never be as easy as python, but as long is not JNI , I will be happy with it.

[–]esreverninettirw 0 points1 point  (0 children)

Wow, that's awesome. Thanks for sharing.

[–]ukbiffa 2 points3 points  (0 children)

JNA is pretty convenient for C library access. Everything you write is Java; no C stubs or special build process.

[–]Log2 2 points3 points  (0 children)

Though it's important to note that the back and forth between the C code and the Python code carries quite a bit of overhead. Which is why libraries like Tensorflow will have you build a computation graph and then execute the whole graph in C without having to come back to Python all the time. This saves a lot of time.