r/linux • Gentoo Foundation President • Jun 01 '18

AMA | Mostly over We are Gentoo Developers, AMA

The following developers are participating, ask us anything!

Edit: I think we are about done, while responses may trickle in for a while we are not actively watching.

1.0k Upvotes

720 comments sorted by

View all comments

Show parent comment

7

u/ryao Gentoo ZFS maintainer Jun 01 '18

There is no single best distribution/OS. There are different roles that different ones do better than others, such as phone/tablet, desktop, laptop, server, router, embedded, etcetera. There are also varying levels of software support/compatibility, which affect how good an OS is for a given application.

Anyway, here is my list of non-Linux operating systems that I consider to be well designed and are suited for roles as desktops:

  • OpenIndiana (Illumos)
  • FreeBSD (BSD)
  • Mac OS X (CM Mach)

I will probably upset some people for listing Mac OS X, but I consider Mac OS X to be a well designed OS. Large portions of it are also open source, although that is not well known among Linux users:

https://opensource.apple.com

Any complaints that people have about Mac OS X pale in comparison to what can be said about a certain OS from a company in Redmond, Washington.

2

u/ampetrosillo Jun 03 '18

Actually Windows itself is not necessarily a bad operating system. It's newer and more modern than all the Unix(-like) OSs and it has certain things going that can be actual improvements. Compared to macOS, Windows tends to have higher performance (about on par with Linux), according to most benchmarks, and a well-maintained Windows installation can be adequately secure (obviously, it is much more exposed to malware). Windows 7 Professional is still supported for another couple of years and it's a good OS, quite polished, sufficiently stable and not too heavy (although I must say that even current Linux distributions can be leaner than Win7, a 10-year-old OS, even using a modern, full-featured DE such as KDE). I still feel more at home on Linux, though. And, even without counting the cost of a Windows licence, the simple fact that Windows licences are so restrictive is laughable. (If you lose or damage your Windows disk you may have to resort to piracy if you ever want to reinstall it, even though your computer has a licence).

1

u/ryao Gentoo ZFS maintainer Jun 03 '18

Just to name a few things that occur to me:

  • Windows’s filesystem is horribly fragmentation prone.
  • Their NTFS filesystem driver is horribly designed according to a Microsoft employee’s rant.
  • You cannot power cycle a running Windows system without needing to chkdsk.exe to repair the filesystem.
  • Microsoft is the company whose employees implemented stack smashing protection by placing a canary on the stack, such that stack smashing protection was worthless. I am not sure if they improved it since then.
  • The Windows ASLR randomization had an 8-bit entropy as of last check, which was nearly worthless.
  • Microsoft has refused to fix security bugs on the basis that fixing them breaks compatibility.
  • Windows 10 itself is spyware thanks to all of the telemetry hooks that require dozens of settings changed to mostly disable.
  • Microsoft reinvents the wheel continuously in Windows, creating redundant APIs that do the same thing because they are unable to figure out how to improve the existing ones. They also made powershell because they couldn’t improve cmd.exe.
  • There is no package manager and old software leaves junk around the system.
  • The lack of central package management exposes users to vulnerabilities from third party shared libraries being duplicated by every application using them. This means every vulnerability in a third party library requires numerous patches, rather than just 1.
  • Its userland is horrendously bloated.
  • It has poor support for old hardware.
  • It is an energy hog.
  • The registry is an unmanageable mess. Avoiding cruft from accumulating in it over time from updates is impossible and the only way anyone can really clean it is to reinstall.
  • you need a special version of Windows just to install to a USB stick.

It has improved in some ways over the years (hence why I am not talking about how it cannot tolerate significant hardware changes), but I really do not consider it to be a good OS.

2

u/ampetrosillo Jun 03 '18

I'm not going to respond to every point of your list, also because I have no desire to defend Microsoft frankly, but I must say that:

"Linux" is more of a energy hog in actual reality, in fact battery life on a laptop is generally significantly better on Windows - the fault mostly lies with the drivers and not the OS itself, although some DEs (GNOME for example) are likely to be less efficient for example;

The fact that the registry gradually becomes filled with cruft has very little actual impact and the fact that a "dirty" registry causes instability is largely a myth;

The lack of a central repository (before the App Store, which is not curated in the sense of a typical Linux repo) and the fact that all apps are basically either statically linked or bring their own libraries is a double-edged sword: not having to depend on a curated repo means that you can be on the bleeding edge, and yet all applications can still be centrally managed (you can uninstall most Win32 applications from the Control Panel), and the applications each handling their dependencies (mostly) has the advantage that a vulnerability is not necessarily spread to the whole system but may be confined to survive apps, and distributing the software becomes much easier too because of the added control. Snaps and Flatpak in a way try to bring the benefits of this to Linux, with sandboxing etc. (basically like UWP apps, without the API change).

Filesystems on Linux are certainly better but they're deficient too, and they could be better, filesystem changes are a "once-in-a-generation" event on commercial systems and it all depends on which part of the cycle you are in. Apple's macOS (and iOS) had a much worse filesystem until it didn't.

Powershell is not a bad shell, the fact that is separate from cmd.exe (which is a direct descendant to COMMAND.COM really) is irrelevant. Windows cannot iterate like you can on Linux because Microsoft has chosen to maintain backwards binary compatibility, mostly, with software decades old (not always this works, there are some notable examples, but considering the large number of applications - impossible to count really, considering all the ad hoc business management solutions for example - it's a very large undertaking anyway). Windows's deficiencies stem often from the fact that software is not open source and, once abandoned, it crystallizes, so it's "cultural" too.

Uninstalling on Linux can be dirty, especially when you don't rely on a repo for certain software, because you compile from source downloaded from the internet for example, and sometimes it can be worse because keeping track of where an application keeps its files can become a bit of a nightmare, or at least a hassle (some in /usr/local/whatever, some in /etc, some in dotfiles and dotfolders in your home, sometimes they install in /opt or /run, etc.).

1

u/cbmuser Debian / openSUSE / OpenJDK Dev Jun 01 '18

I don’t think FreeBSD or Illumos are good desktop operating systems - might be better on the server though. There are hardly any FreeBSD or even Illumos desktop users, are there?

I agree on macOS though. Although the quality went a bit down hill since 10.6 I think.

1

u/ryao Gentoo ZFS maintainer Jun 01 '18

Excluding Linux distributions and Mac OS X, is there anything else that is both well designed and suitable for use as a desktop aside from FreeBSD and Illumos? I don’t see any better options.