Live data from Hacker News

Microsoft explains the lack of Registry backups in Windows 10

ghacks.net

221–230 of 276 posts

Re: Microsoft explains the lack of Registry backups in Windows 10

#221
post #204

Earlier quoted context omitted.

> Can someone explain why a monolithic Registry is a good idea, compared to something like macOS's .plists? Raymond Chen has a pretty good list: https://web.archive.org/web/20071128134315/http://blogs.msdn...

That link discusses the archaic .INI format versus Registry, not macOS .plist versus Registry, and already the very first point he states is outdated and irrelevant: > INI files don't support Unicode. His complaints about XML as an improvement over .INI don't make much sense either. The security of individual files and their folders can be more easily reasoned about using existing filesystem paradigms, than the nodes…

Some of the complaints in the article about INI also apply to plists.

Can you atomically write a single property of a plist, in the presence of multiple concurrent readers and writers?

Can you acl only some keys of a plist dictionary?

Having keys and values as kernel objects solves those problems.

Also worth noting that the registry is accessible from kernel mode drivers.

Re: Microsoft explains the lack of Registry backups in Windows 10

#222
post #212

Earlier quoted context omitted.

I'll hazard a guess that your Win10 machine on 1GB RAM is swapping plenty. A lightweight Linux distribution can run a reasonable desktop workload (including some web browsing!) on 1GB with zilch swap use, or on as little as 512MB with tolerable use of swap. It's a bit disappointing in a way, but Linux (and not even every Linux distro, for that matter) is the only OS where I can visibly tell that I'm running something…

No, Windows did not eat your RAM. Your "guess" would be wrong. I've installed Win 10 to 1GB VM machines many times. The OS itself takes a little over 512 of RAM in this scenario. No swapping at all if your not using any apps more than 512MB. The reason you probably are assuming Win 10 is unusable is that on your 8 or 16GB machine Windows uses free RAM to speed things up. It's is smart enough to not do this on memory…

I've had to install and run Windows Server 2016 on an XP-era desktop with 256MB RAM... oh it was painful, agonisingly painful, with constant swapping. But it worked!

Re: Microsoft explains the lack of Registry backups in Windows 10

#223
post #171

Earlier quoted context omitted.

To me the absurd thing is that this site could probably just embed ads as if they were normal website elements and not hosted by some ad CDN with lots of Javascript. As long as the ads weren't terrible, I doubt visitors would go to the effort of manually blocking the elements. But that fundamentally breaks the absolute fraud and house of cards of the entire web ad industry and make layers of ad people obsolete so it…

Not to defend the current model, but it's a lot more complicated than "just embed ads". Where do they get the ads from? How do they handle charging for them? How does the advertiser know they're not being ripped off, reaching their target demo, etc. The whole model with ads on the internet and the related tracking and profiling of everyone's activity is just terrible. But it's also going to take a lot to replace it w…

As others said the whole functionality can be implemented server side, and you can serve it as part of the HTML.

Or simply reverse proxy it and put that in an IFRAME (or use JS and lazy load it into a DIV).

The current problem is that every ad engine tracks everything they touch. Instead of tracking how well a particular ad performs on a given site. (Of course ad engines try to show ads that are relevant to the profile they built up, but since the hit rate is extremely low, most of it is just noise. Which is very annoying.)

To solve the self-reporting trust issues make the sites report each impression separately with some proxied meta data. (Which is equivalent to always reverse proxy-ing.)

Which would be a bit slower than today (because most sites are not CDNes around the world, but most ad engines are), but who cares, the megabytes of shit downloaded and running on each site slows down UX more.

Re: Microsoft explains the lack of Registry backups in Windows 10

#224

Earlier quoted context omitted.

> Duplicate menus for the same thing adds an extra mental burden. I think you'd see that Microsoft gets this. Win8 was all dupes. Initial Win10 release removed most of the dupes and they've removed more with each Win10 release. The strategy is pretty clear - incremental rewrite based on what people use.

They've been removing things? The last change I noticed was the addition of a new duplicate control panel for sound.

This means the old one is deprecated and will be eventually removed.

The problem is, for some reason the presentation is tightly coupled/tied to the data model of the settings. Otherwise there would be no need to have 2 versions of it.

Which is OOP no-no 101.

Shrug. Corporate IT.

