Hacker News new | ask | show | jobs
by JoshTriplett 26 days ago
I'm hoping that more native apps get rewritten as web apps so they can stay in a browser sandbox where they belong. "Fortunately", we'll probably both get all the slop we "want".
2 comments

Yeah I find it interesting that HN's love of performance seems to overpower their love of security. Especially since nearly everyone here has better hardware than average people.

I do not enjoy running random strangers' Rust on my machine unless it's sitting in a VM and probably also a container, at which point the performance benefit is gone anyways.

I recently moved all of the desktop apps I reasonably could to browser tabs and have been quite happy with it.

Oh and don't forget how easily you can modify the source. With a simple user script or extension I can modify your website to behave exactly how I want it to without recompiling.

It's largely because when Electron first came out the browser app platform (the API availability, performance, etc) was still quite thin and Electron was quite slow. HN just got stuck in this echo that web browsers are very inefficient and have no benefits while native apps are so much better. Java had the same echo for a long time on nerd forums because the JVM was a lot slower than native compiled apps for the first few years of its development.

In practice since then, browser-based apps ended up eating a lot of the demand for native apps and the web browser as a platform ended up displacing a lot of native apps, but the echo has stayed around here with little grounding. As such the distribution, security, and performance posture for browser and mobile apps has become a lot better while native app toolkits have lagged behind.

There's certainly a possibility that agentic development will make native development "cheap" again and encourage a lot more of it. But the web platform's security posture is much more well fleshed out at this point so I'm not sure.

Electron also papered over the problem that browsers weren't evergreen, so if you ran in the user's browser, you might not have support for current web APIs you want to depend on.

Most browsers are evergreen and updated frequently now, to the point that that no longer seems like an issue.

> Yeah I find it interesting that HN's love of performance seems to overpower their love of security

I don't think we should necessarily want to live in a world where the browser is the only way to achieve sandboxing. The various flavours of chroot jails are gradually gaining traction to sandbox native apps as well.

Google Chrome allows web apps full access to your USB devices if they can trick you into accepting a permission prompt.
You make a good point - the sandbox of the browser is a genuine improvement. It's crazy to think that on some desktop OS's if you download and run a weather app, it probably has access to all the files and peripherals you do (camera, microphone, etc...). Apple is doing good work on this front with macOS as are Linux devs with Flatpak. Mobile operating systems do a good job of isolating apps too.

Windows though... seems to be stuck in the 90's.

I just want to express some appreciation for your very reasonable reply. Most of the time, "native app" versus "web app" seems to be one of the perennial arguments; it's refreshing to see someone give serious consideration to their position on that point.
I read that on Apple if you download and install a weather app, every week it'll ask you if you're sure you want that app to know your location.

There's no happy middle ground. You'll always have to be careful what you install.