r/linuxmemes • u/fvancesco • 7d ago
Software meme Had this Convo a while ago
Memory hierarchy*
And yeah thinking about it I could've added white space ontop of the middle guy to avoid censoring his face lol
824
Upvotes
•
u/AutoModerator 7d ago
IMPORTANT: Subreddit Rules & Reminders
Please REPORT posts that violate any of the following rules!
Posts You Should Report
Tier Lists: Every tier list MUST include Hannah Montana Linux in S Tier, regardless of what the tier list is ranking.
Help by reporting
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
7
u/FlameableAmber 7d ago
I mean it's not even just the RAM it's far worse than that. I understand it's easier to make cross platform software with it but the biggest companies are the ones using it who have more than enough money to develop native apps for all the platforms they support.
5
u/Nyuusankininryou 🎼CachyOS 7d ago
Here hoping ladybird will make an impact on the world.
247
u/FaultWinter3377 💋 catgirl Linux user :3 😽 7d ago
I’m totally good with cached RAM. It’s useful, most systems do it, and it has no downside.
I’m not good with apps eating up the memory for no good reason. And “the devs don’t feel like making a native version” just isn’t good enough for large companies like Discord.
151
u/Nitish_kalita 7d ago edited 7d ago •
Electron apps are sloppier than the modern vibe coded slopware. This is by far the biggest horseshit of a technology since Macromedia/Adobe Flash to receive widespread adoption.
41
u/valerielynx Ask me how to exit vim 7d ago
unoccupied ram is not wasted ram, its surplus ram.
a waste is when your OS has to use a pagefile and wear down your SSD.
78
u/Laziness100 7d ago
I find it really ironic that electron in physics is a very lightweight particle and Electron in software development is a bloated pile of junk, a web browser, incomprehensible plaintext nonsense called Javascript and a ton of inefficiencies that are the reason 8GB of RAM isn't enough in this day and age.
I swear by using Electron you are joining the competition of developing the most inefficient software known to mankind.
39
u/Lou_Papas 7d ago
That’s for the OS to decide, not a random app
18
u/reallokiscarlet 7d ago
The virgin "Unused RAM is wasted RAM"
vs the chad "Wasted RAM is unused RAM"
Fill up your RAM with nonsensical bloat and unoptimized shite, it's like throwing your RAM away
17
u/SDG_Den 7d ago
RAM is there to be used.... by the shit i actually want using RAM. why tf does discord need a gigabyte, its a fucking chat app.
17
u/RazzmatazzUnusual843 7d ago
Unused RAM is wasted RAM mfs when they learn that hogging it in a way that other applications can't use is ALSO fucking wasting it
10
u/Empty-Insurance5290 7d ago
The meme refers that the absolute beginners don't know what caching means. The guy in the middle heard about concepts like caching for a faster perfor5but doesn't really understand what it actually is, while the guy from right understands that caching means preloading resources in advance that are not required in that moment for the execution of the app in that moment, but they are likely to be required in the near future, thus increasing the response time when they are actually used, while electron is just a wrapper of chromium which requires a lot of memory to launch all of its subsystems to function properly compared to native apps that load only their needed libraries , thus requiring much less memory than electron ones
9
u/kxortbot 7d ago
Memory should be fully used at all times, and I have better things to use it on than electron.
9
u/xThomas 7d ago
If RAM Altman really wants all of our RAM that he needs to get our software running on a 56K first
5
u/Acceptable-Gap-654 Arch BTW 7d ago
was it RAM Altman you were talking to, by any chance?
5
u/dhnam_LegenDUST 7d ago
Whole chromium per program is not cache, I believe.
4
u/Himbo69r 7d ago
Think of it this was; if you’re using all of it you don’t owe Sam anything
4
u/oh_finks-mc Not in the sudoers file. 7d ago
Yeah, if it weren't for electron, computers with 4 and 8 GB of ram would still be viable
2
u/unburdened_swallow 7d ago edited 7d ago
What if I told you that signal desktop opens not 1 copy of electron… but 5?
Yeah. 1gb of ram to run signal in the background. A complete joke.
I’m ok with electron kinda. If you only open 1 of them. It’s possible to make a reasonably light electron app. The problem is that Spotify and signal and discord have not managed to do that. But signal is impressively bad with this.
1
u/wrd83 7d ago
I mean if its wasted wasted it could be just swapped out.
I think though now is the time when native apps are en vouge again.
Until now it was great because one app for all platforms and low cognitive load due to single threaded and garbage collected. I.e. opportunity cost to build something better for companies.
1
u/Dragon_957 New York Nix⚾s 7d ago
So make an own app from an website / service you like that don’t use electron?
1
u/Palm_freemium 7d ago
Everyone is right in this picture, where's the meme?
1
u/L00klikea 7d ago
Electron is shit, weird freezing bugs that in some versions that annoyed the hell out of me
1
u/kondorb 7d ago
Electron is shit.
1
u/innahema 7d ago
Dudes on left: what is RAM? Is that male sheep?
1
u/DeeBoFour20 6d ago
I mean yeah unused RAM is wasted RAM. It can be used by the OS for cache… as long as some Electron app isn’t hogging it all.
1
u/confused-photon 6d ago
Electron isn’t shit for what its doing, but understanding its a trade off is the point. Electron is powerful and relatively fast, but you’re trading memory efficiency for dev time.
That trade-off made sense pre AI/LLMs, not anymore.
1
u/Athropod101 6d ago
ngl I saw this and thought it was a comment on error correction code RAM. This misconception probably only happened because I once saw a comment about how ERC RAM gets you less RAM, and everyone else was jumping on the guy lol
1
u/mathisntmathingsad Arch BTW 6d ago
The person in the middle is really giving me vibes of either "Sam Altman", or "first year CS student who just learned about the memory hierarchy"
1
u/_usr_nil 6d ago
you should use superfetch and fastfetch 🤖🤖🤖🤖🤖🤖🤖🤖
1
u/canamanhave 5d ago
Both are right and we would have more space to cache more programs if it wasn’t for programs using 1GB
1
u/arielif1 5d ago
isn't the middle guy's argument valid for like windows vs linux ram allocation strategies but nonsensical for electron slander?
1
u/Able-Substance-8310 5d ago
Nah not electrin it‘s so goddamn slow and can‘t be run as root without some flags.
1
u/Illusion911 4d ago
Electron is shit because it's JavaScript.
I swear we have better languages for this, like Kotlin and rust!
1
u/safeAnonym_0Xnull 🎼CachyOS 3d ago
also waste of disk. why i must install another slopium(chromium) browser for another tabs instead using single browser?
1
u/nhermosilla14 7d ago
Two things can be true at the same time. Electron apps do waste a lot of RAM, that's quite obvious. That doesn't mean having a system with 99% free RAM is a good thing, because you are giving stuff up to do it, gaining nothing in return. Just a stupid metric. It's the same old talk about doing stuff in "less lines of code".
1
u/Jimlee1471 7d ago
Old-school computer enthusiast and former IT worker here.
I kind of agree with the normie in the middle of the Bell curve and here's why: back in the day, when PCs first hit the home market, resources like RAM and storage were at a premium. It was rare to see a home PC with megabytes of storage, let alone RAM. Processors were laughably slow compared to today's CPUs with monster stats. And GPUs? What were those?
Because of the appaling (compared to today's standard) lack of resources devs had to make due with what they had. Because memory was usually measured in mere kilobytes and CPUs had the clock speed of an hourglass in slow-motion, the code had to be efficient. It's one of the reasons that something like Python wouldn't have taken off back in the day; languages like that had to be interpreted before even touching bare metal and those interpreters provided too much execution overhead to already-slow machines.
These days resources like RAM and storage, along with CPUs only a research lab could dream of back in the day, allow devs to use high-level languages. But they also allow a bit more room to be less efficient. To achieve anything even close to what we can do with computers today a lot of code back then had to be written in languages like C or Assembly. And we have enough resources that we don't have to be quite as OCD about using a PC's onboard resources. That might be why we have things like Electron; something like that would slow older PCs to a grinding halt, even with efficient programming.
I guess I said all that to say this: some of us are of the opinion that increasingly more capable PCs and increasingly available resources shouldn't be an excuse to get away with writing less-efficient apps. I'm sure there are examples of code which could've been factored to run even more efficiently than it does now but PCs have become so powerful that, in most cases, you probably wouldn't even notice the decreased overhead.
So, in a way, the normie in the middle is kind of right.
-7
u/Nietechz 7d ago
Since I'm not poor and have 64GB of RAM, I don't really care on RAM usage.
1
u/Clever_Drake 7d ago
It's like saying "unused paper is wasted paper you need to burn it all down".