Re:Kotlin and linear programming
by MaxBarraclough on Friday January 26, 2018 @07:40AM
(#16238682)
I suspect you're right. Java doesn't have the best track-record when it comes to SIMD.
Unlike .Net with System.Numerics.Vectors, they're not even interested in making a platform-independent SIMD library for manual optimisation. The JVM holds contempt for such real-world optimisations. I see that Intel have made one though - https://software.intel.com/en-us/articles/vector-api-develop...
At a glance, it looks like Oracle have dabbled with AVX in HotSpot, but aren't taking it very seriously. https://www.google.com/search?q="-XX%3AUseAVX"
Re:Kotlin and linear programming
by agibsonccc on Friday January 26, 2018 @05:50AM
(#16238247)
We see folks using our linalg library for this and deep learning: http://nd4j.org
We maintain our own c++ and cuda stack underneath this as well. It also allow control of these native components from java. We implement everything from our own garbage collector for cpu and gpu to our own cuda kernels.
I know JVM optimizes small methods, so maybe their JIT optimizer does that automatically, but I'm not sure that optimizer is better that manually optimized code like in numpy.