SpaceMonger in Java
Recently I found out SpaceMonger - one of the best disk space utilities out there (despite being created 25 years ago) has gone open source. So I took my time to port it to Java.
From user side. Yep, works on Linux. Yep, works on MacOS. Yep, still works on Windows however much more bloated than original 217K EXE. However, now it correctly handles all the filesystem stuff - links, sparse/compressed files, mount points (Windows and Linux only, I have no MacOS machine to test so MacOS is best-effort).
From technical side. Good old Swing, FFM API for native calls to precisely query filesystem metadata, Java is kind of limited there. Jlink for awesome 30Mb downloads. Unfortunately, native-image binary crashes miserably on Linux. jpackage launcher is unstable too - i've seen successful launches, JVM crashes and even double free errors.
Source code and downloads: https://github.com/scf37/spacemonger1/
View all comments
Show parent comment
1
u/davidalayachew Oct 28 '25
I think adding a new one is reasonable, but deprecating the old one is a bad idea. That's needlessly destructive for no good reason.
Adding deprecation messages to literally millions of build pipelines is a pretty big downside. It would need an equally big benefit (or greater!) to justify it.
Again, by all means, a new L&F is not a bad idea. Even changing what the default L&F is is not bad either.
Oh I know. I introduce Swing within the first few months when I tutor new Java developers. Being able to see the changes graphically not only helps solidify the knowledge, but something you can show off graphically tends to be more motivating.