News for hackers. Stuff that matters.
Re:macOS keeps a huge wallpapers cache by christoph on Tuesday September 27, 2022 @08:10PM (#33002808)
I highly recommend the free app DevCleaner - https://apps.apple.com/us/app/devcleaner-for-xcode/id1388020...

I use it almost weekly to clear out the tens of gigabytes of garbage Xcode regularly generates.

Re:macOS keeps a huge wallpapers cache by metadat on Tuesday September 27, 2022 @08:14PM (#33002832)
Should not be necessary. It's just wrong to have a whole app dedicated to cleaning up after Apple's Lazy Ass.
Re:macOS keeps a huge wallpapers cache by astrange on Wednesday September 28, 2022 @12:53AM (#33004365)
It isn't necessary, caches are deleted automatically. You just don't have low enough disk space to need it deleted.

(This doesn't necessarily apply to apps who don't put things in Caches folders…)

Re:macOS keeps a huge wallpapers cache by capableweb on Wednesday September 28, 2022 @05:05AM (#33005926)
Except Xcode can't possibly know before hand when I do need the space back. Let's say I have 10GB free, so Xcode says "Well, you just don't have low enough disk space to need it deleted" while I'm trying to install Premiere Pro that requires 30GB of space (just an example), but I can't, because I don't have enough disk space.

How about not trying to guess when the user needs the space?

Re:macOS keeps a huge wallpapers cache by MereInterest on Wednesday September 28, 2022 @07:27AM (#33006718)
This is the same problem I have with the "unused RAM is wasted RAM" argument. So long as a system has a maximum of one application using this strategy, it works. As soon as you have two independent programs each of which try to cache as much as possible, it falls apart.

For a while, the browser could reasonably assume that it was the only application that used this strategy, and it was a true assumption. Now that native executables are being replaced by web-based applications, every program is trying to maximize its RAM usage, with predictable results.

Re:macOS keeps a huge wallpapers cache by astrange on Wednesday September 28, 2022 @05:05PM (#33013247)
It works fine if they tell the VM that its cache regions are purgeable, so they just go away under pressure instead of getting swapped out.

Of course getting swapped out is usually fine too.

Huge memory usage is more likely because they don’t know how to check for memory leaks, not because they’re trying to use it.

Re:macOS keeps a huge wallpapers cache by astrange on Wednesday September 28, 2022 @05:02PM (#33013213)
How’s the “I can’t” work? If the installer is telling you it can’t that just means it’s checking for free disk space the wrong way.
Re:macOS keeps a huge wallpapers cache by solarmist on Wednesday September 28, 2022 @10:09PM (#33015576)
The fact there’s a right way and wrong way to check free disk space is a problem in the first place.
Re:macOS keeps a huge wallpapers cache by astrange on Thursday September 29, 2022 @01:53AM (#33016937)
Pretty classic problem.

https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use

Similar assumptions about filesystems fail if they do data compression or dedupe files - you can easily overestimate how much space something is taking.

Re:macOS keeps a huge wallpapers cache by solarmist on Friday September 30, 2022 @04:43PM (#33040543)
Ah. Ok that makes more sense.
Re:macOS keeps a huge wallpapers cache by sys_64738 on Tuesday September 27, 2022 @10:17PM (#33003546)
There is a tool in the MacOS that will find large sized apps and allow you to delete them.
Re:macOS keeps a huge wallpapers cache by happymellon on Wednesday September 28, 2022 @12:29AM (#33004259)
But we already know what the large tool is, and it can be a dependency for other languages when using natively compiled libraries.
Re:macOS keeps a huge wallpapers cache by zaphirplane on Wednesday September 28, 2022 @02:51AM (#33004955)
What is the tool ?
Re:macOS keeps a huge wallpapers cache by tempodox on Wednesday September 28, 2022 @04:45AM (#33005751)
Apple Menu > About This Mac > Storage > (Volume Name) > [Manage...]
Re:macOS keeps a huge wallpapers cache by twosdayz on Wednesday September 28, 2022 @09:33AM (#33007715)
DaisyDisk is one of them
Re:macOS keeps a huge wallpapers cache by saagarjha on Tuesday September 27, 2022 @08:26PM (#33002902)
Apple has added a thing in Ventura (?) to list and let you remove these files.
Re:macOS keeps a huge wallpapers cache by sprkwd on Wednesday September 28, 2022 @02:30AM (#33004850)
Does it have a name?
Re:macOS keeps a huge wallpapers cache by tempodox on Wednesday September 28, 2022 @04:48AM (#33005788)
Apple Menu > About This Mac > Storage > (Volume Name) > [Manage...]
Re:macOS keeps a huge wallpapers cache by vladvasiliu on Wednesday September 28, 2022 @02:56AM (#33004981)
I don't know the name, but IIRC it's something like "disk usage". It resembles roughly the "storage" panel on iOS.
Re:macOS keeps a huge wallpapers cache by _rs on Wednesday September 28, 2022 @06:33AM (#33006442)
On macOS 12 it's part of the System Information app at least and called "Storage Management"
Re:macOS keeps a huge wallpapers cache by vladvasiliu on Wednesday September 28, 2022 @06:51AM (#33006543)
I'm pretty sure it was there before, my 2013 mbp is too old to run the latest version, and I've seen it there, too.
Re:macOS keeps a huge wallpapers cache by sys_64738 on Tuesday September 27, 2022 @10:18PM (#33003549)
It was in Monterey too and maybe earlier.
Re:macOS keeps a huge wallpapers cache by fotta on Tuesday September 27, 2022 @11:52PM (#33004052)
At least since Yosemite. I used it a lot in college when I was using a 128gb MacBook.
Re:macOS keeps a huge wallpapers cache by saagarjha on Wednesday September 28, 2022 @05:26AM (#33006063)
The developer section is definitely newer than that…
Re:macOS keeps a huge wallpapers cache by hugi on Wednesday September 28, 2022 @05:22AM (#33006037)
Holy crap. Thank you for that pointer and my 92GBs of newly free space.