this post was submitted on 15 Jan 2025
340 points (98.6% liked)

Linux

8433 readers
471 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

Love to see upgrades with a negative net size lmao. Software should get more optimized with time, not more bloated. Oop, just got the gnome console popup notification saying that my install command finished running, sweet -- it took as long as making this post

top 31 comments
sorted by: hot top controversial new old
[–] wasabi@feddit.org 11 points 2 hours ago (1 children)

Of you don't delete your package cache it will still use more disk space, regardless of this output.

[–] Hiro8811@lemmy.world 2 points 5 minutes ago* (last edited 4 minutes ago)

paccache -r

There done

[–] kryptonidas@lemmings.world 39 points 6 hours ago* (last edited 6 hours ago) (3 children)

Back in the day there was a Mac OS update (Snow Leopard) that took gigabytes off. They dropped support for PowerPC CPUs. So the compiled binaries basically got slashed in half.

The goals of Snow Leopard were improved performance, greater efficiency and the reduction of its overall memory footprint, unlike previous versions of Mac OS X which focused more on new features. Apple famously marketed Snow Leopard as having "zero new features".[13] Its name signified its goal to be a refinement of the previous OS X version, Leopard.

https://en.m.wikipedia.org/wiki/Mac_OS_X_Snow_Leopard

[–] Duamerthrax@lemmy.world 2 points 10 minutes ago

God, Snow Leopard was peak Apple.

[–] captain_aggravated@sh.itjust.works 6 points 3 hours ago (4 children)

Wait they pushed binaries for both architectures to everyone?

[–] frazorth@feddit.uk 6 points 1 hour ago

Yes. Thats how they made everything seem magical to the end user.

Two architectures, and two binaries in the single package.

All those programs that only had binaries in the old architecture ran through the emulator Rosetta.

Once the old architecture had been deprecated long enough, they dropped the PPC compilation in the binaries.

There was the technique to regain disk space by deleting the unused architecture binaries from the bundles.

[–] boonhet@lemm.ee 2 points 2 hours ago (1 children)

I don't know if that's what they did for the PowerPC -> Intel switch, but now with the Intel -> ARM switch, Xcode compiler tools spit out dual arch binaries, so you can run the same binary natively on x86 or ARM. Things that aren't compiled that way yet and only have x86 binaries, will be run using Rosetta 2.

Doesn't matter much to the end user though. It's all just pretty seamless if you're on an ARM Mac and idk if there's much or any problems on x86 Macs yet regarding binary compatibility. I actually doubt there is.

[–] frazorth@feddit.uk 2 points 1 hour ago

It was exactly the same.

Its why the Intel -> Arm is called Rosetta 2 and not Rosetta.

[–] kryptonidas@lemmings.world 1 points 1 hour ago

That OS was the last of Apple to come on optical media. So, no pushing. Buying physically.

[–] rhombus@sh.itjust.works 1 points 2 hours ago (1 children)

It probably made the downloaded binary smaller, but the actual instal size for x86 machines probably didn’t change much.

[–] captain_aggravated@sh.itjust.works 1 points 2 hours ago (1 children)

...what?

We're talking about the end of the transitional period from PowerPC (the G3 and G4 iMacs and iBooks) to the Intel architecture (about the time they went to the Macbook nomenclature). If I read this right, they didn't push separate PowerPC and Intel architecture versions, you'd just get MacOS (or in those days, OSX) and it would ship with both binaries. Which, compiled binaries would be quite different for different architectures, data files, graphics, interpreted code etc. would be similar but pre-compiled binaries would be different.

I know for awhile a lot of applications were only available for PowerPC, so they did the Rosetta translation layer, which is a reason why you'd find PowerPC binaries on an Intel system. They did exactly that again with the transition from x86 to ARM.

[–] boonhet@lemm.ee 1 points 21 minutes ago* (last edited 20 minutes ago)

I already responded to you in another comment, but:

