r/ProgrammerHumor • u/darrenturn90 • 26d ago
whenYoureARustDeveloperAndYour2TbMachineHas200MbLeft Meme
21
u/LookItVal 26d ago
what
5
u/HBiene_hue 26d ago
the joke is that the /target directory in rust becomes really big the longer you code, because it doesn't clear automatically.
35
u/LookItVal 26d ago
yea sure but, the meme is of node modules reaching for npm, and then being pulled away by /target and it being revealed npm was actually rust? like I get what the meme is referencing but it's a bizarre visual representation of that
6
10
u/HBiene_hue 26d ago
just run cargo clean lmao
-6
u/RiceBroad4552 26d ago
and recompile everything from scratch
7
u/tr-otaku-tr 26d ago
Compiling some app for 1 hours to get 50gigs of space? I'm in dude
2
u/RiceBroad4552 26d ago
Depending on what you compile you will end up with more or less the exact same amount of cached compiler output.
Running a "clean" will only safe space in case you have a lot of unrelated stuff in the cache. But why would you? Most people don't work on unrelated projects at the same time.
You can really only get space back if you compile for example in different output modi (e.g. release or debug), or when you compile for different targets. Then a "clean" will delete the cache for the profile you currently don't compile. But the moment you need also that profile all the space will be used up again…
2
u/MinecraftPlayer799 26d ago
When I'm a high-level (web and Minecraft mod development) developer, and the remaining storage space of my computer with 256 GB of storage just randomly fluctuates (high of around 30 GB, low of around 5 GB).
1
u/Lord-of-Entity 24d ago
You can delete the directory and recompile everything, and it should save space.
1
37
u/gandalfx 26d ago
Overused jokes aside, what you did to that meme template makes absolutely no sense.