Re:Ask HN: Is there still a place for native desktop apps?
by brachi on Sunday May 17, 2020 @04:08PM
(#23214957)
I don't find it that crazy, if properly compiled with web assembly. The thing is that Blender's UI is all synchronous python, so, yeah, that and the addons system would be to need rewritten. Python in the browser is a no-go performance-wise, of course.
[ Parent
| on HN ]
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.