by wild_egg · 3mo ago · 0 comments
It's very rare that I reach for local software these days.
I’m keen to build up a better local stack for building local programs more easily, running them over the internet without installing and syncing data.
I don’t want to need the cloud to make my computer work.
I run all my apps on my desktop and access them over tailscale. All web apps and I install on phones as PWAs. Super ergonomic.
As for this:
> Local software runs faster
What? Why? Is this some assumption about network requests?
None of my personal software ever has a loading spinner or lag. If it's designed well, each interaction should fit in a single TCP packet so network round trip is imperceptible.
If your web software is slow, that's a choice you've made. Plenty of slow local software around to balance the scales too.
EDIT: Using local files with a web stack is also easy these days. The only con of web software is lacking that native aspect. But native appearance is rare anyway these days with every company just shipping electron bloatware.
No. It’s a claim about the amount of work the computer has to do to show UI. Native programs are simply mmapped into memory then executed. They can start instantly. Web software needs a browser engine. And a JS runtime. And a dom. And - usually - needs to wait for a bunch of network round trips.
Tauri - a rust web view wrapper - once bragged that it only needed 25 thousand syscalls to run hello world, vs the 100 thousand that electron needs. I think they’re both totally nuts. Modern computers are fast enough to absorb the necessary performance hit. But why make the UI slow for no reason?
With websites, the UI still usually ends up looking kinda bad. You can make much nicer UIs by using native controls. And you have access to more APIs! I made a conference schedule iOS app the other day which integrates with the native iPhone calendar. You star an event and it gets automatically added to your system calendar. Beautiful.
The only downside is the native ui frameworks aren’t as good. And they force you to rewrite your app N times for N platforms. But that’s just a tooling problem. I’m a big fan of frameworks like day which let me write once and deploy everywhere, while using system UI components. https://daybrite.dev/
For me, it's a law of diminishing returns thing. I would (and have) hand roll assembly if I want actual speed.
But we are talking about personal software. Write once, run everywhere browser's exist with essentially no tooling or complexity or deployment concerns.
What does writing everything in rust get me instead that is worth the significant increase in effort and dev time and deployment?