5 ms·
There's at least a 10x speedup potential in existing hardware if people stop doing silly things like Electron apps and shoehorning everything into web browsers.
by TeMPOraL 10y ago
There's at least a 10x speedup potential in existing hardware if people stop doing silly things like Electron apps and shoehorning everything into web browsers.
- afarrell 10y agoWhat is your recommended tutorial/book for learning to build well-designed desktop UIs that work on Windows, OSX, and multiple different flavours of Linux?
- TeMPOraL 10y ago1) documentation of any chosen cross-platform UI framework 2) any decent software book that teaches to separate the presentation layer and platform layer from the rest of the program (that way, you have much less to port between platforms and maintaining it is not as costly as people fear)
- afarrell 10y ago> of any chosen cross-platform UI framework such as... EDIT: my purpose in this line of questioning is to assert that if you are trying to persuade someone to not do a thing, you will be more effective if you can give someone a straightforward alternative. I likewise think that the folks trying to get people to stop writing python2 should pick a release of python3 to become an LTS release in the same way that in 2014 python2.7 was effectively declared an LTS release with support until 2020.
- TeMPOraL 10y agohttps://en.m.wikipedia.org/wiki/List_of_platform-independent_GUI_libraries https://en.m.wikipedia.org/wiki/List_of_platform-independent... EDIT to parent's edit: I'm not really trying to persuade anyone; not anymore. I understand the incentives that push people toward wasteful solutions. This won't stop until we hit a resource limit. All I'm saying is that there's a lot more we can do with current hardware once Moore's law is definitely dead. The mostly untapped potential is conditioned on people not doing extremely wasteful things just to shave off a little development time.
- pas 10y agoThat list seems to be useless. Skia is not a GUI library for example. CEF is not a GUI library, it's a WebView. And there should be at least a column indicating whether the library has support for usual desktop applications and/or for multimedia full screen things (such as games, or a movie player with OSD and custom graphical design and elements, textures). And the GUI debate is about "where are abstract libraries that compile to native apps", after all, anything else is just for prototyping a "native app". And usually people just answer but Qt is nice enough, yet everyone uses Electron :/
- adrianN 10y agoLuckily it's a wiki, so you can improve it :)
- afarrell 10y agoOf that list, what is the one that you would recommend from your experience working with it and what book or tutorial would you recommend someone work through to get a solid mental model of it?
- BoorishBears 10y agoQt, learn Qt and you can write performant native applications for all the major desktop platforms.
- logfromblammo 10y agoI'm not complaining about Qt. It seems like a perfectly cromulent framework. But I have personally seen at least one application that would suggest that some people have tried to write Qt applications without first learning Qt. Please, people, for the love of those whom your customer may hire after you, take the time to understand signals and slots before porting that godawful mess of garbage you got from your customer's previous contractor to Qt.
- afarrell 10y agoFantastic, I have heard of Qt before and I know I've seen python bindings for it. What is the go-to tutorial/book that humans who are knowledgeable in Qt recommend for efficiently learning it?
- nickporter 10y agoIt's been a few years since I've touched QT. The official documentation was quite good at the time.
- mingodad 10y agoFLTK http://fltk.org/ http://fltk.org/ simple dead easy. Juce https://www.juce.com/ https://www.juce.com/
- adrianN 10y agoWhile I don't like the "Web OS" approach, I don't think that many AI applications run in Javascript in Electron.
- TeMPOraL 10y agoNot yet. Anyway, I was just pointing out a mostly untapped speed gain that doesn't require resurrecting Moore's law.
- dagw 10y agoNo one is using Electron for things where a 10x speedup actually matters.
- TeMPOraL 10y agoFunny you say that, because "actually matters" is the crux of the issue here. Does the fact that a glorified IRC client eats a big chunk of system resources matters to said program's developers? Probably not, it would seem. Does it matter to me as a user of such program? Yes, it does very much. The problem is, right now there isn't a good way for the market to signal this back to the developers so that they would care.
- dagw 10y agoright now there isn't a good way for the market to signal this back to the developers so that they would care. Switch to a competitors app? Also when people talk about Electron sucking the one example that keeps coming up is Slack, which is making me wonder to what extent the core problem is Electron and to what extent Slack is just a badly written app.
- TeMPOraL 10y agoThere's also VSCode and its blinking cursor eating up 13% of CPU, then there's also: https://josephg.com/blog/electron-is-flash-for-the-desktop/ https://josephg.com/blog/electron-is-flash-for-the-desktop/ (and associated discussion over at https://news.ycombinator.com/item?id=14087381 https://news.ycombinator.com/item?id=14087381). As for switching to competitor's app, you can't do that if it's a networked app using propertiary protocol. The SaaS world has killed interoperability.
- IanCal 10y agoWhich app is this? If it's slack, you can use IRC or XMPP clients instead: https://get.slack.help/hc/en-us/articles/201727913-Connect-to-Slack-over-IRC-and-XMPP https://get.slack.help/hc/en-us/articles/201727913-Connect-t...
- sfifs 10y agoif you're running production AI in JavaScript in your browser, I'm highly impressed. If not, then the snark is unwarranted.
- TeMPOraL 10y agoMy snark was referring to Moore's law in general, not to its application in domain of machine learning.
- LaurensBER 10y agoWhy? Most of the processing can be done on the backend (in a fast language if required) and as long as you maintain 60 fps on the client everything is perfect smooth. Given that this is doable in HTML/CSS/JS on a Nexus 5 (an almost 4 year old smartphone) it just doesn't make economic or UX sense to optimise the UI beyond the 60 fps target.
- agumonkey 10y agoSomeone just bashed me for suggesting an old looking laptop (2012 core i5) because they need fast photoshopping (average consumer skill level). The natural reaction for someone is to push harder, not to look and sense what is the reason for the performance or perceived performance issue. I want to run far away from the whole computer mainstream today because my brain is suffocating.