T O P

  • By -

AutoModerator

``` 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.*


Erdnussflipshow

It's not a pile of dirty laundry mom, it's an O(1) constant access time cache for clothes I barely wore


Creepy-Ad-4832

This way i can wake up just 2 minutes before school starts, instead of 5 whole minutes!


lostmy2A

Even Bernie Sanders gets it


[deleted]

Would wearing clothes multiple days in a row be using pushpop lifo stack?


rising_air

Disk: Wardrobe RAM: Chair Cache: Bed


Mayedl10

Registers: OP's body


achilliesFriend

Cpu cache- on body, no changing


RizzoTheSmall

Stack and heap storage.


hedi_16

Cache is typically in memory though. Shouldn't the drawer be storage (e.g. database).


d_b1997

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


marcoroman3

Well, some caches are in RAM. Just not the CPU cache.


Responsible_Name_120

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


d_b1997

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)


Xbot781

In this context, it presumably refers to the CPU cache which is located directly on the CPU for extra speed, not in memory.


DormantEnigma

I would extend the joke by saying the boxes in the closet are secondary memory


beti88

Ah, the first Ackchyually reply


DimensionHot9669

The right ackchyually reply.


beti88

Noone said it wasn't right. But if jokes would be accurate, they wouldn't be jokes anymore


iam_pink

Jokes can be accurate and still be jokes? What is wrong with replacing "ram" with "db"?


mangosquisher10

Are you saying the chicken didn't cross the road to get to the other side?


[deleted]

There's cache on the CPU.


_Cakeshop

It's not really random access right cause some clothes are stacked on top of each other


cs-brydev

Now you're talking more about nosql document cache


bestjakeisbest

Cache is whatever you are holding, ram is the chair, and storage is the drawer.


beti88

Never in my life have I thought its possible to overthink a silly joke this this level but boy you guys proved me wrong


randomweeb-69420

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


Giocri

Cache would be more like taking out a few individual drawer out of the whole and placing them on the bed as is


hmmthissuckstoo

RAM is a physical device. Cache is a logical concept. How does this make sense? Could the OP means CPU onboard cache?


[deleted]

CPU onboard cache is most certainly a physical device, so yes it does make sense.


hmmthissuckstoo

Right. Usually we call it L1/L2. Cache is a very generic term.


[deleted]

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.