4 ms·
Would be curious to see if a version of Cython could be made to work with this. Much of my data analysis is me passing numpy arrays into C functions which Cytho
by saboot 7y ago
Would be curious to see if a version of Cython could be made to work with this. Much of my data analysis is me passing numpy arrays into C functions which Cython helps a lot with. So I would be looking for a version of Cython that would convert that to webassembly.
- mdboom 7y agoCython works for ahead-of-time compilation. (Pandas requires it, for example). Making it work in the browser would also mean putting a C compiler there, which people have done. I have no idea how well that would all hold together, though.
- bobbylarrybobby 7y agoWeb assembly?
- jononor 7y agoIdeally Cython would allow to compile directly to Webassembly (and maybe using Pyodine converters), without going through C and requiring a C compiler also. Of course that is a huge job and might very well never happen.
- make3 7y agoisn't it already doing that, converting the C generated by Cython to JS with emscripten? otherwise a huge amount of numerical libs wouldn't work. or did you mean directly without passing by C
- colobas 7y agoI think you're mistaking Cython (Python extended with C - https://cython.org/ https://cython.org/) and CPython (the canonical Python implementation, written in C)
- make3 7y agoI don't think I am
- saboot 7y agoI'm not sure, I didn't see Cython in the list of supported libraries. But if it's doing what you described yes that would be awesome.