Lurker News
Modern 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 comments
dmitrybrant3 replies#
I specialize in data recovery / digital forensics tools, which require very low-level disk access to be able to read physical media at the block level. I doubt there will ever be an HTML5 standard for low-level disk access.

But aside from my particular specialty, I also prefer any other software I use to be fully native. I'm surprised that's such a controversial thing to ask for these days. All I ask is so precious little:
* I want the software I use to be designed to run on the CPU that I own!
* I want software that doesn't require me to upgrade my laptop every two years because of how inefficient it gets with every iteration.
* I want software that isn't laughably bloated. I think we have a real problem when we don't bat an eye upon seeing the most rudimentary apps requiring 200+ MB of space.

kokizzu1 reply#
that's not low level disk access
whb072 replies#
Can you explain how it isn’t?

Continue this thread — 2 replies

floo#
From the linked article:

This interface will not grant you access to the users filesystem. Instead you will have a "virtual drive" within the browser sandbox. If you want to gain access to the users filesystem you need to invoke the user by eg. installing a Chrome extension. The relevant Chrome API can be found here.

umvi2 replies#
I remember hanging out in /r/Unity3d and some newbie posted a download for their completed game. It was super basic - just a game where you move a cube around a grid, but the size of the game was insane, like half a gig.

The dev who posted it seemed perplexed when people told him the game was 100x bigger than it should be.

DangitBobby#
He was probably expecting useful feedback or even praise.
peteforde#
I hope that you did the kind thing and showed them how to adjust what gets compiled into their package, depending on whether they are targeting a development or production build.

Nothing worse than people who mock beginners showing their first work. We were all there, once.

_bxg11 reply#
> I doubt there will ever be an HTML5 standard for low-level disk access.

It's clear you've never worked with Electron; nothing about its system-level access has anything to do with HTML5 or related standards.
All of that lives in NodeJS, which offers reasonably low-level APIs for accessing system resources. For cases where that's not enough Node can easily call out to logic written in other languages, either directly through FFI (foreign function interfaces) or by spinning up an independent binary via the shell.
This is the problem with this discourse: the vast majority of the Electron haters are people who have no idea what they're talking about when it comes to the actual thing they're criticizing. It's particularly hypocritical when they go so far as to frame "JavaScript hipsters" as some combination of ignorant, inexperienced, and/or lazy.

dmitrybrant#
I don't mean to hate on any particular groups of people, I'm simply a proponent of using the right tools for the job.

I can only speak from my own experience, but I have never dealt with an Electron app that wasn't noticeably slower than other apps, to the point of standing out like a sore thumb.
Or, put another way, when I notice an app performing especially slowly, I think to myself, "that's probably an Electron app", and I'm usually right.

alasdair_2 replies#
There are still a lot of fields where performance matters. This is especially true with apps that need low latency, like most games. Something like Stadia may be fine for a casual gamer but it still feels laggy to many, especially those used to gaming at 144Hz+ with almost zero input lag and gsync.

VR is another area where native desktop is still superior.
Then there is anything that is dealing with a lot of local data and device drivers. Video editing for example.
Development tools that work in a browser are getting better but native (or even just Java-based like IntelliJ stuff) still seems superior for now.
Stuff that doesn't use TCP, like network analysis tools, either need to be done as a desktop app or need to run a local server to point the webapp used to control them to.
I guess what I'm getting at is that if you need low-level access to the local device or if you care a lot about things like rendering performance then native is still the way to go.

SubiculumCode1 reply#
Also from a security standpoint, it seems to me that having all apps work in the browser is creating single points of failure.
gundmc2 replies#
Can you elaborate on the security considerations of this? It seems like you could just as easily say it's more secure because it reduces the attack surface to a well-tested program with mature sandboxing.
desc1 reply#
You mean like the OS is supposed to be?

Continue this thread — 1 reply

paulgb#
It goes both ways, the sandboxing means that the app has less access to the OS, but the flip side is that the open web has more access to the app (CSRF, XSS, evil extensions, etc.)

Coincidentally, I just published a blog post that touches on this from both sides: https://paulbutler.org/2020/the-webassembly-app-gap/

jfkebwjsbx1 reply#
Stadia's games do not run in a browser.

The client you use to interact with the stream is a web page, yes, but the actual game running in their servers is a native Linux application.

bartread#
Yes, but I think that's the point isn't it? Of course the game runs on a Linux server because it couldn't possibly run in a web page due to performance reasons. Hence the complaint about lag.

You either get lag from the network roundtrip or lag from the crap performance in a browser (or you choose to degrade the experience, e.g., by reducing graphics fidelity), but one way or another you're experiencing lag (or a compromised experience).
Ergo the same game implemented as a native app running locally is going to be better[1].
[1] At least technically. It could of course still be a rubbish game.

feifan2 replies#
IMO desktop apps aren’t quite equivalent to native apps. Native apps look and behave in a consistent way. They have

• Familiar UI primitives: - Controls and chrome are in the same place - Font sizes are the same across apps - Consistent icons and button shapes
• Support standard keyboard shortcuts (including obscure ones that developers re-implementing these UIs might not know about) - All the Emacs-style keybindings that work in native macOS text fields but are hit-or-miss in custom web text fields - Full keyboard access (letting me tab and use the space bar and arrow keys to interact with controls)
• And consistent, predictable responsiveness cadences - Somewhat contrived example: In Slack (browser or Electron app), switching between channels/DMs (via ⌘K) has a lag of about 0.5–1 second. If I start typing my message for that recipient during this lag, it actually gets saved as a draft in the channel that I just left and my content in the new channel gets truncated. I don’t think that kind of behavior would happen in a native macOS app, which renders UIs completely synchronously by default/in-order (so it might block the UI, but at least interactions will be in a consistent state)

