3 ms·
Question: can js call out to native libraries as well ? I'm wondering why BLAS/LAPACK is not callable from JS. there are all these questions about how to use L
by sandGorgon 11y ago
Question: can js call out to native libraries as well ? I'm wondering why BLAS/LAPACK is not callable from JS.
there are all these questions about how to use LAPACK from js.. and none seem to work right.
[1] http://stackoverflow.com/questions/21990243/use-emscripten-with-fortran-lapack-binding http://stackoverflow.com/questions/21990243/use-emscripten-w...
[2] https://github.com/software-engineering-amsterdam/MLitB/issues/1 https://github.com/software-engineering-amsterdam/MLitB/issu...
[3] https://github.com/karpathy/convnetjs https://github.com/karpathy/convnetjs
- flohofwoe 11y agoIf it needs to run in the browser you'll have to compile the libraries to JS so that all code runs in the security sandbox. With node.js, it is possible to directly call out into native code. Google has a native messaging feature which allows it to communicate with native applications but these need to have been installed traditionally.
- sandGorgon 11y agowell nobody has been successful at calling out to BLAS/LAPACK from nodejs. I wonder why. is there a certain signature that the functions must expose or something ?
- flohofwoe 11y agoI don't know unfortunately. Here's an old discussion on the emscripten discussion group, may be this contains helpful information: https://groups.google.com/forum/#!searchin/emscripten-discuss/BLAS/emscripten-discuss/4Qt1OXKCKrk/KPFXhalxpeAJ https://groups.google.com/forum/#!searchin/emscripten-discus...