by lx3459683 · 8y ago · 0 comments
The real impressive feat to me isn't hosting jupyter in the browser. It's access to a reasonably fast implementation of numpy in the browser which smokes native JS code for homogeneous array operations. I would love to see a minimalistic WASM implementation of numpy that can seamlessly interop with normal JS. Such a library would open up all sorts of possibilities that aren't currently feasible due to perf reasons.
They were purposefully working to reduce abstraction, since performance mattered from day one.
WASM is a huge step backwards in that regard. If you care about performance, just install Python on your box and "pip install numpy". Do you absolutely have to have it come in a browser now?
Running the exported notebook here takes
time py3 python.py real 0m0.145s
chrome: load html: 2sec run html: 13sec!
That's not 10 times slower, but a 100 times slower!
Still good start.