Machine learning algorithm benchmarked in Matlab, R and Scala
blog.brusic.com
blog.brusic.com
When it comes to prototyping, using languages such as scala brings nothing for such type of mathematical algorithms as it is basically only loops and double operations. You are better off with languages such as R/scipy where most of the core is written in C/C++ and handily wrapped (there are many heavily optimized packages in R to do gradient descent).
For production code, well, you know the correct solution ;)
You are correct, the MATLAB code was tested in Octave. I would not have worded the title HN is such a way. The goal is to learn the algorithms involved, not trying to come up with the fastest version possible. The interesting part is actually the performance of the JVM, not the comparison between languages.
So I don't think those are really representative of MATLAB performance.
What it does is it implements some of the functionality of R in Clojure. What I am talking about is instead compiling R to Clojure (or Java runtime; there are portions of R projects implemented in C which may not map to Clojure efficiently). This way, the R community does not lose the extensive library of projects it has been producing for years.