News for hackers. Stuff that matters.
Re:Native all the way, until you need text by Dwedit on Sunday May 17, 2026 @09:38AM (#48168826)
Now RAM use is the main reason to prefer native APIs over web views.
Re:Native all the way, until you need text by enbugger on Sunday May 17, 2026 @10:40AM (#48169345)
A decision to move native because of the crisis seems like an expensive populist move to please not very solvent users. Why bother with that if many predict the RAM crisis will last merely until 2027?
Re:Native all the way, until you need text by LtWorf on Sunday May 17, 2026 @11:16AM (#48169688)
If you can predict the future so accurately, why aren't you the richest man on the planet?
Re:Native all the way, until you need text by enbugger on Sunday May 17, 2026 @11:55AM (#48170041)
I can't. But I'm sure I will be happier and richer person if I don't opt out self from a working stack in favor of saving 100-200mb RAM
Re:Native all the way, until you need text by LtWorf on Sunday May 17, 2026 @12:09PM (#48170184)
You're off by an order of magnitude there.
Re:Native all the way, until you need text by mh- on Sunday May 17, 2026 @01:45PM (#48171190)
super happier and super richer?
Re:Native all the way, until you need text by fauigerzigerk on Sunday May 17, 2026 @01:31PM (#48171041)
Because predicting the future roughly as well as everyone else doesn't make you rich.

Predicting a surge in RAM supply after a surge in RAM demand and a huge increase in RAM margins is economics 101.

Re:Native all the way, until you need text by LtWorf on Sunday May 17, 2026 @03:21PM (#48172323)
We are still bound by natural resources, as much as economics 101 loves to ignore this simple fact.
Re:Native all the way, until you need text by fauigerzigerk on Sunday May 17, 2026 @03:54PM (#48172641)
Scarcity of natural resources is squarely within the realm of economics 101.

The open question in my mind is for how long semiconductor demand will continue to grow faster than we can increase production capacity.

Re:Native all the way, until you need text by tardedmeme on Sunday May 17, 2026 @04:46PM (#48173040)
Supply of RAM isn't really limited by natural resources - silicon is literally one of the most abundant materials on the planet. It's limited by the construction of billion dollar factories.
Re:Native all the way, until you need text by mpweiher on Sunday May 17, 2026 @01:16PM (#48170881)
I am not sure WebViews are the actual problem, and fairly confident it is running the entire application + gargantuan frameworks as JavaScript is.

I am currently working on something I call HTMXNative, which is what it sounds like: using HTMX in WebViews for hybrid apps.

I haven't really looked much at memory consumption, but when I've looked so far it's been very comparable to equivalent apps using native UI.

Re:Native all the way, until you need text by domga on Sunday May 17, 2026 @05:37PM (#48173407)
The issue with JS is that each page gets its own execution context so they don’t share any memory. I am actually curious what does the WebView do to save on RAM here?
Re:Native all the way, until you need text by mpweiher on Monday May 18, 2026 @07:02AM (#48177912)
It doesn't have to "do" anything special if you just use it for rendering HTML, and not for running gargantuan layers of JS frameworks.

If you run gargantuan layers of JS frameworks in a WebView it will perform just as badly as a full browser. After all, a browser is (more or less) just a process wrapped around a WebView.

Re:Native all the way, until you need text by ladberg on Sunday May 17, 2026 @11:36PM (#48175297)
And yet if I open Activity Monitor right now: "Emoji & Symbols" is using 1GB of memory, "Spotlight" using 749MB, "Control Center" using 727MB, despite not having used any of the features recently (and additionally restricting Spotlight to index basically nothing or else it'll drain my battery). Each one of those is larger than any of the Electron apps I always have running (Claude, Cursor, Signal, 1Password).