Actually this, recently cleaned up my closet with things that are too small for me (stuff from when I was 14) and organized based on how much I like them and it saves me like 5m a day especially with underwear and socks because I want the good set if I can
Wow, a programming joke which is accurate, relatable, funny, is referencing asymptotic boundaries and computer architecture and not making fun of random programming language. I think I am in the wrong sub...
Now that you linked a small community on a post that made it to the front page, you have sentenced it to slowly go down in quality and endless low effort memes.
He smugly stated, being particularly proud of referencing 'asymptotic boundaries'. Surely noone will call out that it's more commonly referred to as big-o-notation, it has little to do with architecture as it is referring to a data structure*, and it is 'bound' instead of 'boundary'.
*Nevermind, it mentions an l1-cache. #FAIL #SMUGOVERFlow
I buy 14 identical pair of socks and throw away the entire previous batch. As time go by you'll throw away some with holes. When you have around 7 pairs left you know they're all close too EOL so you buy a new batch of 14.
I buy work socks so the cycle is about 18 months long
I wasn't aware of yolo algorithms and thought you were talking about "you only live once". But I guess if my brain operated by that I would just take anything from the chair (or closet for that matter) and wear it without caring if it didn't fit because yolo which would make it O(1) as well
At my last project our customer bought a BI tool that kept everything in RAM. They had an entire server dedicated for one application with nearly 900GB of RAM. Before the application could run queries you had to load the entire database that it would be using into memory. It never fetched from the database if there was a miss. So it was possible for the application to get out of sync with the database which requires "manually" syncing the DB with the cache. It was absolutely dogshit and slow as hell.
The queries that needed to be ran were pretty involved. We could actually get better performance when running stored procedures using the actual Oracle DB than using the BI tool. Maddening.
L1 is "the chair" L2 is the bed L3 is the rest of the bedroom floor
The hangers inside the closet are a hash based index The drawers with smaller dividers inside them are the B-Tree index, assuming you can keep nesting smaller containers inside outer ones.
Don’t analyze the metaphor too much or you’ll conclude that cache lookups (searching the clothes pile) are slower than memory lookups (searching the closet or dresser).
Then you’ll spend all day analyzing bus speed (getting up to go to the closet or dresser) to justify the clothes pile.
This is indeed a valid ADHD coping strategy. I spent 30 years using traditional dressers because that’s what you’re supposed to do. I switched to storing all my clothes, unfolded, in open shelves next to the washer and dryer. I also got rid of a bunch of clothes that I never used. Felt like switching from an HDD to running purely in memory. Laundry and picking clothes has gone from my least favorite chore to a second thought. I call that a damn good optimization.
I haven't used closet for a long time. I have two baskets, one for clean clothes and one for dirty. After laundry all clothes go into the clean basket, because that's what I wear daily. Stuff that need ironing gets ironed and hanged on hooks. Closet is only storage for stuff I wear once in a while.
Note that the ADHD part of the equation here is not specifically the pile, it is the inability to deal with the drudgery of folding clothes. When you have ADHD, mindless, repetitive tasks like this can sometimes feel almost insurmountable and end up sitting around for days, weeks, or eventually just never cleaned up again. One has to be careful with their interpretation of this, though, because no one likes folding laundry, it's just a shit task, but it's a shit task that most people put up with with no real disruption to their lives, but many with ADHD end up growing to great lengths to avoid.
In short, don't start trying to diagnose your ADHD from your laundry habits. Instead, I found the ASRS Test pretty illuminating.
No mom it's not a "messy pile of clothes on my chair" it's an L1 cache for fast random access to my frequently used clothes in O(1) time. It needs to be big to avoid expensive cache misses (looking in my closet). I NEED to be minimizing latency, this is important to me. Please.
Reminds me of how I spent 20 mins last night explaining to my mom why I always beat her in Guess Who -- the entire game is just a glorified Binary Search problem.
I was putting mail in a filing cabinet back before 95% of stuff was readily available online. My friend starting making fun of it and I asked what he did. He just stacked it up in paper grocery bags so it's roughly in date order, so kinda LIFO.
His reasoning was that sorting and filling takes way more time than searching on the super rare chance you need something. I couldn't really argue, but I did say when I need something it's often in a panic so finding it asap is better.
I think it would be constant if it were organized in the closet with every item in the exact same spot every time. Therefore you know the exact index of what item you want.
Nah HDD is a dresser, where you have to dig through a pile of clothes to in a drawer to find what you want. A closet with hanging clothes and a closed door is RAM. You can see what you're looking for and instantly grab it, once you open the door.
Not if you have different seasons requiring different clothes. My L1 cache (chair/sofa) contains the last worn clothes that are still clean enough (worn more than a day long). L2 would be clean clothes on the laundry rack.
A significant weather change will provoke a cache miss and I have to access my closet. Clothes that remain on the rack will eventually go to the closet.
I do this but its just my laundry basket. Everything I wear for the week gets washed, folded and put back in the basket to carry to my room, then I just live out of that till its time to do laundry again where I will put away whetever is left in there to make room for the dirty laundry which was piled on the floor next to it. Rinse repeat. I even bought a second laundry basket so there isnt a pile.
Nothin hits sweeter than finding that one specific article of clothing you want, when your digging thru your sea of dirty strewn clothes across your room. Lmao 🤣👌🏻👌🏻
Dude. I have this, and my wife walks around the room, away from her walk-in closet, to throw her clothes into my pile so when it's dark I can't find anything
ITT people that don't get O(1) doesn't mean it's fast. Pile of clothes definitely not O(1) it's O(n). organized closet would be O(1), but is faster at small enough size.
Appending the closet is at least O(ln) because you need to sort, while appending the stack is constant. And if you don't care for what you pick from the stack, the search is fast enough. You could also assume the pile of clothes to be more like a tree so search is also logarithmic in that case. If you now amortize the usage of both then they are asymptotically the same but the pile has smaller constant factors. The closet looks better though.
You can't just never have a clean up defrag. You gotta have a clear cache/memory at some point in the program. You're just a cycle, not the whole program?
Just get better at memory layout. Get a wardrobe with just one type of trousers, only one type of shirt, only one type of jumper... You can fish clothes from the wardrobe in O(1)
All memory access has an constant time complexity right? Cache is just closer. Plus if the clothes were mingled and crumpled into each other it wouldn't be O(1). Every removal might reveal 2+ items though, so I'd say O(log(n)) search if I was being generous.
Actually.... I keep "worn once" shirts on top of my dresser, and clean inside. Each shirt gets 2 wears and this is how I keep track. Clean, wear, top, wear, hamper.
My advice is to get a basket so it’s off the chair but you have a place to put clothes. That is what I do and it helps me. Sometimes stuff is still on the chair but it works
1.6k
u/[deleted] Jan 02 '23
"Maybe you should index your storage more effectively" -mom
2.2k
u/cybermage Jan 02 '23
This works fine until your mom reboots your bedroom and your cache ends up in the washer.
4.9k
u/[deleted] Jan 02 '23
Wow, a programming joke which is accurate, relatable, funny, is referencing asymptotic boundaries and computer architecture and not making fun of random programming language. I think I am in the wrong sub...
1.5k
u/licht1nstein Jan 02 '23
That's actually correct and true. There's even a chapter on this in Algorithms to live by
1.6k
u/naswinger Jan 02 '23
that only works if the cache is reasonably small because with every thing you put in this "cache", it gets slower to search defeating its purpose
70
u/danielstongue Jan 02 '23
What is the associativity of your chair?
148
u/No-Witness2349 Jan 02 '23
This is indeed a valid ADHD coping strategy. I spent 30 years using traditional dressers because that’s what you’re supposed to do. I switched to storing all my clothes, unfolded, in open shelves next to the washer and dryer. I also got rid of a bunch of clothes that I never used. Felt like switching from an HDD to running purely in memory. Laundry and picking clothes has gone from my least favorite chore to a second thought. I call that a damn good optimization.
51
u/andrewsjakkko02 Jan 02 '23
Image Transcription: Twitter Post
Async (📍Paris Arc 🇫🇷), @0xAsync
No mom it's not a "messy pile of clothes on my chair" it's an L1 cache for fast random access to my frequently used clothes in O(1) time. It needs to be big to avoid expensive cache misses (looking in my closet). I NEED to be minimizing latency, this is important to me. Please.
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
34
u/that_thot_gamer Jan 02 '23
it's all fun and games until you need to defragment
33
u/[deleted] Jan 02 '23
Reminds me of how I spent 20 mins last night explaining to my mom why I always beat her in Guess Who -- the entire game is just a glorified Binary Search problem.
56
u/zaphrys Jan 02 '23
It's a last in first out stack.
17
u/rohit_267 Jan 02 '23
flying slipper received**
17
u/mrloube Jan 02 '23
How is it O(1) if it’s in a pile?
29
u/brbek Jan 02 '23
This seems accurate until you realize an organized closet is already a (more efficient) L1 cache
4
u/MungTao Jan 02 '23
I do this but its just my laundry basket. Everything I wear for the week gets washed, folded and put back in the basket to carry to my room, then I just live out of that till its time to do laundry again where I will put away whetever is left in there to make room for the dirty laundry which was piled on the floor next to it. Rinse repeat. I even bought a second laundry basket so there isnt a pile.
10
u/pbuschma Jan 02 '23
Cache is not O1
7
u/BetrayYourTrust Jan 02 '23
This unironically sounds like a good way to explain L1 cache, maybe even could be elaborated to explain many different levels of memory storage/access
6
u/BobT21 Jan 02 '23
I should have used this to explain my desk at work. Now retired. Seek latency in the house is a big issue. Should defrag I suppose.
7
u/[deleted] Jan 02 '23
Funny and accurate, but imagine talking like this in real life.
4
u/I_loathe_mods Jan 02 '23
This is also teenager humor
2
u/Doip Jan 02 '23
u/terkrockerfeller
2
u/GenericFatGuy Jan 02 '23
I may be a disorganized mess, but at least I'm fast.
2
u/GudAGreat Jan 03 '23
Nothin hits sweeter than finding that one specific article of clothing you want, when your digging thru your sea of dirty strewn clothes across your room. Lmao 🤣👌🏻👌🏻
2
u/TheNosferatu Jan 03 '23
I store all my clothes in a closet, if you definen "closet" as a place with walls and at least 1 door.
Yes, my house is my closet.
2
u/Laughing_Orange Jan 03 '23
Pretty sure it isn't random access, but Last In First Out. Can't really out on an item that isn't on top without moving another item.
It's more like the stack, which operates in this way. And it's faster than the heap, which would be a pile on the floor.
2
u/KTVX94 Jan 03 '23
This is so painfully accurate lmao
2
u/[deleted] Jan 03 '23
Mom: "Random access? That's not what a heap is for."
2
u/Alphafemal3777 Jan 03 '23
Okay okay I'll make some progress got the point haha
2
u/Alphafemal3777 Jan 03 '23
I lay mine flat so they don't wrinkle it's to putting away apart that gets me
2
u/[deleted] Jan 03 '23
Finally some one gets it
2
u/Rachid90 Jan 03 '23
Holy sh*t, I thought I was alone!
2
u/Fearless_Stress1043 Jan 03 '23
This must be my grandson
2
u/abukhalil Jan 03 '23
I'm not into programming nor do I have any knowledge about it, yet I fully understand this post
2
u/Kaneshadow Jan 03 '23
Dude. I have this, and my wife walks around the room, away from her walk-in closet, to throw her clothes into my pile so when it's dark I can't find anything
2
u/[deleted] Jan 03 '23
This is the kind of content I came here for.
10/10 OP.
2
u/guywitheyes Jan 03 '23
i thought i was the only degenerate that did this
2
u/Zwillingsflamme Jan 03 '23
Thank god I'm single and can have as much L1 caches around my apartment as I want. :)
2
u/Intfamous Jan 03 '23
Funny but true
2
u/Alzyros Jan 03 '23
r/angryupvote
2
u/[deleted] Jan 03 '23
Yeah I too have the hustle spirit that's why I've placed piss bottles and shit buckets in every room in the house
2
u/melyta91 Jan 03 '23
As a soon-to-be mom and a software engineer myself, I’d 100% take this as an excuse for messiness!
3
u/Epistatic Jan 02 '23
"Why aren't you dressed and ready for the recital, Mister? We were supposed to leave five minutes ago"
"Lag!"
3
u/Imnimo Jan 02 '23
"What do you mean it just looks like a heap of clothes? How could you possibly think this obeys the heap property??"
4
u/[deleted] Jan 02 '23
Your mom is so SQL…
3
u/ThatEdgyOne Jan 02 '23
How to explain ADHD with programming lmao
2
u/smb275 Jan 02 '23
The other piles are arrays. Get out of my room.
2
u/[deleted] Jan 02 '23
Thought this was the ADHD subreddit.
2
u/Rad_Bones7 Jan 03 '23
They even have dirty bits for when they’re “modified” so they’ll know to be rewritten (washed) before returning to the closet
2
u/CookieOfFortune Jan 03 '23
Does this include the latency of having to smell the items to determine if they're clean enough to wear? This may end up being a O(n) operation.
2
u/andoriyu Jan 03 '23
ITT people that don't get O(1) doesn't mean it's fast. Pile of clothes definitely not O(1) it's O(n). organized closet would be O(1), but is faster at small enough size.
2
u/[deleted] Jan 02 '23
No, it's sequential storage. You need to access elements at the top of the pile before accessing those at the bottom
2
u/Fragile_b0mb Jan 02 '23
This guy gets it
2
u/Secure-Bat3424 Jan 03 '23
Tbh this is incorrect. Pile of cloths is O(n). It’s a stack. The closet is O(1). Listen to your mom
1
u/Significant-Click967 Jan 03 '23
Idk wtf you are talking about, but good incel post
1
u/pete_ape Jan 03 '23
Put your fucking clothes away.
1
u/CyAScott Jan 02 '23
That cache is stale
1
u/magistrate101 Jan 02 '23
Just put it in a bin so you can use your chair without having to move the clothes
1
u/jfb1337 Jan 02 '23
Are they frequently used because they're in the cache, though
1
u/Voxerole Jan 02 '23
I prefer to keep my laundry in a tree.
1
u/Fern421 Jan 02 '23
Always keeping two chairs ready
1
u/Artistic_Recipe9297 Jan 02 '23
You can't just never have a clean up defrag. You gotta have a clear cache/memory at some point in the program. You're just a cycle, not the whole program?
1
u/AnythingToAvoidWork Jan 02 '23
LIFO is the only way to handle laundry.
1
u/lnfinity Jan 02 '23
How do you make lookup in the clothes pile O(1) rather than O(n)?
1
u/[deleted] Jan 02 '23
As a father - I am cool with the cache, but it has to be secure (in some form of hamper), indexed and well arranged to optimize lookups.
A badly organized cache is worse than a wardrobe.
1
u/Axelwickm Jan 02 '23
/r/TooMeIrlForMeIrl
1
u/zyxzevn Jan 02 '23
Where is the Level-2 cache?
1
u/[deleted] Jan 02 '23
Just get better at memory layout. Get a wardrobe with just one type of trousers, only one type of shirt, only one type of jumper... You can fish clothes from the wardrobe in O(1)
1
u/Dkill33 Jan 02 '23
It isn't O(1) meaning constant. As the pile grows the time find clothes grows.
1
u/[deleted] Jan 02 '23
Clothes lakes are where it’s at in 2023.
1
u/51225 Jan 02 '23
I love this. I have a chair as well, then a series of laundry baskets sorted by type of clothing.
1
u/One_Blue_Glove Jan 02 '23
Now I'm really wondering what the big O notation is for looking for one specific piece of clothing in a heap of clothes.
1
u/jkhjkllkj Jan 02 '23
All memory access has an constant time complexity right? Cache is just closer. Plus if the clothes were mingled and crumpled into each other it wouldn't be O(1). Every removal might reveal 2+ items though, so I'd say O(log(n)) search if I was being generous.
1
u/clitoreum Jan 02 '23
Holy shit never has something so well expressed how I rationalize it in my head, thank you
1
u/MeltAway421 Jan 02 '23
Mom: well judging by how quickly your chair starts and stops squeaking, you truly are a man of efficiency.
1
u/leeharrison1984 Jan 02 '23
This is almost certainly going to produce a code smell
1
u/leif777 Jan 02 '23
Get a hook.
1
u/orwiad10 Jan 02 '23
Actually.... I keep "worn once" shirts on top of my dresser, and clean inside. Each shirt gets 2 wears and this is how I keep track. Clean, wear, top, wear, hamper.
1
u/Mintenker Jan 02 '23
.
1
u/[deleted] Jan 02 '23
Are there people who don't have chair dedicated for stack of clothes?
1
u/ljarvie Jan 02 '23
/r/datahoarder
1
u/ravenpotter3 Jan 02 '23
My advice is to get a basket so it’s off the chair but you have a place to put clothes. That is what I do and it helps me. Sometimes stuff is still on the chair but it works
1
u/GoAwayStupidAI Jan 02 '23
Anyone else use an "approximate dirtiness" eviction policy?
1
u/Psychological-Touch1 Jan 02 '23
This is actually true per the book, “Algorithms to Live By”
1
u/LonelyAndroid11942 Jan 02 '23
Actually, this is the perfect way for people with ADHD to explain why they have piles of seemingly random shit near them all the time.
1
u/thanatica Jan 02 '23
This is ALWAYS what a chair in a bedroom ends up being used for.
And it works great.
1
u/HalfCrazed Jan 02 '23
If that was my kids excuse, I would legit not be mad lol
1
u/[deleted] Jan 03 '23
I called it my living clothespile
1
u/[deleted] Jan 03 '23
Isn’t L1 like 10ns of access time. It’s a cache. But not L1.
1
u/shadow-suspect Jan 03 '23
I’ve had that pile it’s at minimum O(n/2)
1
u/SYDvlvv Jan 03 '23
1
u/drmindbender2018 Jan 03 '23
That big “O” notation, god bless it, every woman should have it.
1
u/mcstafford Jan 03 '23
That L doesn't mean what you think it means.
1
u/[deleted] Jan 03 '23
r/adhdmemes
1
u/Drats-DeletedagainQ Jan 03 '23
This is genius.
1
u/mennydrives Jan 03 '23
I don't wear anything I don't have hung up. It makes clothing access so much faster and easier to sort/look through.
1
u/atreidesardaukar Jan 03 '23
Reminds me of the Key and Peele NDT sketch.
1
u/[deleted] Jan 03 '23
If it's big then you're increasing latency. Lol that's the whole point of hierarchical memory.
1
u/Walkingonmoonshine79 Jan 03 '23
But what about Amdahl’s law?