4 ms·
Everyone always gives the Windows Registry guff. But while I think the Windows Registry has a lot of problems, it also is a step forward on the mess if incompat
by Someone1234 11y ago
Everyone always gives the Windows Registry guff. But while I think the Windows Registry has a lot of problems, it also is a step forward on the mess if incompatible configuration files found within /etc (and /usr/local/etc) on your average modern UNIX-like OS. And now you're seeing tooling, like Docker, which is specifically designed to isolate the mess around each mess-user (essentially creating a bundle of mess).
The whole filesystem layout is pretty poor, with massive amounts of inconsistencies (/bin, /sbin, /usr/bin, /usr/local/bin, /usr/local/sbin) between different software and even distributions. So you just wind up with everything scattered all over the place, and package managers exist essentially to corral the mess.
Everyone loves to talk about how UNIX is simple, and how UNIX concepts date back to at least the 1970s, and while that is true in theory, in practice the inconsistent behaviour and lack of much evolution has ultimately meant that UNIX's simplicity doesn't scale very well as the systems become more complex with more moving pieces.
But nobody is willing to touch or even criticise the mess that is modern UNIX because they know they will get massively criticised by the old guard and the die hards (see systemd, which is trying to evolve classic UNIX concepts and getting massively attacked, even death threats as a result).
Windows' file system is also a mess. But at least Microsoft are trying something with Windows RT "Apps," at least they're trying to move forward and progress. The UNIX world is in cryogenic suspension, even Apple has only hidden a lot of the mess and not really fixed much of it.
- nsajko 11y agoYou can't criticise "modern UNIX" in general based on the ugliness of the filesystem hierarchy of one system. Edit: or most systems, the point is that the ugliness is not intrinsic to unix-likes
- Someone1234 11y agoThat's fair. Which modern UNIX variant has a nice filesystem layout and has modernised etc?
- pjc50 11y agoDefine "modern" and "nice". (This sounds flippant, but is actually important as these are completely subjective. The answer may turn out to be OSX..)
- Someone1234 11y agoWho has legitimately tried to improve upon either or both? Even if the definitions are subjective the problems are easier to quantify, and thus we can say improvement has achieved if the problems are lessened.
- vezzy-fnord 11y agoGoboLinux, I suppose. Can't say I'm personally a big fan of it, but many have given it notice.
- nsajko 11y agoArchlinux has it a bit simpler than most; with /bin /sbin /usr/sbin all symlinked to /usr/bin. GoboLinux has something completely different from the FHS.
- tangent128 11y agohttp://www.gobolinux.org/ http://www.gobolinux.org/ has a fun filesystem layout experiment, at least.
- rev_bird 11y ago> see systemd, which is trying to evolve classic UNIX concepts and getting massively attacked, even death threats as a result Anyone who actually threatens someone over a Linux process should be mocked openly and probably forever.
- pjc50 11y agoThe death threats are a ridiculous disaster for the community. Things should never come to that and it's unacceptable. However, there is an important lesson about change management here. People don't like change. And people need to believe their concerns have been taken into account in order to change. And the proposed solution needs to be genuinely better for everyone's use cases.
- digi_owl 11y agoThat "threat" didn't come out of the blue. It was made as a in-joke on a IRC chat dedicated to a mobile distro that has already adopted systemd. The person making the joke did so after he and others had spent the day fixing stuff that the then latest systemd release broke in said distro. So it was more a case of "can we get some more sane leadership on this project?" than "lets rid the world of systemd!". IRC as a medium is more a conversation than anything else, and spur of the moment tasteless lines do happen.
- nevergo 11y agoThank you Mr. Astroturfer! But instead of complaining about /etc - make a package manager for the "holy" windows!
- vezzy-fnord 11y agoBut while I think the Windows Registry has a lot of problems, it also is a step forward on the mess if incompatible configuration files found within /etc (and /usr/local/etc) on your average modern UNIX-like OS. Not really. You have certain apps using the file system and others that use the highly limited key-value quasi-file system that is the Registry. There is no single point of truth at all. see systemd, which is trying to evolve classic UNIX concepts and getting massively attacked, even death threats as a result Yeah, that flame war's pretty visceral, but there's plenty of reasons systemd gets criticized (chief of which is the perception that it in fact devolves classic concepts). Windows' file system is also a mess. Windows' file system hierarchy is an enormous mess far surpassing the FHS in Unix. /etc/hosts vs C:\windows\System32\drivers\etc\hosts. Enough said. The FHS at least has some semantic meaning that is more-or-less consistent or can be easily deduced, but Windows is just a hodgepodge. The UNIX world is in cryogenic suspension No, there's many people who are trying new approaches. The problem really isn't the use of a hierarchical file system, it's the lack of semantic categorization of configuration locations.
- e40 11y ago100% agree. I've used both for decades and I far prefer /etc to the mishmash of Windows registry and ini files.
- UnoriginalGuy 11y agoYou've used both for "decades" but think ini files are a substantial part of Windows' inner workings? Microsoft migrated to XML files for non-registry configuration. There's a small handful of legitimate ini files left on Windows (largely for backwards compatibility reasons e.g. win.ini).
- dagw 11y agoWindows might not use .ini files, but lots and lots of windows apps still do.
- 11y ago
- agumonkey 11y agoThis issue, configuration, seem too fuzzy for anyone. Unix was simple in the days because it was tiny on limited hardware with a core set of developpers. Linux grew out of this in another context. Some distributions tried to get back to simplicity (slack, arch), but in the of arch, it's back to complexity imposed by current components. As someone reminded me on some web site, polkit is configured in javascript. Every system has it's own way, from the time he was designed (early 2Ks had xml, then it was js,...). The lack of core design is cause the lack of elegance. It's been said that languages suffer this too when they're not the fruit of a single mind (~BDFL). Windows registry was binary and too ad-hoc, things were unorganized and hacked too. It doesn't address the social issues of compatibility. I'd love to have a peek at VPRI 100KLoC system to see how their system was described in source.
- gtirloni 11y agoJust curious, what's VPRI? Does it have any core design in this area?
- agumonkey 11y agoViewpoint Research Institute, ~~employs~~founded by the famous Alan Kay. They carried the STEPS projects, trying to create an operating system in 100K LoC (whereas Windows is more about 10M LoC). OS with network, gui, office, reflective and programmable. http://vpri.org/html/writings.php http://vpri.org/html/writings.php (search for 'steps' reports, last from 2011)
- deleted 11y ago[deleted]
- johnchristopher 11y agoThe way I see it the whole /bin, /sbin, /usr/bin, /usr/local/bin, /usr/local/sbin and home and /var and /home/bin and friends come from the fact Unix was time shared some eons ago and designed to run on mainframe/clusters with different part of the OS living in different rooms and that carried over to Linux somehow and it made sense to map directories like that but nowadays it feels weird because we are running Debian or CentOS or BSD or whatever on a single computer that could live in the hive of a mainframe but will not. And a binary will run if the x flag is set so everything just works in the end (most of the time). Most of us are users, not sysadmin (even though reading the man page you'd think you should be one to run any distro). It's like X. It's designed and battle tested to be ran through a network but most Ubuntu users won't ever need to know it or do it. My pet peeve of mine is dotfiles used as configuration files. It means I can't have a clean home folder since data, ~/bin and settings(.) are all mixed up. I should be able to install apache in ~/bin and use .apache/ to configure it. Maybe have 3 homes ? One for each purpose (data, binaries and settings). Sigh, I suppose more intelligent people than me have thought very hard about that and it'd be a pain to implement. But frankly this is cosmetic comparing to the systemd and wayland/mir topic. Reminds me of http://sta.li/filesystem http://sta.li/filesystem Filesystem This is a editable proposal for a filesystem layout that will fit the changed principles of the OS. /bin - all executables /boot - all boot files /dev - devices /etc - system configuration /home - user directories /root - the root home /var - spool, run, log, cache /share - man pages, locales, dependencies /devel - development environment /devel/include /devel/lib /devel/src Based on the Linux assumption: /sys - sys files /proc - proc files For old style emulation: /emul - chroot for packages that are too infected Don't know if that project is still alive though.
- vezzy-fnord 11y agosta.li itself is dead, but it has an active successor in the form of Morpheus Linux.
- johnchristopher 11y agoIs it the same people behind Morpheus ?
- 11y ago
- serve_yay 11y agoUgh, the registry was etc but strictly worse. You must use a specialized, and might I add insanely crappy, tool to edit it, it can be corrupted, there is only one so you can't swap out a registry with certain features for another, the list goes on. The registry deserves every bit of guff it ever got.
- stephengillie 11y agoI've got multiple Registry editing tools: Regedit - which has an OK UI. Powershell - https://technet.microsoft.com/en-us/library/dd315270.aspx https://technet.microsoft.com/en-us/library/dd315270.aspx WMI - https://msdn.microsoft.com/en-us/library/aa394600(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/aa394600(v=vs.85).a... And different Hives live in different places. The user Hives live in each user's profile folder, so that part gets swapped out depending on whose security context you're in.
- rodgerd 11y ago> Ugh, the registry was etc but strictly worse. Really? On which versions of Windows does the registry include executables critical to system function?
- evol262 11y agoOn which UNIX-like does /etc contain executables critical to system function?
- PhantomGremlin 11y agoDon't know if they've changed it since OpenBSD 5.2, but /etc is very critical there. E.g. man page synopsys for just two programs: /etc/rc - command scripts for system startup /etc/netstart - command script for network startup There are countless others there. /etc/daily, /etc/weekly, etc (pun intended).
- rodgerd 11y agoSunOS certainly did, Solaris does, AIX has at various points... probably the majority of Unix variants, in fact.
- rosser 11y agoNo. A binary blob as a configuration store is unambiguously wrong. The difference between all the bins and all the sbins is clearly explained in the Linux Filesystem Hierarchy Standard. It's not Linux's (or UNIX's) fault if someone doesn't read or follow that.
- wvenable 11y agoI don't see why a strongly typed binary blob is worse than a mess of untyped randomly formatted configuration files. There might be an argument to be made but it's clearly not unambiguously wrong.
- smorrow 11y agodiff
- wvenable 11y agoYou can diff registry files and any subtree. You could diff the entire system if you wanted to. Yes, you do have to export to files but you still get one consistent format no matter how deep you want to go.
- beachstartup 11y agobecause when something gets corrupted, the damage is limited.
- pjc50 11y agoStrongly typed as long as your type is one of this very short list: https://msdn.microsoft.com/en-us/library/windows/desktop/bb773476(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/desktop/bb7... In practice, almost everything is binary, string or DWORD. The world would have been a very different place if the registy had supported comment fields and/or online help.
- wallyhs 11y agoHere is a reason: You can view the configuration files and logs of a damaged system by mounting its disk in another system and using any old text editor. There is no need to install special tools.
- sarnowski 11y agoNot all modern OS have that directory mess: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man7/hier.7?query=hier&sec=7 http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man7/... https://www.freebsd.org/cgi/man.cgi?query=hier&sektion=7 https://www.freebsd.org/cgi/man.cgi?query=hier&sektion=7
- morsch 11y agoLooks pretty much the same as in Linux?
- deleted 11y ago[deleted]
- Shorel 11y agoNo, Windows RT "Apps" are nothing about progress. It's simply MS trying to piggyback in the profitability of the Google Play and Apple stores. There are many software packages that can install without mixing stuff, just check the option of USB install, or standalone install. In fact, check all the applications in http://portableapps.com/ http://portableapps.com/ They have NOTHING to do with WinRT.