by jkmcf · 8y ago · 0 comments
IMO, the Linux desktop problem is due partially to relying on the antiquated X Windows system, but mostly a lack of funding a good vision, e.g. Unity.
After growing up with OpenLook, then Motif, the plethora of Linux window managers, and unhappy years with Windows, I noticed most of the elegant apps were being written for OSX. I’m not sure how much of this is due to the devs or the OS/libraries, but probably both.
The solution I want is a Linux OS, a WM with a good, cohesive, long term vision, and an easy way to build apps within at vision — something like a native Electron minus the memory and CPU overhead. I believe Google could do this.
Security on Android is a joke for 80%+ of users. They can't run on the latest version of Android, because various vendors' drivers are in out-of-tree kernel patches that are un-upstreamable for non-technical reasons.
(By comparison, Chrome OS is also Linux-based, but, IIRC, it requires all shipping devices to have drivers upstreamed.)
Owning an OS with a stable device driver ABI would allow Google to fix the Android fragmentation problem, and make sure all devices stay up-to-date ala Chrome OS.
1. Zircon, the kernel, is entirely capabilities based. No users, no groups. Those are higher abstractions built on the capabilities system. This is all around a win for security from executing 3rd party drivers to building a sandboxed multi-user system, not to mention is just generally more flexible and less error prone at the kernel boundaries and internally.
2. The WM is scene based. Applications draw to a scene which the WM composites and renders. This means a single draw list is sent to the GPU for each pass instead of many apps spamming their own updates. Also you can do cool things like have objects from one app cast shadows on another app.
3. The kernel API is not a bloated mess and will not become one. Keeping the number of syscalls on the order of 10s not 100s is a design goal. You can see the commitment to this in the way the project is structured. Which brings up:
4. Testability. The project was designed with testability in mind. Not Enterprise Java mock and verify the world shit. Just good practice separation of responsibility between the different layers and enforcement of a sane unidirectional dependency relationship from lower to higher layers. Good luck testing the Linux kernel.
5. The system will update from a single image rather than relying on N parties to pull new patches into their distro and update and test everything N times before releasing to people. Again layers.
This isn't all new by any means, but it's a pretty practical approach to an OS in 2017. This isn't an "academic microkernel", and also decidedly not *nix.
Enough evangelism. Point is, the project is not solely designed to give the big G more control over a platform. Not saying that is not one goal, but technically this thing checks out.
This particular line struck me more than the rest of your (very good) post. For those of us unfamiliar, can you recommend/reference critical resources on the testability of the Linux kernel?
It was my understanding that it was almost completely technical reason, i.e., vendors write drivers that mostly work but are completely terrible from a quality perspective.
Instead, the kind of code that ends up in these driver blobs is caused by, in essence, a political problem: they simply hired bad programmers. The only way to fix that, is to demand that the driver vendors' management teams adopt higher standards for their software hires: that they fire many of the programmers they have, and hire new ones in a much more stringent process. And probably also pay them more, because that stringent process will likely choke their existing funnel out of existence.
It's much the same as, say, finding that a company is using a low-quality outsourcing firm. Would you say that there's a technical problem inside the outsourcing firm? No, you'd say that there's a management problem in the choice of outsourcing firm.
The quality of the user experience will be better as a driver crash won't bring down the device.
Are they actually doing that though? I haven't read anything along those lines, not that I have looked at Fuchsia in depth.
https://fuchsia.googlesource.com/zircon/+/HEAD/docs/ddk/over...
Treble attempts to fix fragmentation by re-standardizing and more loosely coupling between the driver layer and system APIs. We won't know if this is a solution until later and this XKCD[0] kind of explains why.
This is a real time OS from the ground up. Some have SPECULATED it might be run in a VM/container rather than directly on hardware, effectively further standardizing in a similar way to Treble but via a virtual machine's interface instead of a series of system APIs.
That would allow Google to ship Fuchsia VM/container images that could run in every single handset no matter the hardware, and therefore every Android device could be updated directly by Google at the same time.
Meaning Fuchsia may not replace Linux, it might run above Linux and therefore above Treble. That's why the two aren't mutually exclusive.
PS - This is how Microsoft's XBox One platform is engineered currently.
USB2 didn't fragment the "USB standards " space, because USB1 devices work on it.
I think you don't understand how much Google works to have security from design. Windows, Linux, OS X can all be fine "traditional" desktop systems (though the lack of a unified vision on Linux hurts it incredibly).
I see Fuchsia as a desktop system that (a) has a native, fundamental concept of graphical desktop and (b) has deep sandboxing on a level similar to Chrome, but for the entire OS, meaning -> it could become an all purpose platform for thick client applications that isn't reliant or the web and still unable to be exploited.
I suspect they are not satisfied with any of their desktop options. I doubt this has anything to do with Android or Chrome OS within the next 10 years. They just want a desktop that sucks less and they can guarantee follows their own security practices (not FIPS, but process isolation and capability injection).
I wish it had more adoption. Right now there are not a lot of apps written using it's UI guidelines/framework as most projects are worried about portability and/or have moved to Electron. It is slowly getting better though, and seems to be developing an ecosystem geared towards quality as OSX used to be: https://medium.com/elementaryos/appcenter-spotlight-2017-wra...
(I also don’t see Linux developers flocking to it in droves, which is sad because it is a lot cleaner and easier to use than Gnome and KDE, IMHO, but then again Linux has always been more about diverging choices than unity—and I don’t mean the desktop environment here).
The only thing Elementary needs to do is allow for disabling all animations, to get rid of the perceived latency issues some folk complain about...
But I digress. It isn’t an OS, and you get all the Linux legacy underneath, so it’s understandable that Fuchsia is happening. Google seems to be attempting to lay a new foundation here, and I think it’s actually a good idea to do so, although the number of third-party packages and run times they’re bringing in makes it hard to peg it as “legacy-free”.
Time will tell, I guess.
1. What hardware are you running? 2. Do you pay for apps? 3. Are you able to use this as your primary machine? 4. What kind of work do you do?
I understand the appeal of more up-to-date stuff, but with Docker I can have my stable cake and swap toppings at will :)
This is actually what I most like about Google's OS initiative. The fact we'll have ONE and ONLY ONE desktop environment and all the political infighting of the last 30 years won't matter any more.
The irony here, I think, is Pantheon actually completed this goal with a much smaller team, with no political bullshit, and is a clearly superior product.
By virtue of this fact, and by your reasoning, Gnome3 has no reason to continue to exist at all and should end development if, truly, Linux is meant to have a One True Desktop Environment (tm).
Honestly, I think the multi-user assumptions that *nix started with are largely irrelevant now. Most people don’t have multi-user needs on their devices (you can’t even do it on iOS), and even servers are moving towards single-user constructs with containers, etc. I think the an operating system built around a multi-user model will be viewed as the edge case in the coming decades rather than the norm.
Capability based security like Fuchsia has means that there is no ambient authority, or in other words no singleton resources. No fopen(), no connect(), etc. Instead, processes access everything through file-handle-like objects that are given to them by their creator, which can thus be sandboxed/mocked/revoked/etc without anything extra like containers or jails or VMs.
For example, with Linux I can choose GNOME, KDE, a selection of other desktop environments, or I can choose a simple window manager like twm and sort of roll my own environment. Or maybe I could set my system up so that it runs without a window manager and just gives me a full-screen emacs environment.
With Mac OS, for example, someone else made all of the choices and I have to live with them.
What Google is doing will probably end up getting pretty close to your vision, but I suspect that the end result will be very similar to Android - a system that's technically Linux at its core, but where all of the choices have been made for you.
God, I've just recently have to downgrade to Gnome 3.24, because the latest 3.26 version kept crashing with the segfault error few times a day.
Closely related to desktop environments are the two major UI toolkits. Why does Kate have a different file picker than Gimp? Why does LibreOffice give me yet another file picker? On MacOS and Windows, the file picker is a solved problem.
Init systems, until fairly recently when most distributions consolidated around systemd, were in a similar state.
The current Wayland vs X situation is another example - some distributions prefer Wayland and its quirks, whereas others use X and its quirks. In this case, it seems pretty clear that Wayland is the winner and we're just waiting for everything else to catch up.
Because these file pickers are implemented by two different GUI toolkits that have a different idea of how file picking should be done. This isn't anything new, Xaw programs used their own (handmade) file dialogs, Motif had its own, Java/Awt had its own, Java/Swing had its own, etc. Unless you want to force everyone use a single toolkit (which is unrealistic for several reasons) you cannot get the same behavior everywhere.
Note that this isn't specific to Linux, in Windows and probably macOS you get the same unless you stick to applications using only the native APIs and avoid any cross platform application that use Gtk, Qt, Swing or any other toolkit that cannot tie itself to a single native widget library (and TBH even with some applications that do tie themselves to Win32, they sometimes end up implementing their own file pickers anyway).
And of course file pickers tend to be the most shared of GUI elements, when it comes to the actual UIs themselves even in Windows you get a ton of different toolkits, styles, behavior, etc that totally ignore the native look and feel (assuming there is one since Win32, WinForms, WPF and UWP all behave from slightly to totally different from each other, depending which ones you compare).
> In this case, it seems pretty clear that Wayland is the winner and we're just waiting for everything else to catch up.
Wayland is very restrictive for many uses and actually lacks several useful features compared to X11 - some it pushes towards the applications in the stack (so instead of a single solution that is shared among -say- 1000 clients you get 1000 solutions), while other stuff are simply impossible (unless you are XWayland which gets special status, leading to the ironic situation that even under Wayland the X APIs provide you with more functionality :-P).
It's a difference but not necessarily a feature if, as a user, you don't have the background to make informed and safe decisions about those choices.
Also, IDK how things are on Apple computers but on Windows no two apps look similar, so the common user should not have more difficulty with diverse UI paradigms on current Unices than on Windows.
I use Linux again since this year after working almost only on OS X for 5 years or so. It has been more setup work than I wished but I'm really satisfied now. OS X just lacks the transparency and customizability that Linux easily provides.
Not sure how Fuchsia will evolve. There are more Operating Systems than Window Managers. But only 2 Operating Systems with good driver support. Their names are Linux and Windows - OS X runs only on a handful of configurations. Android's Hardware support is a mess.
Either they will support running Linux or Android drivers, or otherwise their system will be just useful for Marketing demos.
> something like a native Electron minus the memory and CPU overhead
I guess this is exactly what Chrome OS does. Or just use Firefox/Chrome on Linux. At least Firefox still has a working Marketplace...
Are you just saying that, or do you actually believe it? You think all of the phone vendors that write custom closed source drivers for Android will abandon Android if the core is no longer Linux? Seriously? And what, move to tizen? Windows phone?
Be reasonable... Google can and will move to a different core, and all of their partners will move with them.
https://fuchsia.googlesource.com/zircon/+/master/docs/syscal...
https://fuchsia.googlesource.com/zircon/+/master/docs/concep...
This is literally MacOS/Cocoa/AppKit minus Linux plus BSD
Also, the first thing I do on non-GNU/Linux systems is install GNU tools :)
This is what drove me away from the whole ecosystem, iOS included. The fact that all of their APIs are closed source headers only is a complete nightmare. I'd rather spend my time working with open Web standards than digging through some arcane Apple manual page.
They support Developer Centric Opensource, they do not support User Centric Free Software
Smartphones are one thing, but I think the recent trend of using the Linux kernel in self-driving cars is a terrible idea that we'll only start regretting 10-15 years from now.
More software (eventually) for end users? And maybe since it's a RTOS, perhaps this is also to be used by Waymo?
I keep seeing people day this, and yet: Is there any evidence at all that Google can pull off designing something like this?
[0] https://www.theregister.co.uk/2016/08/15/googles_new_os_coul...
2. It took them literally years to arrive at Material UI design, which is a vast sprawling document which is often internally inconsistent, and even Google can't adhere to it a lot of the time.
3. Their best customer-facing products have traditionally been third-party acquisitions (such as Docs). They have a very inconsistent approach to UI/UX across all of their products.
(I had more, but it's hard to concentrate on the first of January :) )
They can still pull it off, but it's definitely not a given.
And why exactly is ChromeOS not a consumer OS?
>Even after literally years of development it's still riddled with inconsistencies (visual and behaviour), performance issues, security issues etc.
You make it sound as if inconsistencies, performance and security issues are isolated to Android. Which is ridiculous considering the plethora of inconsistencies, performance issues and security exploits on other platforms. As for security issues, no Pixel has ever been hacked at a PwnToOwn event while iOS devices consistently are.
>It took them literally years to arrive at Material UI design, which is a vast sprawling document which is often internally inconsistent, and even Google can't adhere to it a lot of the time.
Have you looked at iOS recently? Apple doesn't even follow their own guidelines nor do the vast majority of the special snowflakes on the App store. And I won't even go into the disaster that is Metro/Modern or whatever they're calling it now on the Windows platform.
>Their best customer-facing products have traditionally been third-party acquisitions (such as Docs). They have a very inconsistent approach to UI/UX across all of their products.
Mac OS was a third party acquisition and iOS was created from that so you could make the argument that even iOS is the result of a third party acquisition. The fact is these products would never be as successful as they are today without the resources and money its taken to get them to this point.
>They can still pull it off, but it's definitely not a given.
It's not really a question of if they can pull it off, but rather when they'll pull it off. If nothing else Fuchsia will be the new OS used by Google internally replacing their current customized Linux distribution. And if that's the extent of Fuchsia's use then it'll still be considered a win, but that's not where it's going to end in my opinion. I see Fuchsia surpassing Linux in desktop OS market share rather quickly and eventually challenging Mac OS in the long term.
What is funny is that Linux on the desktop was closest to actually happen when KDE was happy emulating Windows rather than being its own thing, and doing so quite well on top of X.
As for X being antiquated, F that.