Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Swap is not enabled by default by any OS that I know of. And I doubt any OS requires you to have several gbs free in order to work smoothly.

My point being is, we are not stuck with 2 gbs of ram anymore and like games, apps will scale to use more resources for ease of development or better features.



I care as much about your ease of development as you care about the ease of assembly of your car. If someone told you that your next car was going to get 15 mpg and told you that gas stations are plentiful nowadays you would presumably by a different car.


Literally every major OS in existence has swap enabled by default. Linux, Mac, windows.

The alternative is for things to start crashing when you run out of memory rather than swapping out.


> Linux, Mac, windows.

But not Android, iOS or iPadOS. (And for good reason - these OS's run on devices that use bottom-of-the-barrel flash storage and can't sustain the wear-and-tear that comes with using swap.) That's not "literally every major OS"!


Instead, they suspend applications to the self-same flash storage when the the application is not being actively used and there is memory pressure.

Doesn't seem a lot different from swapping the memory to disc until its accessed again.

Not to mention, it's kinda irrelevant to a discussion of electron applications.


They don't "suspend applications". They can prompt an application to serialize an image of its "core" memory for storage on the flash media and to subsequently restore its state from the serialized memory dump, but very few applications are written to do the job properly.


As far as I am aware both windows and linux (several distros) use swap by default. On windows it will be a file on the C drive and on Linux it will be a swap partition.

Of course they are not going to swap unless they have to, but they will swap in default configuration.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: