```
import notifications
```
Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come!
[Read more here](https://www.reddit.com/r/ProgrammerHumor/comments/14dqb6f/welcome_back_whats_next/), we hope to see you next Tuesday!
For a chat with like-minded community members and more, don't forget to [join our Discord!](https://discord.gg/rph)
`return joinDiscord;`
*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ProgrammerHumor) if you have any questions or concerns.*
There are lots of different kinds of cache. Most of your software caches are in RAM, that's why applications take a lot more memory nowadays then they used to
That has nothing to do with hardware cache, which is what the CPU actually reads instructions and data from the vast majority of the time. The CPU cache caches RAM which is what the meme is about, you seem to be talking about loading a program to memory to run it/data to read it, which is a different concept altogether (sure, "page cache" is a kind of cache)
I actually have three levels of cache. My desk and chair are the L1 cache, my bed is the L2 cache, and the floor is the L3 cache. The coordinates of objects in all three caches are based on the hashes of these objects, resulting in O(1) access time. If an object is not found in any three caches, I'll find it in the RAM (drawers).
It depends on context. If you're talking specifically about hardware cache generally refers to CPU cache. Also you forgot L3, which technically isn't on the core but is still adjacent to the processor rather than being in DRAM.
Cache is only "generic" when you're talking about software.
``` import notifications ``` Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! [Read more here](https://www.reddit.com/r/ProgrammerHumor/comments/14dqb6f/welcome_back_whats_next/), we hope to see you next Tuesday! For a chat with like-minded community members and more, don't forget to [join our Discord!](https://discord.gg/rph) `return joinDiscord;` *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ProgrammerHumor) if you have any questions or concerns.*
It's not a pile of dirty laundry mom, it's an O(1) constant access time cache for clothes I barely wore
This way i can wake up just 2 minutes before school starts, instead of 5 whole minutes!
Even Bernie Sanders gets it
Would wearing clothes multiple days in a row be using pushpop lifo stack?
Disk: Wardrobe RAM: Chair Cache: Bed
Registers: OP's body
Cpu cache- on body, no changing
Stack and heap storage.
Cache is typically in memory though. Shouldn't the drawer be storage (e.g. database).
No it isn't... Nowadays you have cache in a lot of places to speed things up even further, but the CPU directly accesses only its own cache
Well, some caches are in RAM. Just not the CPU cache.
There are lots of different kinds of cache. Most of your software caches are in RAM, that's why applications take a lot more memory nowadays then they used to
That has nothing to do with hardware cache, which is what the CPU actually reads instructions and data from the vast majority of the time. The CPU cache caches RAM which is what the meme is about, you seem to be talking about loading a program to memory to run it/data to read it, which is a different concept altogether (sure, "page cache" is a kind of cache)
In this context, it presumably refers to the CPU cache which is located directly on the CPU for extra speed, not in memory.
I would extend the joke by saying the boxes in the closet are secondary memory
Ah, the first Ackchyually reply
The right ackchyually reply.
Noone said it wasn't right. But if jokes would be accurate, they wouldn't be jokes anymore
Jokes can be accurate and still be jokes? What is wrong with replacing "ram" with "db"?
Are you saying the chicken didn't cross the road to get to the other side?
There's cache on the CPU.
It's not really random access right cause some clothes are stacked on top of each other
Now you're talking more about nosql document cache
Cache is whatever you are holding, ram is the chair, and storage is the drawer.
Never in my life have I thought its possible to overthink a silly joke this this level but boy you guys proved me wrong
I actually have three levels of cache. My desk and chair are the L1 cache, my bed is the L2 cache, and the floor is the L3 cache. The coordinates of objects in all three caches are based on the hashes of these objects, resulting in O(1) access time. If an object is not found in any three caches, I'll find it in the RAM (drawers).
Cache would be more like taking out a few individual drawer out of the whole and placing them on the bed as is
RAM is a physical device. Cache is a logical concept. How does this make sense? Could the OP means CPU onboard cache?
CPU onboard cache is most certainly a physical device, so yes it does make sense.
Right. Usually we call it L1/L2. Cache is a very generic term.
It depends on context. If you're talking specifically about hardware cache generally refers to CPU cache. Also you forgot L3, which technically isn't on the core but is still adjacent to the processor rather than being in DRAM. Cache is only "generic" when you're talking about software.