Remix.run Logo
▲ serbuvlad 3 hours ago

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).