News for hackers. Stuff that matters.
Re:Ask HN: Is there still a place for native desktop apps? by CharlesW on Sunday May 17, 2020 @05:05PM (#23215490)
> Python in the browser is a no-go performance-wise, of course.

"Running the Python interpreter inside a JavaScript virtual machine adds a performance penalty, but that penalty turns out to be surprisingly small — in our benchmarks, around 1x-12x slower than native on Firefox and 1x-16x slower on Chrome. Experience shows that this is very usable for interactive exploration."[1][2]

[1] https://hacks.mozilla.org/2019/04/pyodide-bringing-the-scien... [2] https://alpha.iodide.io/notebooks/300/

Re:Ask HN: Is there still a place for native desktop apps? by p_l on Sunday May 17, 2020 @06:21PM (#23216037)
So, an already slow language made slower?

No thanks.

Re:Ask HN: Is there still a place for native desktop apps? by brachi on Sunday May 17, 2020 @08:15PM (#23216798)
The main point though, is that running Python in the browser it's an unnecessary abstraction because you get a crappier version of something that runs pretty well natively. If you're starting from scratch, I think that the browser might be close to native performance in some tasks. Porting existing applications is a pain when you start looking into the details.
Re:Ask HN: Is there still a place for native desktop apps? by mr_toad on Sunday May 17, 2020 @07:19PM (#23216443)
The problem is not so much the run-time performance of the code, it's the overhead of loading the Python run-time environment over the network the first time you open the page.