falafel1 reply#
I don't agree with the first two points. Native applications aren't consistent in this way. There are dozens of cross-platform GUI kits and they all behave slightly different, just like Electron apps. If you want consistency, you need to build multiple apps, one for each OS with their respective toolkits. Ain't nobody got time for that when you can easily build on Electron and target browsers, macOS, Windows, and Linux in one single app. No wonder Electron is winning the battle so far, regardless of your last point.
madhadron1 reply#
Native implies that you are building for each OS and their native toolkit. On macOS, you write Cocoa. On Linux you write GNOME or KDE or CDE. On Windows you write...I dunno. Win32 probably.
freeone30003 replies#
Current tech is C++/WinRT, for this year, but last year it was WPF and five years ago it was XAML, then previously it was MFC/ATL, and original Win32 somewhere back in the old days.

And Linux isn't better. I think OSX is the only desktop OS that has an idea of what an app should look like.

Continue this thread — 3 replies

pbhjpbhj3 replies#
Consistency is maybe overrated?

I purposefully make my FF unlike the other apps on my system. I use a couple of workarounds to prevent OS level keybinds from working in some apps. Sometimes a completely purpose made UI is better, sometimes.
In general, consistency [in desktop UI] is good, but there are good reasons to break it.

dredmorbius#
Depends heavily on the user community, use case, time-in-environment (short- and long-term), inter-user communication about application, and rate of change. There's almost certainly a set of interrelationships between these.

For a highly technical userbase, a highly bespoke UI may be defensible,even preferable, especially:
- User community is expert, highly skilled, and highly computer-literate.
- If daily-weekly time-in-environment is high. User "lives in" application.
- If lifetime time-in-environment is high. Users base career in application.
- If there's relatively little communication between users about application state, interactions, or activities. Put another way: users interact with the app, but not about the app with others (users, clients, management, techs).
- The UI avoids drastic change over time.
By contrast, reverse virtually any of these conditions and you'll want a UI that conforms closely to current standards:
- Users are inexpert, poorly computer-literate (the vast majority, see OECD computer skills study), or simply nontechnical with app.
- Time-in-environment is low. At the extreme, all users are one-time novices.
- If users must communicate with others regarding app state or tasks -- close management, team interaction, client / management interactions. All parties need a ready and clear mental model of the UI and state.
- If the UI changes drastically over time, it should do so consistently with all other major elements. (Both should change as little as possible.)
Somewhat more concretely, the absolute worst feature a UI can have is change. Users get confused, lose trust, and are burdened by obsolete knowledge. This afflicts both expert and nonexpert users, profoundly, though in somewhat different ways.
For very technical tools used principally creatively --- virtually all editors, development environments, and many reader/browser/search/analysis tools fit this description --- a highly distinctive (and customisable) interface may be appropriate for advanced users. This is a small, but generatively critical, user community. There's a requisite complexity to such tools, simplified UI comes at the cost of vastly less efficient performance.
Virtually all "weird" tools in heavy use today evolved from what were at the time of their creation, common motifs, at least within the environment of origin. Think of Unix, vi, emacs, Photoshop, Excel, and Eclipse, say.
For standard workflow, control, and transactional tools, highly standard UIs are preferred. Here, users are interacting closely with others regarding state or interactions with the interface, and clarity, consistency, and common knowledge of the UI and state changes matter. Point-of-sale systems, equipment controls, general monitors, enterprise applications, end-user/customer support tools, and the like.
Occasional-use, public use, and similar tools must be generally usable without training. Adherence to standard motifs is critically important. UIs and capabilities are generally simple.
The trade-offs:
- More expert users and more heavily-used tools can support more novel UIs.
- Less literate users, more unfamiliar tools, and greater communications about UI state and interactions, demand more standard UIs.
- Change is generally bad, but evolutionary change (within the tool) or conformant change (with the overall environment) are generally less disruptive than either sudden drastic or idiosyncratic changes.

feifan#
The difference is you breaking consistency for your use cases, vs some product designer somewhere breaking consistency for all of their users for whatever reason without the end user having any say in it.

Pithily, the cost of a product designer’s novel portfolio piece is externalized onto their captive users.

implicit3 replies#
If you are going to expect me to run your software in an always-on manner, I would greatly appreciate a native application.

I frequently do light computing on a Surface Go. It's a delightful little device and I love it, but it is not powerful enough that I can leave gmail, Slack, and Discord open all the time.
I don't have enough RAM to run another web application but I could very easily afford a native app or two.

znpy1 reply#
I have an old ThinkPad X200s that I turn on from time to time. I keep a fedora installed and updated just in case, and since I'm there, i also sync my nextcloud stuff.

E-mails using claws-mail are not a problem. It generally runs fast enough until I open firefox and web stuff in general.

squarefoot1 reply#
Claws Mail on an old Atom is a lot faster than webmail on pretty much anything else. This probably illustrates best the difference between the two approaches.
pmlnr#
I remember times when webmail basically meant squirrel mail. It was fast over an 56k modem, but desktop was always better.

http://www.squirrelmail.org/

analog31#
Indeed, I asked on another HN thread, why do you developers need so much RAM, and I got lots of good answers. But it occurs to me that a few lightweight, quick-starting apps will help me stave off the day when I have to get a new PC because my old one ran out of juice.

I'm not sure that's enough of a reason to develop a commercial app, because tightwads like me also like our stuff to be free.

Load more comments