this post was submitted on 30 Sep 2025
223 points (96.7% liked)

Programmer Humor

26650 readers
2082 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] boonhet@sopuli.xyz 1 points 15 hours ago (1 children)

But the thing is, you can't use all your clothes at once, your memory CAN all be useful in the moment, hence no need to be anal about leaving it unused.

In your example, those tools are providing you with insight and you could turn them off. They have to index a bunch of files and build models of them in memory.

Then when you actually run your compiler, it's helpful that your OS has probably "wasted" some RAM keeping source files cached after a few runs, even the ones you haven't edited recently.

[–] ulterno@programming.dev -1 points 15 hours ago

you can’t use all your clothes at once

I just have to explain each and every facet of this silly little analogy to you because you really just only want to stick to your line of , "unused memory is useless".
Alright, I will.

You can use the other clothes to:

  • wear multiple layers
  • lend them to your friends or whomever wants them

It can be a shared wardrobe, like in events and such:

  • then, having remaining clothes means, others can come and take them

Unused memory is not useless.
It gives an option to others whether or not to use it.

And caching stuff really has nothing to do with having used Python vs C++ or Rust or whatever.
That is a totally different option.

If your program is taking up more working memory, you then have less memory for the caching, that you are calling "good".


~~In your example, those tools are providing you with insight and you could turn them off. They have to index a bunch of files and build models of them in memory.~~

~~Then when you actually run your compiler, it’s helpful that your OS has probably “wasted” some RAM keeping source files cached after a few runs, even the ones you haven’t edited recently.~~

I am not going to even try to explain it to you how far that is from what I mean by the words the you can go up and read.


And when creating a framework for scripting, you need to be careful about the features, least you end up forcing single threading everything. (See X4)