Re: Microsoft explains the lack of Registry backups in Windows 10

#225

Earlier quoted context omitted.

This week in "HN looks at software that took thousands of devs 30 years to write and says 'eh I could've done that in a day!'"

They could rewrite it using electron?

The fancy Win 10 settings uses a WebView basically.

Re: Microsoft explains the lack of Registry backups in Windows 10

#227

Earlier quoted context omitted.

Microsoft is a big company and Windows is a big product. Is fully remaking the Control Panel really such a monumental task? The Control Panel isn't that deep. It's not as though Microsoft needs to create a UI for every advanced Group Policy setting. The new Settings app was introduced with Windows 8 in 2013. That means Microsoft has had six years to complete the transition.

> The Control Panel isn't that deep. It really, really is.

That's okay. But why isn't there a big strongly typed settings data model with automatic presentation? If it's just reg settings all the way down and triggers on them?

Re: Microsoft explains the lack of Registry backups in Windows 10

#228
post #220
post #98

Earlier quoted context omitted.

Pretty much this. I once tried adding a new ~3 MB binary, and it was rejected on effectively these grounds. Now consider that the team making these in/out decisions has a backlog of requests just like it for larger items...

Is there a team that can exterminate other teams in very medieval ways that fail to make stuff installable to non system drive? Because there should be. It's crazy that everything still wants to put stuff on C:\ ... I'm looking at you Visual Studio and Win SDK. Plus Users\Public shared goodies. And the %userprofile%\AppData. I get that every application thinks it needs to put its cache/files there, but then why can't…

> Is there a team that can exterminate other teams in very medieval ways that fail to make stuff installable to non system drive?

I'd love if that team would also take a look at Android, where you simply can't not install on the "system drive" aka. main phone flash.

Re: Microsoft explains the lack of Registry backups in Windows 10

#229

Earlier quoted context omitted.

Yes but isolated registry backups make as much sense as a full backup of a modern Linux Desktop's /etc folder. Probably not much. The config's content depends a lot on the things installed and vice-versa, even more so on Windows (unless they changed something fundamentally since 7). At least on Linux and in particular Ubuntu (Desktop) installations I aim for as little manual configuration changes as possible anyways,…

If you backup etc and home, you can pretty much restore a linux machine back to working order. Yes, you might be missing packages in a brand new install, but then the extra files are harmless. People put etc in git even: https://joeyh.name/code/etckeeper/ The registry is much more magical and it is difficult to find and remove cruft, so I suppose there's an argument against it.

There are more reasons than backups to use etckeeper; I use it in case a package upgrade mangles my config files (happened once).

Imagine the use case in reality. You accidentally rm -rf your /etc folder but you still have the git tree. /etc itself is gone, entirely. Most of your tools will seize working almost immediately, the only chances you have are having a terminal already open to a root shell. Your Virtual TTYs on other screens won't work (login uses /etc/passwd, which is gone) as well as any sudo command.

Recovery from the life system is likely impossible unless you have a root shell open and git doesn't refuse to work (it might since it checks for /etc/gitconfig, if you made any critical settings here, git stops working). Live recovery also has other issue; some apps might still be writing to or reading from /etc. They might have an open handle. Recovery will result in some processes of the same binary running with different configurations. That will be a joy to discover once it inevitably starts to corrupt the system stability.

So your only way of meaningful recovery is a live system on a USB stick. Do you have one ready to use right now? Like, not prepared in a shelf somewhere but right now is there a live linux system within your reach? If not, it's rather likely it will take a while to find it.

Once you've done that, you can bootup your computer, unlock any encrypted disks you use and install git into the live system. Then you hopefully remember how to recover a git repo using it's tree only, if not, hopefully the live disk's network works.

If recovery succeeds over git, you can reboot and pray the last checkpoint in git isn't too old. Have you changed the LUKS keys in the meantime and did you forget to checkin crypttab? Or did you change your Xorg Conf because X stopped working?

The short answer is; it might be easier and just as complex to simply reinstall the system while backing up your home folder.

Re: Microsoft explains the lack of Registry backups in Windows 10

#230
post #225

Earlier quoted context omitted.

They could rewrite it using electron?

The fancy Win 10 settings uses a WebView basically.

That's interesting. Where did you learn about this? One would think they'd just make it a UWP app.
Post reply on HN