News for hackers. Stuff that matters.
Re:macOS Nix setup: an alternative to Homebrew (2020) by numbsafari on Tuesday July 13, 2021 @05:09PM (#27826345)
Yep. Crostini under ChromeOS operates more or less the same way. It's also why I personally am done with the homebrew approach.

I was using VMs to address the disaster that is the Windows Registry as a developer back in the early 2000s. Homebrew is such an amazing step backwards in that regard.

I have a feeling that Terminal.app is headed this direction on Mac OS, but Apple is taking their sweet time navigating the migration since everyone gets pissed off whenever they fix a security/reliability problem. Could you imagine the uproar if the next version of Mac OS worked the way ChromeOS does? (ps., there's nothing stopping you from running Firefox on ChromeOS, I've done it).

Re:macOS Nix setup: an alternative to Homebrew (2020) by Karunamon on Tuesday July 13, 2021 @08:03PM (#27827721)
Everyone gets pissed off because the Apple way of fixing security "problems" is to take more control away from the owner of the system.
Re:macOS Nix setup: an alternative to Homebrew (2020) by viraptor on Tuesday July 13, 2021 @05:33PM (#27826581)
> I was using VMs to address the disaster that is the Windows Registry

What do you mean?

Re:macOS Nix setup: an alternative to Homebrew (2020) by numbsafari on Tuesday July 13, 2021 @06:04PM (#27826847)
The general issue one runs into on Windows where you, say, install a bunch of dev tools and then, at some point, your registry gets corrupted and you find yourself needing to reinstall everything.

If you run your tools, and do your testing, inside of VMs, you can quickly "restart" from a known good state.

The Windows Registry is a lot like /etc in Unix-like environments. In either case, all that configuration can get co-mingled and corrupted and you have to start over.

VMs are a great way to solve that problem for developers.

Re:macOS Nix setup: an alternative to Homebrew (2020) by viraptor on Tuesday July 13, 2021 @06:51PM (#27827207)
Registry corruption since w2k is pretty much solved. It's a database with a WAL-style transaction log. If registry corruption is something that happens to you more than once, I'd check the storage since there's probably a lot more that's getting corrupted... Otherwise - keep full disk backups.
Re:macOS Nix setup: an alternative to Homebrew (2020) by numbsafari on Tuesday July 13, 2021 @09:33PM (#27828496)
Chucking and restarting a VM is a lot faster than dealing with full disk backups.

Registry corruption isn’t just about transactional integrity. It’s also about whether or not something got misconfigured along the way and now you have to go figure it out. Or end up trying to uninstall and reinstall a bunch of stuff.

I’d rather just be able to start over from scratch.

All this work to treat our servers like cattle, but we insist on treating our clients like pets. Your local client should be just as replaceable as your servers.

Re:macOS Nix setup: an alternative to Homebrew (2020) by easton on Tuesday July 13, 2021 @09:27PM (#27828450)
It’s not so much corruption, it’s that every app uses it a little bit differently and half of them aren’t good at cleaning it up on uninstall. You can still get the system into a bad state where a rebuild (especially if you don’t have a lot of dependencies) is easier than trying to untangle whatever app or script or driver borked something.
Re:macOS Nix setup: an alternative to Homebrew (2020) by grosswait on Tuesday July 13, 2021 @10:02PM (#27828728)
I’ve experienced registry getting bloated and it is terrible for data restoration. I can’t think of any meaningful similarity between windows registry and Unix /etc. I’ve experienced orphaned config files but no other real issues. The orphaning is intentional usually because the config file has been changed from the default.