The Python scientific stack, compiled to WebAssembly
11–20 of 54 posts
Re: The Python scientific stack, compiled to WebAssembly
#12What happens to all of the C code in Numpy, and the calls to external libraries like BLAS?
Re: The Python scientific stack, compiled to WebAssembly
#13Part of an effort to make a Jupytr notebook-like environment without relying on server side code. https://github.com/iodide-project/iodide
> "Part of an effort to make a Jupytr notebook-like environment without relying on server side code." So there won't be any server side code, you'd just be downloading the entire Python stack and dependencies every time you want to use this through your browser. This time it will be WASM though, instead of x86/x64/pyc. That we can, doesn't mean that we should.
And yes I could pay for a Jupiter notebook hosted on some instance but I dont want to.
Re: The Python scientific stack, compiled to WebAssembly
#14Is there a performance hit compared to "native" Python?
Re: The Python scientific stack, compiled to WebAssembly
#15Is there a performance hit compared to "native" Python?
TL;DR: pyodide in Firefox was slower than cpython.
Re: The Python scientific stack, compiled to WebAssembly
#16What happens to all of the C code in Numpy, and the calls to external libraries like BLAS?
Re: The Python scientific stack, compiled to WebAssembly
#17Is there a performance hit compared to "native" Python?
There's a chart and some discussion here: http://droettboom.com/blog/2018/04/04/python-in-the-browser/ (and some followup at http://droettboom.com/blog/2018/04/11/profiling-webassembly/ ) TL;DR: pyodide in Firefox was slower than cpython.
> UPDATE 2018-04-11: My hunch was wrong, and I was able to get to the bottom of the root cause and significantly speed up these benchmarks.
And there's an updated graph here:
http://droettboom.com/blog/2018/04/11/profiling-webassembly/
Re: The Python scientific stack, compiled to WebAssembly
#18Is there a performance hit compared to "native" Python?
Re: The Python scientific stack, compiled to WebAssembly
#19Re: The Python scientific stack, compiled to WebAssembly
#20Part of an effort to make a Jupytr notebook-like environment without relying on server side code. https://github.com/iodide-project/iodide
> "Part of an effort to make a Jupytr notebook-like environment without relying on server side code." So there won't be any server side code, you'd just be downloading the entire Python stack and dependencies every time you want to use this through your browser. This time it will be WASM though, instead of x86/x64/pyc. That we can, doesn't mean that we should.