Remix.run Logo
▲ catdog 4 hours ago

Looking at the amount of RAM phones have nowadays I don't know if this is an issue, desktop Linux runs fine with those amounts. Also Android is not really memory efficient so they needed this workaround.

▲serbuvlad 3 hours ago | parent | next [-]

I currently have 35 apps "open" on my iPhone, most of which are probably React Native or similar.

Other times I'm sure I've hit 60-70.

Because of iOS's app management feature, most of the apps are actually dead, but if I go back and open any of them, they will open and load on the screen on which I left them.

Android does this too.

Desktop Linux cannot.

Can I open 60-70 or even 35 Electron apps simultaneously on 8GB of RAM on Linux?

And no, I do not want to to back to closing apps, that is simply an inferior experience.

▲lesspassiveobse an hour ago | parent | next [-]

It's in unix. SIGSTOP and SIGCONT + swap.

▲serbuvlad an hour ago | parent [-]

And GPU buffers? And in-flight network requests? And notification handling? And D-Bus presence? And watchdogs? And other held resources like pids and fds?

▲adrian_b 3 hours ago | parent | prev [-]

These are things that would be easy to solve in Linux.

What is difficult is e.g. supporting the undocumented photo/video camera and other essential parts of the hardware that lack documentation.

▲microtonal 2 hours ago | parent [-]

This gets brought up several times in this discussion. Hardware with drivers, firmware and device trees exist, see e.g. Fairphone. It even works with open source camera apps (e.g. done in /e/OS). The problem is not (only) the hardware, it is that the Linux desktop stack is wholly unoptimized for phones. And the fact that Meego/Maemo/etc. are now almost two decades ago shows that it is not 'would be easy to solve'. Heck, Linux laptops, which have been available since forever still have far worse battery life than Windows or macOS.

You need a stack that is designed from first principles for phones. Luckily we have one that is open source (AOSP).

▲palata 3 hours ago | parent | prev [-]

You haven't tried to run a Linux on Mobile distro on your phone and compared the battery life to Android, have you?

Spoiler: I have :-)

▲modo_mario 2 hours ago | parent [-]

Depending on the phone they'd struggle to go in a low power state when the screen is off or can't access other power saving features because the manufacturers keep everything under wraps.