Re:Pyodide: Bringing the scientific Python stack to the browser
by saboot on Tuesday April 16, 2019 @07:43PM
(#19678343)
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.
[ Parent
| on HN ]
Re:Pyodide: Bringing the scientific Python stack to the browser
by mdboom on Tuesday April 16, 2019 @08:14PM
(#19678518)
Cython 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.
Re:Pyodide: Bringing the scientific Python stack to the browser
by jononor on Wednesday April 17, 2019 @10:14AM
(#19682726)
Ideally 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.
Re:Pyodide: Bringing the scientific Python stack to the browser
by bobbylarrybobby on Tuesday April 16, 2019 @11:49PM
(#19679618)
Web assembly?
Re:Pyodide: Bringing the scientific Python stack to the browser
by make3 on Tuesday April 16, 2019 @10:47PM
(#19679331)
isn'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
Re:Pyodide: Bringing the scientific Python stack to the browser
by colobas on Thursday April 18, 2019 @06:56AM
(#19690075)
I think you're mistaking Cython (Python extended with C - https://cython.org/) and CPython (the canonical Python implementation, written in C)