Anyways I wanted to say I also have a pixel 8 but with stock OS and my battery typically lasts a full day with average usage. My iPhone 8 previously even with a replacement battery was lucky if it lasted more then 5 hours. I had to charge that thing multiple times a day.
(I have the exact same issue)
Considering how many people are so averse to programming that they use LLMs to generate code for them? Not very likely IMO. I would like to see it happen, but people seem allergic to actually trying to be good at the craft these days.
Imagine you are Apple and can just set an LLM loose on the codebase for a weekend with the task to reduce RAM usage of every component by 50%...
Also, what happens to the stability and security of my phone after they let an LLM loose on the entire code base for a weekend?
There are 1.5 billion iPhones out there. It’s not a place to play fast and loose with bleeding edge tech known for hallucinations and poor architecture.
If you direct it to do a specific task to find memory and cpu optimization points, based on perf metrics, then it’s a completely different world.
I asked Claude to find all the valid words on a Boggle board given a dictionary and it wrote a simple implementation that basically tried to search for every single word on the board. Telling it to prune the dictionary first by building a bit mask of the letters in each word and on the board and then checking if the word is even possible to have on the board gave something like a 600x speedup with just a simple prompt of what to do.
That does assume that one has an idea of how to optimize though and what are the bottlenecks.
iOS is 19 years old, built on top of macOS, which is 24 years old, built on top of NeXTSTEP, which is 36 years old, built on top of BSD, which is 47 years old. We’re very far from greenfield.
They are trained on everything, and as a result write code like the Internet average developer.
Great UIs are written by above average or even exceptional developers. Such experience is tied to the real-life reasoning and combining unique years-long human experience of interacting with the world. You need true general intelligence for that.
Before post training (GPT3 2020 class models). Post training makes it no longer act like the average.
A handwritten c implementation would most likely be better, but there is so much to gain from just slaughtering the abstraction bloat it does not really matter.
(I'm looking at you, Liquid Glass. I would love to get back to a vintage, "flat" UI. I'll allow for anti-aliasing, Porter-Duff compositing, but that's where I draw the line.)
Big name apps like Facebook, YouTube, Apple Music, Apple Podcasts seem totally disinterred in preserving my place.
YouTube being the worst where I often stack a bunch of videos in queue, pause to do something else for a while and when I return to the app the queue has been purged.
Case in point — Youtube background play doesn’t pause when Siri makes an announcement, so if you’re listening to something you get two voices over each other.
I gave it the benefit of the doubt and figure it must be some kind of iOS thing, until I was listening to Audible one day and it paused automatically. So it’s just a google thing, not a third-party apps thing.
i have the same issue with the Youtube queue — this is something that could easily be persisted, but they just choose not to.
Why??
[0] https://developer.apple.com/documentation/SwiftUI/restoring-...
It's all gone to $hit, efficiency is gone it's just slop on top of more slop.
If you switched off the app while looking at a certain post or watching a certain video, that's a negative engagement indicator, so the app wants to throw you back into the algorithmic feed to show you something new instead.
So you don't even need an ad blocker, just a sponsor block.
By the way, this (Not an extension, but a login from a Ru ip's) removes ads from all other Google services.
On PC, I use Firefox with the uBlock Origin extension and I see no ads on Youtube.
Same with my pocket supercomputer: Firefox works great on Android, including for Youtube. And it uses extensions like the PC version does. No ads there, either.
On the BFT in the living room, I have a Google-manufactuered Google TV device. It runs SmartTube, and displays no ads on Youtube.
I even have an iPad that I use primarily for watching Youtube videos. For that, I stay completely within the confines of the walled garden and use Safari with the AdBlock add-on. And: If you're guessing that I'm about to write that have no ads on Youtube there either, then you're right. There's no ads on Youtube with that device, either.
Am I doing this wrong?
Maybe my perspective differs from that of some others, but it seems to all work very well for me here in 2026. (There's been some ups and downs with this over the years, but it all finds its way back to exactly what I wrote above, anyway.)
Roughly in that timeframe YT also successfully blocked downloads with yt-dlp for a bit. Seems like they're trying harder now because of AI scrapers.
And also this, from a couple of weeks ago: https://www.firefox.com/en-US/firefox/147.0.4/releasenotes/ (with Linux, but that probably doesn't matter at all)
And that's about it. I recently pruned some other Firefox extensions while troubleshooting ompletely unrelated issues, and all that's left is uBlock Oorigin, Dark Reader, and BitWarden.
Seriously, I've had no recent issues with Youtube ads at all and certainly none in January or February of this year. It's been smooth-enough for me on all of the platforms I mentioned before (and I use them all quite a lot, except perhaps for the BFT).
I wonder what's different on your end?
Turns out if both this and uBlock are active, YouTube will refuse to work. But only uBlock works just fine.
Welcome back to the club.
Hardware is pretty useless if the software that drives it is useless. I don't know it probably works better in China all I know is that I went back to good old Samsung.
The market demands must be different there. I've disabled "battery optimisation" for all the apps I need to stay open (and some apps even prompt me to disable it!), and I don't have any issues in daily use.
[1] https://source.android.com/docs/core/perf/cached-apps-freeze...
That's social engineering to get themselves more background network activity. I wouldn't trust such an app.
if you run out of smartphone battery you are in much bigger trouble in China than in west since it's necessary to function almost everywhere, which is why they have rental powerbanks stand literally in every restaurant and every small grocery shop, you are never further than like 5 minutes walk from one in urban area
btw you can always put app to protected/not optimized list which usually solve problems with most of the western apps on Chinese phones (essential Chinese apps like WeChat are on the list by default)
Hard to tell if it something I am doing or not. I will say with all these phones and everything google turned off I typically get 3-4 days per charge but that really depends on what your usage is.
Enable debug with:
$ defaults write com.apple.Safari IncludeInternalDebugMenu -bool YES
I remember on Android I dont recall the app name specifically, but it would let me download any website for offline browsing or something, would use it when I knew I might have no internet like a cruise.
Heck there used to be an iOS client for HN that was defunct after some time, but it would let you cache comments and articles for offline reading.
That being said, there's no reason the Safari context shouldn't be able to suspend the JS and simply resume when the context is brought back to the foregrown. It's already sandboxed, just stop scheduling JS execution for that sandbox.
I coded an extension that adds a context menu for opening videos in embed mode. https://addons.mozilla.org/pl/firefox/addon/youtube-open-as-...
Safari suspends backgrounded tabs. I think that's what we're observing here rather than strictly memory pressure.
Is it too much to ask for me to manage my own background processes on my phone? I don't want the OS arbitrarily deciding what to pause & kill. If it actually does OOM, give me a dialog like macOS and ask me what to kill. Then again, if a phone is going OOM with 12GB of RAM there's a serious optimization problem going on with mobile apps.
Android does all sorts of wacky stuff with background tasks too... Although I don't feel like my 6 GB Android is low memory, so maybe there's something there, but I also don't run a lot of apps, and I regularly close Firefox tabs. Android apps do mostly seem well prepared for background shenanigans, cause they happen all the time. There's the AOSP/Google Play background app controls, but also most of the OEMs do some stuff, and sometimes it's very hard to get stuff you want to run in the background to stay running.
I dunno about watches, but Airpods work fine with Android, as long as you disconnect them from FindMy cause there's no way to make them not think they're lost (he says authoritatively, hoping to be corrected).
Apple seemingly wants all apps to be static jpegs that never need to connect to any data local or remote, and never do any processing. If you want to do something in the background so that your user can multitask, too damn bad.
You can run in the background, for a non-deterministic amount of time. If you do that, iOS nags your user to make it stop. If you access radios, iOS nags your user to disable it.
It's honestly insane. I don't know why or how anyone develops for this platform.
Not to mention the fact that you have to spend $5k minimum just to put hello world on the screen. I can't believe that apple gets away with forcing you to buy a goddamn Mac to complile a program.
People develop for iOS because iOS users spend more money. End of story.
It's inconvenient that apps can't do long-running operations in the background outside of a few areas, but that's a design feature of the platform. Users of iOS are choosing to give up the ability to run torrent clients or whatever in exchange for knowing that an app isn't going to destroy their battery life in the background.
These are features, because we can't trust developers to be smart about how they implement these. In fact, we can't even trust them not to be malicious about it. User nags keep the dveloper honest on a device where battery life and all-day availability is arguably of utmost importance.
> you have to spend $5k minimum just to put hello world on the screen.
Now that's just nonsense.
It happened a lot on my previous phone with only 4GB ram though
“Save webpages to read later in Safari on iPhone” https://support.apple.com/guide/iphone/save-pages-to-a-readi...
My understanding was that market research showed a lot of users were turning off the 3D stuff anyway, so it seemed reasonable to offer a model at lower cost without the associated hardware.
It was also because young children weren't supposed to use the 3D screen due to fears of it affecting vision development. You could always lock it out via parental controls on the original, but still that was cited as a reason for adding the 2DS to the lineup.
https://www.ign.com/articles/2013/08/28/nintendo-announces-2...
> Fils-Aime said. “And so with the Nintendo 3DS, we were clear to parents that, ‘hey, we recommend that your children be seven and older to utilize this device.’ So clearly that creates an opportunity for five-year-olds, six-year-olds, that first-time handheld gaming consumer."
App battery usage is unrestricted, so it's not that.
There is a strong argument modern mobile goes too far for this.
I don't work at that kind of level, so I dunno if the juice would be worth the squeeze (sleep with DRAM refresh is already very low power on phone scales), but it seems doable.
There's a reason why we say unused RAM is wasted RAM.
I have to use a Macbook M4 at work with 24GB, I have an AMD Lenovo Ryzen7 with 32GB running Linux Mint Cinnamon. It is infuriating how slow this Macbook is, even to shut it down is slow asf.
macOS is not different than Windows, I cannot wait for COB to get back to my Linux laptop.
Companies install so many invasive shit in the name of security theater and employee control that there is lots of waste going on.
Spotted the German lol
The general problem is that many people don't bother testing their apps outside of their office wifi with low latency, low jitter, low packet loss and high bandwidth. Something like persisting the state when the OOM/battery-save killer comes knocking onto some cloud endpoint? Perfectly fine on wifi... but on a mobile connection that might just be EDGE, cut entirely because the user is just getting a phone call and the carrier does not do VoLTE, or be of an absurd latency? Whoops. Process killer knocks a -9 and that's it, state be gone.
Side note: Anyone know of a way to prevent the iPhone hotspot from disassociating with a MacBook when the phone loses network connectivity? It's darn annoying, I counted having to reconnect twenty times on a train ride less than an hour.
Sure, but otherwise, the competition will be first to market, and the exec may lose their bonus. So, the exec keeps their bonus, and when the tech debt collapses, the exec will either have departed long ago or will be let go with a golden parachute, and in the worst case an entire product line goes down the drain, if not the entire company.
The financialization and stonkmarketization of everything is killing our society.
With that contract being eroded, I think the sloppiness of testing, validation, and even architecture in many organizations is going to be exposed.
That trend might reverse if porting to a best practice native App becomes trivial.
I wouldn't call it an idealist position as much as a fools one. Companies don't give a shit about software security or sustainable software as long as they can ship faster and pump stocks higher.
Although, for a $450 device that doesn’t need to make much of a profit on its own, I also don’t think they’re heavy on memory in the first place (12GB). You can buy top quality Chinese Android handhelds with more RAM and better Qualcomm processors than the Switch 2 for about the same price, and those companies are making $0 in software royalties (e.g., AYN Thor Max is $450 with a 16GB/1TB configuration).
Every version of the Switch 1 had 4GB of RAM, they didn't cut that on the Lite. Going back and patching every game to ensure it ran on less RAM it was originally designed for would have been a nightmare.
> (e.g., AYN Thor Max is $450 with a 16GB/1TB configuration).
AYN just announced that the Thor will get a price increase soon for obvious reasons.
https://www.reddit.com/r/SBCGaming/comments/1rf5gxq/to_thor_...
Of course the Thor Max will have a price increase, but also, obviously 16GB/1TB is a massively bigger bill of materials than the Switch 2’s 12GB/256GB configuration.
And I forgot to mention that Nintendo has far more pricing leverage in terms of their volume.
Nintendo can't realistically take memory budget away from developers after the fact. The 2DS cut the 3D feature from the 3DS, but all games were required to be playable in 2D from day 1, so no existing games broke on the cost-reduced 2DS.
Back in the day with PHP things were much more understandable, it's somehow gotten objectively worse. And now, most desktop apps are their own contained browser. Somehow worse than Windows 98 .hta apps, too; where at least the system browser served a local app up, now we have ten copies of Electron running, bringing my relatively new Macbook to a crawl. Everything sucks and is way less fun than it used to be.
We have many, many examples of GUI toolkits that are extremely fast and lightweight. Isn't it time to throw the browser away, stop abusing HTML to make applications, and design something fit for purpose?
It's not "the web" or HTML, CSS, or JavaScript. That's all instant in vanilla form. Any media in today's quality will of course take time to download but, once cached, is also instant. None of the UX "requires" the crap that makes it slow, certainly not thousands of lines to make a table sortable and filterable. I could do that in IE6 without breaking a sweat. It's way easier, and faster, now. It's just people being lazy in how they do it, Apparetnly now just accepting whatever claude gave them as "best in show".
Not going to happen until gui frameworks are as comfortable and easy to set up and use as html. Entry barrier and ergonomics are among the biggest deciding factors of winning technologies.
You can do the core functionality of your product as cross platform, to some extend, but once you hit the interaction with the OS and especially the UI libraries of the OS, I think you'd get better software if you just accept that you'll need to write multiple application.
We see this on mobile, there's just two target platform really, yet companies don't even want to do that.
The choice isn't surprising, in a world where companies are more concerned with saving and branding, compared to creating good products.
It'd be nice if companies could just play nice and agree on a standard interface. That's the one good thing the web managed to do. It's just stuck to what's ultimately 3 decades of tech debt from a prototype document reader made in a few weeks.
They basically do though. Every cross platform native ported app I've used the GUI is the same layout. Well, except on macos the menu ribbon is on the topbar and windows it has its own ribbon layer in the application window. But that is it. All these frameworks already have feature parity with another. It is expected that they have these same functions and ui paradigms. Here's your button function. Here is where you specify window dimensions. This function opens a file browser. This one takes in user input to the textbox. I mean it is all pretty standardized and limited what you can expect to do in ui already.
Or you can use a VM, which is essentially what a modern browser is anyway. I wrote and maintained a Java app for many years with seamless cross platform development. The browser is the right architecture. It's the implementation that's painful, mostly for historical reasons.
The problem with cross platform UI is that it is antithetical to the purpose of an OS-native UI in its reason of existence. Cross platform tries to unify the UX while native UI tries to differentiate the UX. Native UI wants unique incompatible behavior.
So the cross platform UI frameworks that try to use the actual OS components always end up with terrible visual bugs due to unifying things that don't want to be unified. Or worse many "cross platform" UI frameworks try to mimic the its developer's favorite OS. I have seen way too many Android apps that has "cross platform" frameworks that draw iOS UI elements.
The best way to do cross platform applications with a GUI (I specifically avoid cross platform UI) is defining a yet another platform above a very basic common layer. This is what Web had done. What a browser asks from an OS is a rectangle (a graphics buffer) and the fonts to draw a webpage. Nothing else. Entire drawing functionality and the behavior is redefined from scratch. This is the advantage of Web and this is why Electron works so well for applications deployed in multiple OSes.
I have created and used them. They didn't look terrible on windows.
>What a browser asks from an OS is a rectangle (a graphics buffer) and the fonts to draw a webpage. Nothing else. Entire drawing functionality and the behavior is redefined from scratch. This is the advantage of Web..
I think that is exactly what Gtk does (and may be even Qt also) too..
I think it is just there there is not much funding going to those projects. Web on the other hand, being an ad-delivery platform, the sellers really want your browsers to work and look good...
The remnants of the dotcom era for web definitely helped shape it in a more design contentious way, in comparison. Those standards are created and pushed a few layers above that in which cross platform UI's work in.
https://imgur.com/a/ruTGUaF#ntnfeCJ
https://imgur.com/yGhgkz2 -> Comparison with another open source app Notepad3 under Windows.
> I think that is exactly what Gtk does (and may be even Qt also) too..
The problem is they half-ass it. Qt only does it with QML. Qt Widgets is half-half and it is a mess.
Overall these do not invalidate my point though. If you want a truly cross-platform application GUI, you need to rewrite the GUI for each OS. Or you give up and write one GUI that's running on its own platform.
> I think it is just there there is not much funding going to those projects. Web on the other hand, being an ad-delivery platform, the sellers really want your browsers to work and look good...
Indeed, Google employs some of the smartest software developers and ones with really niche skills like Behdad Esfahbod who created the best or the second best font rendering library out there. However, Qt has a company behind (a very very incompetent one, not just the library but operating a business). I have seen many commercial libraries too, they are all various shades of terrible.
ImGUI is the single exception that has been simple to set up, trivial to deploy (there is nothing to deploy, including it is all that's needed), and nice to use.
Yes, they were comfortable and easy to set up (and use), particularly when compared to web development.
> a platform where their best bet at dynamic layout is `OnResize()` and `SubmitButton.Enabled = False`
This is a great description of what web coding looked like for a very long time, _especially_ when it started replacing RAD tools like VB and Delphi. In fact, it still looks like this in many ways, except now you have a JSX property and React state for disabling the button, and a mess of complex tooling, setup and node modules just to get to that base level.
The web won not because of programmer convenience, but because it offered ease of distribution. Turns out everything else was secondary.
React is over a decade old, and as far as I remember, desktop apps using embedded browsers (Electron) started becoming dominant after it came out.
The ease-of-distribution advantage is huge, but web technologies are big outside the Web too, where it doesn't apply.
(Besides my main point, idiomatic web UIs don't implement resize handlers for positioning each element manually, but instead use CSS to declaratively create layouts. Modern GUI libraries with visual builders can also do this, but it was decidedly not the norm in the 90s. Also, modern dynamic GUIs generally don't use a static layout with disabled parts, but hide or add parts outright. That kind of dynamicity is hard to even conceptualise with a GUI builder.)
The current idiomatic way of doing web layouts was, back then, almost entirely theoretical. The reality was a cross-browser hell filled with onResize listeners, in turn calling code filled with browser-specific if statements. Entire JavaScript libraries were devoted to correctly identifying browsers in order for developers to take appropriate measures when writing UI code. Separate machines specifically devoted to running old versions of Internet Explorer had to be used during testing and development, in order to ensure end user compatibility.
In short: The web was not in any way, shape or form more convenient for developers than the RAD tools it replaced. But it was instant access multi-platform distribution which readily allowed for Cloud/SaaS subscription models.
Electron happened more as an afterthought, when the ease of distribution had already made web UIs, and hence web UI developers, hegemonic. Heck, even MS Office for the web predates React, Electron, and something as arcane as Internet Explorer 9.
Things have gotten much better, but we're still having to reinvent things that just existed natively in VB6 (DataGrid, anyone?) - and at the cost of increasingly complex toolchains and dependencies.
Great. How do you get all the hardware and OS vendors to deploy it for free and without applying their own "vetting" or inserting themselves into the billing?
We had Flash for exactly that purpose. For all its flaws, it was our best hope. A shame Apple and later Adobe decided to kill it in favor of HTML5.
The second best bet was Java Applets, but the technology came too early and was dead before it could fly off.
Some may mention WebAssembly, but I just don't see that as a viable alternative to the web mess that we already have.
I agree we need in built-in controls, reasonably sophisticated, properly style-able with CSS. We also need typed JS in the browser, etc
Just use jquery and this plugin, 7kB minified:
https://github.com/myspace-nu/jquery.fancyTable/blob/master/...
what's not great are the complexity merchants, due to money & other incentives etc that ship to the web.
there's better web frameworks that are lighter, faster than react - but due to hype etc you know how that goes
I wouldn't say that. The web had done way more good than harm overall. What I would say is that embedding the internet (and its tracking and spyware and dark patterns that have gain prominence) into every single application that we use is what is at fault.
The web browser that we built in 1990 was all on-premise obviously. And it had a very different architecture than HTTP. There were two processes. One used TCP/IP to mirror the plant computers model into memory on the workstation. The other painted the infographics and handled the user navigating to different screens. The two processes used shared memory to communicate. It was my first job out of university.
You know, or something.
I know that Chrome pulling the plug on XSLT in the browser is imminent - so how are you refactoring?
Instead it's just piling on a dozen layers of dependencies. Webassembly feels like the only real glimmer of what the "next generation" could have been like.
It's not though, is it? Even browsers are capable of painting most pages at over 60 FPS. It's all the other crappy code making everything janky.
My 17 year old core 2 duo should not feel faster on a lean linux distro than modern hardware and yet it does. Wild to see and somewhat depressing.
I see old videos (Computer chronicles a good example) of what could be done on a 486 for instance. While you can see the difference in overall experience, it isnt that extreme of a difference, the 486 being released 37 years ago...
[1] Why Aren’t Operating Systems Getting Faster As Fast as Hardware? https://web.stanford.edu/~ouster/cgi-bin/papers/osfaster.pdf
Maybe, but I have terrible news for you about how much easier it just became to throw software at a problem
AO3 HTML downloads have the story in one long HTML file. When reading that on iPad that stupid refresh can move you to the top which is pretty damned annoying.
For that very particular situation I do have a workaround, but it involved adding some JavaScript to the download HTML. If anyone else is reading downloaded AO3 HTML and would like this I've put it on pastebin.com. Get saveplace.js [1] and ao3book.css [2] and add this at the end of the head of your AO3 download:
<script type="text/javascript" src="saveplace.js"></script>
<link rel="StyleSheet" href="ao3book.css" type="text/css"/>
Saveplace does two things.First, to address the tab refresh problem, whenever you change your position in the story it waits until you've stopped at a new position for a bit and then records the new position in parameters on the URL. After a refresh happens it looks for those parameters and restores the last saved position.
Second, to make the story easier to read it hides all but the first chapter, adds buttons to move forward and back by chapter, and adds a dropdown to select chapters. It also adds a button to switch between night and day mode. The day/night mode setting is saved in local storage.
Feel free to use this in anything of your own. The chapter navigation stuff is tied to AO3's HTML, but that would be easy to delete leaving just the position saving/restoring. This is in the public domain in places where it is possible to put things in the public domain. If one of us is somewhere that isn't possible you can use it under the MIT No Attribution license (MIT-0).
That's almost a decade ago.
Phones RAM progression has stagnated for a LONG time, during that time I doubt that webpages have become lighter, so yeah I'm not surprised by what you are saying.
The devices themselves are fast enough to run everything, you just can't update and eventually apps stop being available to the old iOS version they run.
I know this because I still get some of my web pages refreshed even if the browser is literally the only app that is running.
That and using SPAs for static sites.
A lot of software has been squandering the massive hardware gains that have been made. I hope this changes when it becomes a lot harder to throw hardware at the problem.
I also wonder what this means for smartphone-esque devices like the Switch 2. If this goes on long enough I won't be surprised if they release a 'lite' model with less RAM/Storage and bifurcate their console capabilities, worse than what they did with 3DS > 2DS .