News for hackers. Stuff that matters.
Re:The Python scientific stack, compiled to WebAssembly by mr_toad on Thursday August 23, 2018 @09:35PM (#17832094)
Part of an effort to make a Jupytr notebook-like environment without relying on server side code.

https://github.com/iodide-project/iodide

Re:The Python scientific stack, compiled to WebAssembly by xtrapolate on Friday August 24, 2018 @07:41AM (#17834269)
> "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.

Re:The Python scientific stack, compiled to WebAssembly by Vinnl on Friday August 24, 2018 @10:12AM (#17835026)
Well, you'd download the entire stack indeed - but not every time. Your browser does caching too.
Re:The Python scientific stack, compiled to WebAssembly by applecrazy on Friday August 24, 2018 @11:27AM (#17835504)
Plus, if it’s packaged as a PWA, it can run offline and seamlessly update the runtime in the background using a Web Worker.
Re:The Python scientific stack, compiled to WebAssembly by orbital-decay on Friday August 24, 2018 @11:38AM (#17835591)
It doesn't share the cache between the sites though. A local installation has only one runtime.
Re:The Python scientific stack, compiled to WebAssembly by Vinnl on Friday August 24, 2018 @11:47AM (#17835649)
Absolutely; it's pretty much like installing an application that includes all its dependencies. Which, interestingly, is also the direction installed apps are moving towards somewhat, at least on Linux.
Re:The Python scientific stack, compiled to WebAssembly by sp332 on Friday August 24, 2018 @10:16AM (#17835044)
There's an advantage even if you're running it locally. Now you can just load up some static HTML + JS files in your browser instead of spinning up a server and then pointing your browser at localhost.
Re:The Python scientific stack, compiled to WebAssembly by zitterbewegung on Friday August 24, 2018 @09:25AM (#17834771)
It would work on a Chromebook and a iPad also.

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 by sciurus on Friday August 24, 2018 @04:00PM (#17837493)
Maybe, but it might require more RAM and CPU horsepower than they provide in order to be usable.
Re:The Python scientific stack, compiled to WebAssembly by tomtimtall on Friday August 24, 2018 @08:00AM (#17834354)
That would be dumb, so why assume that would happen? You don’t download every picture on every refresh.
Re:The Python scientific stack, compiled to WebAssembly by Waterluvian on Friday August 24, 2018 @10:54AM (#17835275)
As long as it's framed properly it can be acceptable. Ie. You get to a page with details and a "load environment" button with progress bars and all.

Of course when it's like 50-100MB you wouldn't use it in some cases. But once cached you're golden for your repeat visitor audience.

Re:The Python scientific stack, compiled to WebAssembly by m_mueller on Friday August 24, 2018 @07:56AM (#17834333)
I guess we need an in-browser package management like npm?
Re:The Python scientific stack, compiled to WebAssembly by adrianN on Friday August 24, 2018 @08:01AM (#17834358)
Just compile Debian to WASM and use apt.
Re:The Python scientific stack, compiled to WebAssembly by lx3459683 on Friday August 24, 2018 @12:05PM (#17835791)
Just run a browser in your WASM Debian to hit the same page.
Re:The Python scientific stack, compiled to WebAssembly by mdboom on Friday August 24, 2018 @02:40PM (#17836910)
The plan is to build something based on conda.
Re:The Python scientific stack, compiled to WebAssembly by krapp on Friday August 24, 2018 @08:01AM (#17834359)
In-browser package management, combined with caching of common dependencies, yes.

Like npm? No.

Re:The Python scientific stack, compiled to WebAssembly by m_mueller on Friday August 24, 2018 @08:08AM (#17834388)
Well I'm not really into JS web development, but NPM and a bunch of Node-like extensions would give you compatibility with lots of existing libraries.
Re:The Python scientific stack, compiled to WebAssembly by nostalgeek on Friday August 24, 2018 @10:58AM (#17835309)
> I guess we need an in-browser package management like npm?

It exists and it's called bower.

Re:The Python scientific stack, compiled to WebAssembly by andybak on Friday August 24, 2018 @10:13AM (#17835033)
I can think of several scenarios where this could be useful.