15
quartz OS: Simplicity and Compatibility Guarantees
(quartz-os.org)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I re-read my comment and it clearly says the wrong space, I'm not trying to say you're wrong. I just want some details of how it works.
Thank you for this answer. I'm looking for way more detail, but I suspect that won't be forthcoming.
The reason for building quartz is pretty simple. If you build an app for a Linux desktop today, a system update can change something the app depends on even though the app itself hasn’t changed. Bundling libraries helps, but the app still has to talk to the operating system for things like opening a file the user picked or showing a notification. quartz wants to make that boundary explicit. If you build against an interface quartz publishes, you should be able to keep running the same binary across system updates. The way to prove that is to save the binary and actually run it on later releases. Recompiling it every time would miss the point.
quartz uses the Linux kernel and aims to own a small, stable userspace around it. mica is the planned C library. It covers the basic runtime that C programs need. libquartz is separate and gives apps a way to ask for OS services. Keeping those separate matters. Changing how the desktop handles notifications shouldn’t require changing the C runtime, and an app that wants to start a service shouldn’t need to know how the init system starts processes. garnet starts and supervises them. quartz-core handles the system-facing decisions exposed to apps. agate provides the everyday command-line tools, including the newer Linux storage tools.
The base ships as a unit. The desktop, init, C library, and system services are part of the same release. An update stages a new read-only Btrfs deployment alongside the working one, then tries it on the next boot. The VM prototype keeps track of which release was tried and which one was accepted. If the trial fails, the next boot goes back to the accepted base. Your home directory lives on a separate writable subvolume, so switching the base leaves your files and installed apps where they were. There’s an important wrinkle here. If a newer app changes the format of its saved data, switching the OS back won’t undo that change. Writable data still needs its own migration rules.
Apps come in
.gemfiles. Think of an AppImage with a small Lisp manifest that says what the app is, what version it is, and which executable to run. The app brings its private libraries and uses the interfaces supplied by the base. You can open a gem where it is, or install it into~/Applications. Installing registers it with quartz. GNOME reads that registry through a quartz adapter so the app can appear in the launcher. A download from vein (the remote repository server software) ends up going through the same local install code. The difference is what happens before installation. The client checks the catalog’s signature against a trusted key, verifies the downloaded file’s hash, and checks that the bundle really contains the app and version you requested. System components have a separate update path because replacing a desktop or init system changes the base deployment.GNOME is the reference desktop. We track upstream and keep quartz changes in patch sets so we can see exactly what we changed and reapply it to new releases. Files is a good example of why this takes work. Its executable pulled in systemd through a mount library used by GIO, and udev through optional GTK features. We rebuilt those private dependencies with the relevant features disabled and tested the resulting Files gem. Settings and Parental Controls are harder because some of their dependencies answer questions about who is logged in and who can change another person’s settings. You can drop an optional media backend from a file manager. You have to replace an authorization check with something that actually makes and enforces the right decision.
That’s where corundum comes in. The app asks through libquartz, and the base checks who made the request using credentials supplied by the kernel. One small piece of this works already. In a test VM, an administrator approved a specific process to change the running hostname once. The write succeeded, and the next attempt was denied. The desktop prompts and parental-control writes still use the preview’s existing policy. Likewise, TinyScheme already runs as the quartz shell, and the app and rollback workflows have been tested, but mica and the full compatibility contract are still being built. What works today is enough to test parts of the idea. The long-term promise depends on doing those tests across real releases.