If I read this right, they didn’t push separate PowerPC and Intel architecture versions, you’d just get MacOS (or in those days, OSX) and it would ship with both binaries.

No, it's even crazier than that. You didn't get separate PowerPC and Intel binaries either. You got fat binaries that had machine code for both architectures!

[–] boonhet@lemm.ee 14 points 4 hours ago (1 children)

Might happen again one day if they decide to drop x86 support. Which they likely will.

[–] Estebiu@lemmy.dbzer0.com 1 points 4 hours ago (1 children)
[–] boonhet@lemm.ee 5 points 2 hours ago

Well they haven't made a single x86 machine in what, 4 or 5 years?

The 2024 version of MacOS doesn't support anything older than 2017 and for most models it's more like 2018-2020

I'd say in 2-3 years they'll drop support for all x86 machines, at which point first party binaries can stop shipping with x86 code. Then eventually, several years later, they'll drop support for x86 emulation via Rosetta 2, so that's another thing they can drop from the OS. And once xcode stops giving you those fat dual-arch binaries, other software will also take a bit less space.

[–] boonhet@lemm.ee 11 points 4 hours ago

Decided to try this out on Tumbleweed. I last updated yesterday. Today I have 4 packages to upgrade and doing so will drop ruby 3.3. Looks like I also have Ruby 3.4 installed so likely I had a package depending on 3.3 and another on 3.4 and now the 3.3 has moved to 3.4. I regained a whopping 30 MB disk space!

[–] Rooty@lemmy.world 40 points 6 hours ago* (last edited 6 hours ago) (1 children)

OS is bloat, if you're not shifting CPU registers by hand are you even a Linux user?

spoilerNo, because Linux is a kernel/OS, and OS is bloat

[–] sir_pronoun@lemmy.world 13 points 6 hours ago (2 children)

Exactly, you boot the kernel, then get out the electron microscope to twiddle those bits (which is why Linux users are perverts)

[–] communism@lemmy.ml 1 points 9 minutes ago

electron microscope

Bloat, why should my microscope be running an entire chromium browser?

[–] Zidane@programming.dev 3 points 4 hours ago* (last edited 4 hours ago)

I'd diddle a bit

Ninja Edit: wait...

[–] Acoustic@lemm.ee 15 points 6 hours ago (2 children)

I'm not a programmer by any means, but I'm guessing, they are just removing old redundant features and code, but I could be very wrong here.

[–] lime@feddit.nu 14 points 5 hours ago (1 children)

a new version of a program can also move to a different set of dependencies that is shared with another program, so you don't need to keep both around.

[–] patatahooligan@lemmy.world 9 points 3 hours ago (1 children)

This wouldn't appear like this when upgrading the system with pacman. pacman does not automatically remove orphaned dependencies during upgrades. You have to query for them and remove them explicitly as a separate operation afterwards. So in the OP what we're seeing is the new versions of packages themselves getting smaller.

[–] lime@feddit.nu 4 points 3 hours ago

Removing some deprecated old library or just good old optimization.

[–] observantTrapezium@lemmy.ca 56 points 9 hours ago (1 children)

I'm so used to it I never realized it's unusual.

[–] haui_lemmy@lemmy.giftedmc.com 34 points 9 hours ago (1 children)

Exactly. Same here. The fact that „linux“ isnt a product that has to have the shiny new thing after every update and has no deadlines to hold and no manager to keep happy makes it a fundamentally different thing which actually is very much in line with efficiency ideas, the idea of progress and evolution as a whole. At least thats how I view it.

[–] not_woody_shaw@lemmy.world 12 points 7 hours ago (2 children)

The shiny new thing can be better code to do the same thing.

[–] towerful@programming.dev 7 points 5 hours ago

IMO, that's the shiniest thing

[–] haui_lemmy@lemmy.giftedmc.com 0 points 5 hours ago

If you‘re a cave dweller like me that stares at code for pleasure, yes.

[–] slazer2au@lemmy.world 7 points 6 hours ago

I keep forgetting to run apt autoremove to save even more space.