4 ms·
What happens to all of the C code in Numpy, and the calls to external libraries like BLAS?
by nerdponx 8y ago
What happens to all of the C code in Numpy, and the calls to external libraries like BLAS?
- Scarblac 8y agoIn particular, does this mean Javascript has access to Numpy? Sounds unbelievable, but would be extremely cool.
- mdboom 8y agoYep. You can "import" python objects over to the Javascript side and start using them from there. It's not as pleasant as working with Numpy in Python, of course, due to lack of operator overloading, of course.
- mjs2600 8y agoC can compile to WASM, but I have no clue about external tools like BLAS. I'd assume that things like Numpy are able to work without tools like BLAS, but you might also be able to compile the essential ones to WASM as well.
- azakai 8y agoPython C extensions like NumPy are compiled into shared libraries, and loaded using dlopen() etc. normally by the main compiled Python runtime. (The only special thing here is that all those components are compiled to WebAssembly so it can run on the Web.)