Ask HN: Is there still a place for native desktop apps?
524 pointsModern browsers these days are powerful things - almost an operating system in their own right. So I'm asking the community, should everything now be developed as 'web first', or is there still a place for native desktop applications?
Comments (752) 155 threads
Earlier commentsMy father was right about so many things. The one I have in mind right now is when he said "age is another form of strength against the nitwit, because those with experience see straight through those with misplaced confidence."
He was right. I'm not calling anyone here a nitwit or anything, please be clear on that.
It's just amazing how wrong some of you are, while sounding so absolutely sure of yourselves. A few don't even get easily researched technical details correct, while trying to sound authoritative.
My point is that maybe this is related to why software development is in the sorry state it is in today: the ignorant are confident they know it all, and the knowledged are confident that they know very little.
- Marked (Markdown previewer/converter): native.
- Transmit (file transfer): native.
- PDF Expert: native.
- ImageOptim (image optimizer): native.
- Fantastical: native.
- MailMate: native.
- Terminal: native.
- iA Writer: native.
- Safari: native.
- CodeKit: native.
- Dash: native.
- GitUp (GUI Git client): native.
- 1Password: native.
- Telegram: Electron.
And a few that aren't running now but I run very often:
- Slack: Electron.
- Visual Studio Code: Electron.
- BBEdit: native.
- Nova[1]: native.
- MacVim: reply hazy, ask again later[2].
So, I mean, I can't speak for everyone, but it doesn't seem to me like native apps are going away in the near future, at least.
[1]: Nova is a still-in-beta code editor I'm trying out as a possible replacement for VS Code. Code still "wins" on features for me, but Nova is pretty cool, and still in beta, so...?
[2] I mean, MacVim is a native "GUI," but it's, you know, Vim.
...although I realized just now that I'm actually using the native client, so it should actually have been another "native" in my case. D'oh.
https://github.com/overtake/TelegramSwift
1. Heavy lifting - As others have mentioned, running some code in a browser is quite a few times slower than locally. As Moore's Law comes to a screaming halt we're going to be need to get better at creating efficient software rather than relying on the underlying hardware to get faster.
2. Capability - Some things are inherently difficult to do in the browser, such as custom networking, calling kernel functions, accessing various hardware, etc, etc. You can always have your native app launch a web-based front-end, but going back the other way is not possible by design.
3. Hardware Access - Sometimes you need to access a camera, USB device, GPIO, I2C, SPI, run architecture specific instructions on the CPU, access the GPU, etc, etc. Again, the browser typically won't let you access these by default.
4. Security - This comes in a few parts: (a) You're able to bypass "most" security and do what you want within reason. As long as the user ran your application you usually have the same privileges. (b) Now that you're dug-in you can enforce a level of security that may not easily be available otherwise. (c) Features such as app signing mean that the user can more easily guarantee the app came from you, rather than relying on their ability to read the exact URL in some email at 2am. If I run `apt-get install ` or equivalent in other OSes there is a chain of accountability.
5. Memory - Put simply the browser adds massive overhead to any application and typically has inefficient data structures. Compare something like Atom [1] to any equivalent native editor for example. (There is some existing efforts in comparing editors [2].)
[1] https://en.wikipedia.org/wiki/Atom_Editor
[2] https://github.com/jhallen/joes-sandbox/tree/master/editor-p...
On the one hand, you can say “look, an Electron app that’s actually fast!”
On the other hand, you can say “wow web apps are slow; it takes ~50x longer to render a basic list than to regex search across tens of thousands of strings”.
From a performance perspective, the JS part of the stack certainly isn’t helping.
0: https://keminglabs.com/blog/building-a-fast-electron-app-wit...
All comments shown.
Couldn't load more comments. Check your connection and try again.