A theoretical question(s): Javascript has a few matrix math libraries. Some I found are:
glMatrix - up to 4x4 matrices, webgl focused
Sylvester - arbitrary size matrices incl. basic ops
numeric.js - arbitrary size matrices incl. basic ops plus SVD
Google Closure - arbitrary size matrices incl. basic ops
math.js - arbitrary size matrices incl. basic ops with possibly
more advanced functionalityWith the exception of the last, each
appears to be a homebrew functionality. Math.js is drawing upon
JAMA which is a recognised library (well, in some circles). Other than that, the libraries are largely unproven. I would argue however that there is increasingly a case for javascript having a solid proven matrix math library; with the development of opencl/webcl, javascript could be a language every bit as useful in research as C/C++/Fortran while being far more 'approachable' (yeah, I know, Python/Ruby but let's meet in a pub and debate speed issues, ubiquity, approachability, etc)
So, the questions are:
a) is it worthwhile to consider porting over some of the 'industry standard' numeric libraries like BLAS/LAPACK; and
b) would it currently be possible?
Note that speed is a the defining issue. Speed will come eg. opencl, webcl, js engine improvements (just look at the progress in the past two years!)
Note - I've been developing in Matlab pretty exclusively for the past decade. Having recently decided to make the break from that I looked around at the languages that I'd used (in order of my familiarity): Fortran/C/C++/Java/Python. Then I looked at the language landscape and instantly related to two:
Julia and Javascript/Nodejs. All that to say, I'm not new to programming per se, but I haven't used a compiled language in a very long time so I'm a newbie all over again.