13 ms·
A dream of an ultimate OS (1995)
- ridaj 7y agoAt "ultimate", I thought the author was going to aim for consciousness... But what, databases?!
- blablabla123 7y agoActually Microsoft tried this idea themselves with WinFS. It was planned for Vista but eventually the project was stopped because it was too much effort. I could imagine this to be really useful if it was possible to add arbitrary custom attributes.
- echelon 7y agoDoes anyone have the story on why this project was actually halted? It reportedly sounded like it would have been a giant leap at the time, had it actually landed.
- krylon 7y agohttps://www.reddit.com/r/programming/comments/1svf88/why_winfs_died_long/ https://www.reddit.com/r/programming/comments/1svf88/why_win...
- iso-8859-1 7y agoThat discussion doesn't contain any high quality posts, why not link the actual article? http://hal2020.com/2013/02/14/winfs-integratedunified-storage-and-microsoft-part-1/ http://hal2020.com/2013/02/14/winfs-integratedunified-storag...
- otabdeveloper4 7y agoProbably because it was a dumb idea. There's no sense storing videos, baby photos and "quarterly report new (2) backup newest 08.2019_john.xlsx" in a database.
- BlackRing 7y agoIf the filesystem itself was modeled after a database (which it can be argued it is, somewhat), it's not much of a stretch for WinFS to have been a thing. I was looking forward to seeing it in action based on reports of what it was.
- simonh 7y agoFile systems are databases in a small way. They use b-trees and such, but they don't enforce a rigorous global type system, don't enforce a table structure because everything has to have a schema, don't have the overhead of a query language to interpret every file access command, didn't ensure that all file accesses be ACID compliant, etc. WinFS imposed all of those things and the associated overheads and much, much more every time you accessed anything.
- simonh 7y agoIt was very slow and resource hungry, and also very time consuming to develop things on. Imagine if you were only allowed to write or run applications that ran on top of Oracle. Even if you try to write a program that works on text files, those text files are stored as blobs in an Oracle database.
- regularfry 7y agoIsn't that the sort of problem you solve once, though? If you want a "this is just a stream of characters I can do POSIXy things to" interface, that's a library with fread(3) et al in the front, and a query for a single field in the database at the back.
- skissane 7y ago> Even if you try to write a program that works on text files, those text files are stored as blobs in an Oracle database. Ever heard of Oracle Database Filesystem (DBFS)? https://docs.oracle.com/en/database/oracle/oracle-database/19/adlob/introducing-database-file-system.html https://docs.oracle.com/en/database/oracle/oracle-database/1...
- alexisread 7y agoLikewise. TBH this has all been done with NewtonOS: http://preserve.mactech.com/articles/mactech/Vol.09/09.11/NewtonToolkit/index.html http://preserve.mactech.com/articles/mactech/Vol.09/09.11/Ne... It uses soup unions to manage removable storage, and worked really well for the 512k memory available. These days I'd recommend an embedded SQLite database for program configuration and data - somewhat standard, easily recoverable, backups are easy, uniform access from a program's API etc. Lastly, I'd say the ultimate OS would have a bit more than this surely - minimal formally verified TCB, Arrow datastructures, Managed (but not GC'd) memory, native scripting language that blurs the distinction between users and developers, fully scalable auto-generative but skinnable UI, just to name a few. I guess the trick with all of this is a suitable language which forms the OS base (think LISP OSes, Micropython, Squeak, AOS, NewtonOS), you get that correct and the rest can be layered on top.
- themodelplumber 7y agoThose would be really cool improvements to see. And, in my experience, wise are those who have already built personal tooling to get some of this level of convenience functionality working for them. I'm still blown away by what can be accomplished by system scripts or simple apps _just_ in the realm of personal productivity.
- throwaway8941 7y ago(1995) <META NAME="Date-Revision-yyyymmdd" CONTENT="19971128"> <META NAME="Date-Creation-yyyymmdd" CONTENT="19950521">
- dang 7y agoThanks!
- leoc 7y agoOld comments on an old post about basically the same topic: https://news.ycombinator.com/item?id=14542595 https://news.ycombinator.com/item?id=14542595
- mirimir 7y ago> But it does not have to be this way. If a database engine is implemented as a core system service, along with simple tools to browse and modify database records, the gordian knot of system configuration files disappears. MacOS comes very close to this ideal, with ResEdit as this universal database editor. Or AS/400, which is more or less a SQL database.
- tasogare 7y agoOr Windows with the registry. Wait...
- atoav 7y agoBut is ”uses a database” really the same thing as “based on a database for everything” as outlined in the article’s vision?
- userbinator 7y agoThe registry is basically a hierarchical filesystem with some tiny size limits.
- skissane 7y ago> Or AS/400, which is more or less a SQL database. People keep on saying that, but how really true is it? Many operating systems come with bundled relational databases–e.g. most Linux distributions come with more than one relational database implementation bundled. Does that make Linux "more or less a SQL database"? How deeply integrated is DB2/400 into the OS/400 kernel (or equivalent term, such as "System Licensed Internal Code")? There is a paucity of public information about the actual nature or depth of this integration. I think an OS with a truly deeply integrated SQL database would expose things like a table/view of all files in the filesystem, a view of running OS processes, etc. As far as I am aware, OS/400 (or "IBM i" as they are calling it nowadays), doesn't have any such features.
- mirimir 7y agoPeople who used it characterized it that way.
- temptemptemp111 7y agoTempleOS ;)
- jotm 7y agoMy ultimate OS is Linux, but it's rock stable, supports all hardware and runs OSX and Windows software natively. Heh
- omeid2 7y agoYou can already run a substential amount of Windows software natively on Linux with Wine, there is also Darling working on bringing MacOS to linux. With that being said, my ultimate distro is Linux with a Desktop Environment that is less braindead than Gnome. https://www.winehq.org/ https://www.winehq.org/ https://www.darlinghq.org/ https://www.darlinghq.org/
- mcv 7y agoMy ultimate distro is very similar to Linux but with a desktop environment similar to OS X, but more open and configurable.
- omeid2 7y agoElementryOS is heading that way, if you haven't heard of it yet. But the ecosystem is no where near close to MacOS. Sadly, for me, cause I mostly run Linux. :P
- jotm 7y agoYes... "run"... a "substantial amount"... Nah man, sadly most of the really useful software is quite unstable under wine, if it even runs :(
- fyfy18 7y agoAs an OS I agree, but the desktop experience leaves a lot to be desired. I'm currently trying to figure out how to properly drive a 4K monitor with my laptop and not have it end up lagging. Supposedly hardware acceleration is enabled on Firefox, but even trying to play even a 1080p YouTube video drops frames. On Windows it is buttery smooth, so it's not a hardware issue. Don't even get me started about scaling... (Currently using GNOME on Wayland)
- zaarn 7y agoI can sorta agree; a database with tables and folders would be a much more useful basis for an operating system. After all, most programs will read and parse small configuration files. With a database it becomes necessary. Windows sorta does that with the Registry but A) the registry isn't the filesystem, B) the registry is a filesystem on top of NTFS and C) the registry sucks. If the Registry had the power of,say, PostgreSQL to back it up, it would suck a lot less. Of course, for large files, you should still be able to rely on more conventional filesystems as well as for backwards compat.
- skissane 7y agoThe Registry could have been a lot better. It has no schema. Imagine if it had some sort of schema, declaring what sub-keys and values are allowed under each key. Imagine if the schema was self-documenting, with each key/value declaration in the schema had an associated description explaining what it was for. Imagine if it had richer data types. For example, a "link" type, in which a value actually has the name of another key. If you try to delete the target, either it doesn't let you, or it sets the value to some sort of null value. (Basically, something like foreign keys in a relational database.) And an index to quickly find "back-references" (show me everything that points to this key.) The registry should have included a database of installed packages/applications, and every key should have been marked with what package/application owns it, along with some sort of indexing to make it quick to find everything a package/application owns. Application uninstalls would have been a lot cleaner, and issues with apps leaving behind junk in the registry avoided. Transactions: This was added in Windows Vista. But it could have been there from the beginning. OTOH, remembering the registry was originally implemented in Windows 3.1, which had minimum system requirements of a 286 with 1MB of memory, maybe my suggestions above just wouldn't have been feasible.
- alexisread 7y agoI think it could, it just required a little more imagination. NewtonOS was released in 1993 so around the same timeframe, lower memory requirements than 1mb and could do this stuff: http://preserve.mactech.com/articles/mactech/Vol.09/09.11/NewtonToolkit/index.html http://preserve.mactech.com/articles/mactech/Vol.09/09.11/Ne...
- vsurabhi 7y agoI've been using osquery (https://github.com/osquery/osquery https://github.com/osquery/osquery) for a while. It is neat and I can appreciate the idea of 'exposing OS interfaces as databases'.
- skissane 7y agoosquery is cool. But, as far as I know, it doesn't expose the filesystem as a database, it is closer to /proc-as-a-database. (osquery can monitor specific files, in particular security-sensitive files, and expose events related to those files in SQL tables; but I don't think that facility is scalable from certain specific files to the entire filesystem.)
- waddlesplash 7y agoIndeed it isn't, in order to make file-level querying performant at all, you really need support for that at the filesystem level. Which is exactly what BFS, the BeOS filesystem had, and of course Haiku reimplements it: https://www.haiku-os.org/docs/userguide/en/queries.html https://www.haiku-os.org/docs/userguide/en/queries.html As that page describes, the "query" command (or its equivalent GUI) can be used to write filesystem queries, e.g.: query ((MAIL:from=="*joe*") && (MAIL:when>=%2 months%))
- deleted 7y ago[deleted]
- dingo_bat 7y ago> Macintosh definitely stands out in this respect. Many similar functions within MacOS are accomplished by exactly the same action (e.g., removing is by dragging into trash, opening is by double-clicking). Really bad example here IMO. All OSes have the concept of opening by double-click. And OSX is not consistent about dragging to trash, eg, can you drag an open browser window to trash? If yes, what does that do? Does it delete the loaded web page from your computer? Or does it leave bits of it in various caches? Or does it delete the browser from your computer? Or does it delete the content from wherever it is a stored (an email in gmail)?
- jayd16 7y agoSo Plan 9, then? But maybe with a database like interface instead of a file like one.
- unixhero 7y agoSo AS/400 then?
- fao_ 7y agoI don't really know why you're getting downvoted. Plan9 is relevant to this space as it takes "everything is a file" to the logical conclusion in the same way that this takes "everything is a database" to the logical conclusion. > The hierarchical organization of file systems manifests itself in nesting of directories (folders). On the other hand, directories are merely named views of a certain subset of files, selected according to some criteria. Thus, a directory can be thought of as a "database view," a named database query. It follows immediately that a file may appear in as many "directories" (views) as one wishes to. For example, one "folder" may show all files tagged as "sales reports", while another directory contains files modified within five days. Searching a file system and creating and populating a folder becomes therefore the same activity. Since saved views are database objects themselves, one can reference views within views if one so wishes. There is no required hierarchy however: one may create two views that refer to each other, or any other network of views that best suits the problem. I built koios to solve this problem, but I didn't take the fuse approach because it seemed like a lot of extra work for the user, and puts databases first rather than files, which is un-UNIX.
- kensai 7y agoCan someone describe the NEGATIVE aspects of having a database-OS?
- simonh 7y agoFirst enumerate all of the constraints and guarantees your database provides. All the basic minimum services it provides for every access. Look at the memory it takes to provide those, and the processor utilisation overhead to perform all those checks, and services such as to guarantee ACID compliance, guarantee referential integrity, enforce a global type system, etc, etc. Every single access of every single piece of data, for anything, will incur all of those overheads every time. There is no way to opt out or choose a different balance of guarantees or trade-offs without implementing them on top of the OS provided ones.
- twhitmore 7y agoYou're describing the fact that OS apis are typed, and check state for validity. That's already the case and OS system calls already incur those costs. In a database, preparing a query compiles the access plan (ie all the above) on the server side. There's no reason it would be any less efficient than an OS call today. Could in fact be more efficient, since you would probably be able to leverage set-based operations on the server (ie OS) side rather than iterating everything on the caller.
- simonh 7y agoIf OSes are already doing all these things, to the same degree required, and with the same overhead of a DB based OS, why do we need a DB based OS? What more is it giving us, and how is it providing that at no additional cost over the current model? 'On the server side' isn't magic. You don't get server side operations for free and these 'server side' operations would be occurring on the same computer.
- ken 7y agoEven my database doesn't incur all overheads for every operation. I don't know why an OS designed around the concept would. It's interface, not implementation.
- joosters 7y agoWhy not to trade a multitude of "custom" database managers for a single well-designed distributed database manager? It's not clear whether the author is arguing that all existing OS data structures should be replaced with a single database system, or if they simply want all OS data to be capable of being queried/updated via a standard database style interface. The former is simply hubris ("I know the perfect data structure for EVERYTHING!") while the latter is pretty much implementable as an interface layer on top of an existing OS.
- miltondts 7y agoThat's the beauty of the relational model, it doesn't specify data structures. Those can be added later by indexes. For more info check https://www.researchgate.net/publication/2364452_Data_Structures_Considered_Harmful https://www.researchgate.net/publication/2364452_Data_Struct...
- smallnamespace 7y agoThe set of indexes are a form of data structure though, with all the state juggling and heuristics that usually go along with them (What access pattern requires this index? When do I have too many of them? What locks when I add/drop an index?). This adds complexity and unpredictability to the user.
- taffer 7y agoI would argue that dropping and creating indexes is much less work than refactoring large parts of your codebase just to change a data structure. Also, you can have multiple indexes on a table and the RDBMS ensures that they are always synchronized, which is something you won't achieve if you code the data structures yourself.
- mamcx 7y agoThis is the key. You can even say that we only have a small amount of abstract "shapes" of data: Scalars, list, tables(relations), tree/graph. You can build generalized operations on them and it will work even if the internal structure (ie: list can be done on top of vectors or linked list or tables or tree) differ. This is what I working on in my own little language (http://tablam.org http://tablam.org). Certainly requiere specialize per structure and some stuff is hard to generalize but the idea hold.
- enqk 7y agoEven things like USB are kind of database like. It's kind of silly that we have so many adhoc databases with their own query APIs (and different between every OS)
- ggm 7y agoPick? hello.. are you back from the dead?
- simonh 7y agoMy first job involved doing some basic system administration on a Pick system. It was a really interesting architecture.
- deleted 7y ago[deleted]
- jcelerier 7y ago> Everything is just editing not if you look at average consumer patterns (sadly)
- rzzzt 7y agoFrom a sufficiently abstract point of view, one could argue that classic DBMSs are already looking like small operating systems: - are composed of multiple processes; can include process management code - can access hardware directly (for efficient arrangement, caching and retrieval of data) - include support for multiple users, concurrent sessions - stored procedures require compiler tooling and runtime (VM) - can be platform-independent, with an abstraction layer connecting them to the underlying OS
- nickpsecurity 7y agoA lot of things are starting to work like operating systems for performance and/or security reasons. We might need to eliminate the distinction in our thinking to get better results on new systems. Quite a few programmers and researchers already have, making things like you describe. Others are building from hardware up to try to make their implementations more 1-to-1 with how hardware works.
- deleted 7y ago[deleted]
- goatinaboat 7y agoYes this has been true of major RDBMS for a long time. A conventional OS bootstraps Oracle (for example) and Oracle handles its own memory management, process scheduling, IPC, talks directly to storage, handles logins and interactive use, etc etc. Same with SQL Server. The AS/400 takes it to the extreme.
- fouc 7y agoYou raise a point - we have a bunch of small operating systems running on top of our existing operating systems. DBMSes, editors (emacs), browsers, and more. There's a great amount of inefficiences being added because everyone is re-inventing OSes and/or DBMSes at every layer.
- asdfman123 7y agoI often wonder how much more efficient computers would be if we were capable of writing optimal machine code for whatever task we wanted to accomplish. No layers, just efficient code written at the lowest level for everything. It obviously wouldn't be worth the effort, but how many times faster would our computers be?
- jangid 7y agoI remember people used to say, "Emacs is a nice OS, what it lacks is a good editor". While reading the Ultimate OS paper I was thinking about Emacs. It already exists.
- augustk 7y agoI was thinking about the Oberon operating system, which also already exists.
- uncletaco 7y agoSame. I've been reading through the book at project oberon and really like reading about the design decisions that went into it. I also think its UI is a great starting point to reason about a touch based IDE.
- alexisread 7y agoAlready done! AOS was written in 2002, well before Android, and included a multithreaded ZUI by default (along with FAST native module compilation and dynamic linking). Shame google didn't use it instead of Android, they had to invent Go to get back some of the AOS advantages. https://en.wikipedia.org/wiki/Bluebottle_OS https://en.wikipedia.org/wiki/Bluebottle_OS https://www.research-collection.ethz.ch/handle/20.500.11850/72739 https://www.research-collection.ethz.ch/handle/20.500.11850/...
- dgellow 7y agoJust a general question: Do you think there is a market for a new operating system? The cost of building something better or equal to mainstream systems seem too high to even consider challenging the status quo.
- repolfx 7y agoI think there is, but it'd need to be very different to existing operating systems to justify itself, and in ways that other OS's can't simply adopt for themselves. In practice that means radical architectural change, and even then you'd re-use a lot of code. For such a project you don't really want to just adopt existing ideas and implement them. I don't really understand why Google is doing Fuschia for this reason: architecturally it's nothing special. Is the GPLd Linux so bad? It took them this far. If I were to do a new OS I'd explore ideas like all software running on a single language-level VM with a unified compiler (e.g. a JVM), a new take on software distribution ... maybe fully P2P, rethinking filesystems and the shell, making it radically simpler to administer than Linux, etc. You'd need to pick a whole lot of fights and make a lot of controversial decisions to justify such a lot of work: you'd need to be right about things other people are wrong about, not just once but multiple times. Then maybe if people see it working well they'd join you and port existing software, albeit, the porting process would inevitably involve some rewriting or even deeper changes, as if you can just run existing software and get all the benefits you probably didn't change anything important.
- skissane 7y agoBuild a new operating system, or build an operating environment that runs on top of an existing operating system, like how e.g. Windows used to run on top of DOS? Or User Mode Linux on top of Linux? An operating environment means you don't have to worry about stuff like device drivers. It can run inside a Docker container. (At most companies, try suggesting "let's run a brand-new OS that nobody has heard of", and you'll get an emphatic "no"... say "here's this app we want to run, it is packaged as a Docker container", and often nobody will even ask what is inside that Docker container, even if it contains your operating environment with the app running on top.) You can start out using facilities of the host OS like the filesystem and networking stack. Later, if you want to, you can implement your own filesystem (create a 100GB file on the host filesystem, pretend that is a block device and your custom filesystem exists within it). Or your own networking stack (which can run in user space using facilities like Linux tun/tap drivers.) An operating environment can always evolve into a standalone operating system at a later date.
- phosphophyllite 7y ago> A dream of an ultimate OS I want linux with: — Wayland — KDE and only KDE — Development SDK based on Qt (other toolkits strongly restricted, gtk and gnome gone wrong way) — Packaging based on something like APK from android or like DMG (no repos by default, only for base system maybe, but other methods of installing not restricted). Snaps and flatpack are trash because their goal is so called security and isolation, when normal human being need just convenience (hate repos on desktop). Yes, it's macOS model, but with linux you can have different filesystems.
- mruts 7y agoI don’t think very many people agree with you. I appreciate Unix/Linux because they are fundamentally libertarian. I don’t have to suffer using some default crappy and bloated desktop environment (KDE certainly fits that definition), I get to choose (I personally like cwm). You could certainly make a distribution in which using anything but Qt would be very very difficult. But who would want to use such a thing? Besides you, of course. Moreover, your comment isn’t a cogent response to the post. Did you even read it? He’s talking about a new paradigm of OS, something fundamentally different. What you’re talking about is the same old same old, but worse.
- phosphophyllite 7y ago> Moreover, your comment isn’t a cogent response to the post. Yes, my bad. > Did you even read it? Finished now. Good idea! > I don’t think very many people agree with you. Is "people" limited only to linux fans and "libertarian" ones? Most people on entire earth do not want (and don't have spare time for this) to always make any choices, and they shouldn't.
- snvzz 7y agoOh, it's the every OS sucks story again. It's all about the user experience. System should be friend and still enable the user to increasingly get more out of the computer. It also needs to be extremely responsive. AmigaOS got a lot right back in the 80s. BeOS (and now Haiku as spiritual successor) took a lot from that (system kits vs amiga's default set of shared libraries, and the concept of datatypes) and added some concepts of its own. Meantime, the mainstream systems have only gone backwards. My dream of a general purpose OS is definitely an open source microkernel, multiserver RTOS with capabilities and an user experience that builds on those two systems. It is important for it to be an RTOS, as unbounded response times would make the system fail as a general purpose system and as a personal computer system. The closest existing system would be Genode. It currently only meets the technical side unfortunately, but it could meet the user experience requirements with some work.
- pwpwp 7y agoGenode is really great, check it out: https://genode.org/documentation/genode-foundations/ https://genode.org/documentation/genode-foundations/
- TickleSteve 7y agoBeing an RTOS is only necessary if your application has a requirement for real-time response and is also itself designd for bounded-response-time. Ignoring drivers for the moment, your typical desktop application does not have a need for a bounded response time. Desktop applications typically do not fail due to a dialog box being popped up a few milliseconds late. The underlying drivers, on the other hand, do tend to need bounded-response time, but this is typically performed by the use of the interrupt handling subsystem, whether directly handled or split into upper/lower. Even non-RTOSs should be able to provide real-time response to drivers in this way and the trade-offs taken by an RTOS scheduler are not always appropriate or optimal for a desktop, user-facing system.
- loudmax 7y ago> Desktop applications typically do not fail due to a dialog box being popped up a few milliseconds late. No they won't fail but a responsive user interface is critical. A process running on an RTOS won't complete any faster (probably the opposite), but displaying some sort of acknowledgement that a key has been pressed or a button has been clicked without any human perceptible delay is really nice. I'd love for the user interface portion of an OS to run with real time constraints.
- tryinq69 7y agoWhen are we going to truq u? You are almost as high profile here as Thomas ptazec and the venerably over full idlewords. I'd not truq idlewords though come out with it. Tyingq has to be a Maine trucker. Let's for the good of all of us. I see it as 1) Thomas ptachech 2) idlewords you ass inferior trastard piece of skit And never less 0) tryingq which is you. Are you so ascetic? Don't tell us you got a text buddy on the side
- randomerr 7y agoMy dream is simple OS that works kinda like DOS: * Micro OS - Boot base from floppy drive if need be * Let me edit a text file to left put in the pieces I wants instead of a hundred pieces I don't * Includes BASIC language that build build a binary * Includes text based GUI for a text editor * Allow me to pick the drivers I want I like concept of some Linux OS'es but the ecosystem has got some huge it takes an expert to truly understand it. For a server I really only need a network drivers, SSH client, and the server software. I maybe nostalgic but I miss the good old days.
- mruts 7y agoIt’s not like Multics or ITS or the Lisp machines or the IBM OSs were simple at all. In fact, they probably were more complicated. What you’re talking about are the toy OSs designed for extremely limited hardware for people who probably couldn’t tell the difference in the first place. But if you want something simple, try out the base OpenBSD install. No magic, no complexity, just simplicity and elegance.
- dbsgbsjdg 7y agoPlan 9 Inferno Oberon try these systems
- codeulike 7y agoOperating Systems are commonly viewed from two major standpoints: managing computing resources, and hiding hardware idiosyncrasies while putting a friendly face for a user. The important hardware in this age is the 'collection of datacentres'. Things like Kubernetes and whatever Amazon calls their thing these days are the proto 'operating systems' for this hardware. What we currently think of as Operating Systems are more like threads.
- seabrookmx 7y ago> whatever Amazon calls their thing Depending on what "thing" you're talking about, it might also be Kubernetes. See: EKS.
- mruts 7y agoWhen someone initially looks at all the bespoke interfaces on an OS that could easily be provided by a single API, one’s first and natural response is to wonder whether all this complexity has a non-historical justification for it. On Linux/BSD, I would argue that these choices are mostly historical and do not originate from some theoretical model of how an OS should be structured. But let’s say we sit down and write a new OS: should the API for sockets be the same as for local files? Should we be able to write and read from processes by catting to and from some synthetic process file on disk? Should I be able to mount the internet on a directory and interact with sites be ls’ing their directory? Maybe I should be able to mount remote cpus and pin tasks to them? We can even take this further: registers as files, memory addresses as files, pixels and windows as files, etc etc. All of these things sound super nice, and in many ways, they are. The everything is a file concept can be taken further than even Plan9. And fundamentally, this is what the post is arguing for. Except instead of everything is a file on a file system, everything is a table on a database. The advantages of this approach are pretty obvious, we provide a simple and consistent interface: read/write for files, or select/insert/delete for tables. This allows a development surface that appears very simple and straightforward. The problem is that this simplicity is an illusion and just a black box abstraction over what’s really going on. In many ways, it actually makes things more complicated as read/write become incredibly polymorphic. Maybe the API stays the same (syntax) for everything but the actual semantics still remain complex, maybe even more complicated than distinct API’s. Even when the complexity of the semantics between the two approaches are similar, there are other problems. There’s arguments to made the heterogeneous resources should not all be provided by a homogeneous interface. For example a call to a data structure that has O(n) probably shouldn’t have the same interface as O(n^2). It makes it very easy for a developer to write incredibly inefficient code. At its core, this dichotomy is best epitomized by Richard Gabriel’s “Worse is Better.” In the essay he talks about the difference between the New Jersey school and the MIT School. One of the differences is how the two schools think about APIs. The MIT approach is to design opaque and complete interfaces that solve the problem correctly at the expense of underlying complexity. The New Jersey or Unix approach is to value simplicity of the system at the expense of a more complicated API. You can see an example of this in the read() system call. read() in Unix is hard to use and annoying as hell. There’s many bugs that stem from it’s misuse. The system call can (and does!) return less information that asked for even if it didn’t hit an EOF. Making read() always fill the buffer except for an EOF is a very hard problem and would have created a lot of extra complexity in the system. The MIT approach would be to implement this complexity as a simple interface is more important. As you can probably imagine, there’s pros and cons to both approaches. Maybe the MIT way is better because many more people are going to be using read() than actually hacking on the OS. Or maybe the Unix way is better because the underlying simplicity of a system allows developers to attain a mental model of what’s going on. If someone is interested, look at the OpenGenera source code (MIT school) vs say Plan9. OpenGenera is undoubtably a sublime and beautiful system but the code required to do it is just absurd. Plan9 is maybe less sublime, but the code itself is dead simple. Also you could compare the GNU userland vs the OpenBSD one. tl;dr: There are costs to homogenous APIs for heterogeneous things: complexity, hard to form a mental model, easy for a programmer to misuse unintentionally. There are benefits to: consistency, beauty, easy programming. Personally I like to take a balanced approach and decide on a case by case basis on how to trade off simplicity and correctness. Being a dogmatic programmer isn’t a good thing and it certainly doesn’t help your employers.
- Fickry 7y agoIts not about how amazing your OS. Its about "are users need this?" Look at macos maybe less freedom and democracy but if users just need for email its fine for them
- GnarfGnarf 7y agoAn operating system with a built-in, default database provides tremendous advantages. Hewlett Packard's MPE (running on 3000 series) came with the Image database. Every third-party app count count on Image being available. Apps inter-operated and complemented each other; you didn't have to reinvent the wheel. Very effective.
- maattdd 7y agoUnrelated to the article, but the author (Oleg) is one of the star of the typed functional programming world. For example, one of his research project (BER MetaOCaml) is about generating typesafe OCaml at runtime (to improve performance mostly). I strongly recommend you to check this (http://okmij.org/ftp/ML/MetaOCaml.html http://okmij.org/ftp/ML/MetaOCaml.html) if you are interested in the field.
- eru 7y agoIndeed. For example, the Sydney Paper Club (for discussing CS papers) was sometimes jokingly called the Oleg fan club.
- eru 7y agoIndeed. For example, the Sydney Paper Club (for discussion of CS papers) was sometimes jokingly called the Oleg fan club.
- kerkeslager 7y agoYeah, it's always interesting to see what makes it onto the front page of HN from the blogs I read regularly. He's the sort of person I'd love to be around so I could ask him questions, but if I were with him in a room and could ask him 10 questions, none of them would be about operating systems.
- RocketSyntax 7y agok8s is like a big OS
- cryptica 7y agoThis sounds like my nightmare operating system. Reusing the same command to operate on very different kinds of objects is a bad idea. A file is very different from a process. A database table is very different from a file. Whenever you try to homogenize operations on different kinds of objects under a single operation name, you inevitably lose flexibility or you have to add a lot of if-then-else statements inside the implementation code which increases cyclomatic complexity and leads to bugs. Also I don't think it makes it easier. What if I want to delete a process but I accidentally end up deleting a file because I mistyped the name of the process (or the file has the same name as the process; which one should be deleted?)? I think we need separate commands because the user needs to be in a different mindset when doing these operations. I'm actually not a huge fan of the Unix philosophy for that reason; you end up with a lot of general purpose commands which work together in theory and you can combine them in an infinite number of ways... But in practice, they are too general and this means that combining them becomes too slow for a lot of scenarios... If commands are too small and too general, you will always end up having to write long sequences of multi-lined commands chained together in order to do anything useful and performance will be bad; you might as well just write C/C++ code.
- taffer 7y agoI would make a distinction between querying and mutating the operating system state. For querying information, I think the idea of representing everything as the same data structure really makes sense. The Unix philosophy or a relational view is perfect for this. However, for more sematically complex things that have possibly surprising side effects, such as starting a service, setting up a new user account, connecting a drive, installing a printer, I think we need separate commands or procedures to encapsulate all the complex behavior.
- fouc 7y agoHe probably meant having the same internal interface, it would still be doable to have various aliased commands that call the same interface. As for UNIX philosophy of stringing together lots of general purpose commands to get the desired result - the nice thing about that is you don't need to know programming, and it's very convenient for one off scripting.
- bytematic 7y agoImplying TempleOS isn't already the ultimate OS
- OrangeMango 7y agoTo me, the author is basically asking for OpenVMS with the RMS and RDB file types.
- fouc 7y agoCan we get (1997) added on this? (revision date)
- laythea 7y agoMy dream is for a computer OS that has all the good new stuff (CPU/GPU acceleration mainly, OS level HW support) and none of the bad new stuff (bloated UI/my every mouse click being transmitted to the cloud, web app infestation). I don't care how it's built, as long as we have above. Bring back the Windows XP GUI (with GPU accelerated window theming and a few select other things) and I will be a happy bunny.
- ulkesh 7y agoAll I want is an OS that has as few of the weaknesses as possible and all the best things about all the current major operating systems; examples: Flagship gaming support from Windows, Stability and flexibility from Linux, and Design principles from MacOS. Each of those three operating systems have some weaknesses that makes me jump between them quite often. Things like: Forced updates in Windows 10, certain lack of hardware, application, and game support in Linux, and MacOS "requiring" Apple hardware (I know about hackintoshes, built some in my day, but they always felt like a house of cards). There are plenty of other strengths and weaknesses to each of them, I just feel as if I'm always giving up something awesome and gaining something painful when switching. One would think by now we would have more competitors (and I consider the various distributions/desktop environments of Linux as a single competitor to Windows and MacOS), trying out new ways of user experiences, and/or trying to bring together what makes each of them great into a single source. Of course, so much is driven on ROI and developer buy-in, so I understand the reality and complexity. The above is my dream :)
- m3at 7y agoFlagship gaming support from Windows, Stability and flexibility from Linux, and Design principles from MacOS I would love such an OS too! Sadly I'm not aware of anything that ticks the three, but at least ElementaryOS [1] attempts to tackle the last two. I enjoyed it three years ago, though I had to move to MacOS for work so I'm unsure about how it is now. [1] https://elementary.io/ https://elementary.io/
- screye 7y ago> Stability and flexibility from Linux I might have been using linux wrong. Because as a daily driver media consumption device, it has been anything but stable. I suspect it is because it was a laptop with a discrete graphics card, which for some reason completely trips linux up. > Forced updates in Windows 10 I think this has been solved in a recent update
- josephagoss 7y agoLinux is extremely stable as a headless server. We have instances running for years with no issues. That is where Linux's reputation for stability most likely comes from. However as a desktop machine mainly used for media consumption I would take windows over linux any day. No doubt due to poor graphics and audio driver support.
- spankalee 7y agoFor user/app data at least, this sounds a lot like Fuchsia's Ledger: https://fuchsia.googlesource.com/peridot/+/master/docs/ledger/README.md https://fuchsia.googlesource.com/peridot/+/master/docs/ledge...
- undoware 7y agoNit, but PLEASE date your essays. I have no idea if this is from 1998, 2008, or 2018, and it matters to how I read it. A lot.
- acje 7y agoI think there is a lot to dislike in today’s lineup of OS, but I don’t think it is worth doing a full redesign until we have open source hardware and persistent memory. Persistent memory will cause a need to redesign the OS anyway and open source hardware will enable new dynamics in the community. Linux or whatever you have on the client side will have to do until then. Hopefully we will get an OS that takes security seriously. Actor model for robust scaling and capability based security.
- tenebrisalietum 7y agoThis article doesn't define what an OS is, so it suffers. The layers that sit directly above the hardware need to be simple and efficient (think like OSI layer 1 and 2). Actual hardware beneath this needs to be even simpler so it can focus on what good hardware should be: high performance. For example, having hard drives implement database-like concepts in hardware is bad. Because then you have to change hardware if your concepts evovle, which is expensive. So let the hard drive do what it does best, which is get data off of a platter or NAND, and let a layer on the OS abstract that for higher-level layers. The UNIX API is the best we got so far I think, for OSes that are actually useable on a wide variety of hardware platforms. There's a reason why files are byte streams and "type" information is not part of a file - it's not a storage device's job to do anything but store and retrieve data fast and reliably. And it's not the job of the immediate lower layers of an OS to do anything but facilitate that and interface with a higher layer, like an SQL daemon. The user facing layers high up, like the shell, are technically not OS facilities, they are "default applications" that, in a perfect world, would work under any OS.
- taffer 7y ago> The user facing layers high up, like the shell, are technically not OS facilities Even directories, file metadata and caching are too high level and not part of an operating system if you want to go that far.
- tabtab 7y agoSplit the OS into different services. The file system, the run-time (EXE) management system, the UI manager, the coordinator, etc. For one, you could mix and match and pick the best part for your needs. That's a more webby and cloudish view of things, I would note. I do agree our file-systems need to be more RDBMS-like. I'd like to see "Dynamic Relational" experimented with more. You don't necessarily need to pre-wire columns: add them as you need, unless not permitted for a given table.
- tenebrisalietum 7y agoPlan 9 was trying to do this.
- tabtab 7y agoWhat went wrong?
- PyroLagus 7y agoI'd say Genode fits the bill. The cool thing is that parent processes have complete control over the services their children access and can block them, replace them, delegate them, etc. https://genode.org/ https://genode.org/
- S_A_P 7y agoSounds like a lot of the same goals of Windows Longhorn. Ironically, .NET Core has made alot of the goals they were trying to achieve more achievable now. Trying to build an OS in .NET in 2005 it was too slow, database filesystem has sort of kinda materialized, but not like the design as I remember it. In my view, the ultimate OS is something that is: -Modular -Consistent in API across domains -Skin-able
- jayd16 7y agoIts also interesting to see what MS does offer these days. Powershell returns objects so you can actually get at the a Process object with proper typing instead of dealing using sed to parse out some info. It can be really nice if you have the time to look up the documentation. It doesn't have the WYSIWYG simplicity of files, though.
- ryanmarsh 7y agoRyan Marsh @ryan_marsh · Jul 19 Prediction: Linux kernel will be replaced in the Data Center, but its replacement will be developed by the cloud providers. Eventually they’ll need something custom fit to running isolated Node, JVM, and other runtimes as efficiently as possible for Serverless https://twitter.com/ryan_marsh/status/1152236961660362753 https://twitter.com/ryan_marsh/status/1152236961660362753
- agumonkey 7y agoI'm always sad when I see *nixes using FS as datatypes. conf.d to indicate list of entries as files for instance.
- ben509 7y agoThe perfect OS is no OS. An OS is just specialized software that provides services, but by providing those services and only those services, you're locked into that OS, and all those services whether you want them or not. And we have to do that because we don't want all our software to have to provide the basic services, but we don't really get that: we still have to provide all the libraries it needs, some of which emulate an OS anyway by providing a big, complex runtime. So I don't think this is an OS problem, it's a build problem. If I can ask a machine what services it has, and ask the software what services it needs, it should be possible to find a minimal solution. I think NixOS gets very close to this ideal, even though it's obviously built on a traditional OS. But if we're going to talk about the "ultimate OS" I think it's worth it to ask, "how much can we take away from this?" And the reason to want that is simply driving towards the goal of making software components that are able to work together reliably rather than building these monolithic devices that only a handful of veterans can understand.
- Palomides 7y agowhat you're interested in sounds a lot like a unikernel/library OS
- eyberg 7y agoWhat do you think of what we are building @ https://github.com/nanovms/nanos https://github.com/nanovms/nanos ? We are all about taking things away from the general purpose operating system and only focusing on what is needed to run a given service in prod.
- ben509 7y agoThat's definitely in the spirit of what I was getting at. I'll have to give it a spin, not sure when that will be, but I'd love to explain to a security audit that we don't patch an instance because there's nothing on it but the application.
- bialpio 7y agoFirst thing that came to my mind when reading this is Windows' WMI with its WQL: https://en.m.wikipedia.org/wiki/WQL https://en.m.wikipedia.org/wiki/WQL
- otakucode 7y agoI do like the idea of weaving database functionality into the OS, but I also have concerns. Oracle has, on a few occasions, taken to extending their database technology to areas like this and the result was obtuse and perverse. I am thinking of a large system I worked on forged in early Oracle Forms and Reports. Each form (window) would have trigger procedures stored in the package that represented it, and you were left with the kludged-in features of PL/SQL for basic things like looping and control flow. SQL was never intended to define software. And attempting to take it and mutate it in that direction is starting from a false premise I think. Sure, with anything that is Turing Complete you can build anything. But that doesn't mean you should. If that danger is avoided, the broad concept itself might have merit, most especially in replacing the way we deal with filesystems which should have changed decades ago. I believe that storage should be separated into mutable and immutable categories. Immutable data (software packages and the like) should be managed by a universal networked content-addressable versioned immutable data store. Something like Perkeep mixed with the Internet. If you did something like 'apt-get install firefox', it would lookup the current versions GUID from a DNS-esque service and check the local store, then the local network store, and then hit the Internet store of data if necessary to pull down the content. It could be thought of like extending storage from registers, L1 cache, L2 cache, L3 cache, main memory, disk outward to the network, with data traversing each level only when necessary as a kind of overgrown cache control. Very storage-constrained contexts could purge anything immutable with confidence that it would be able to pull it back in when necessary. Call it 'swap to the cloud' if you're a marketer who doesn't realize how horrific that sounds to technical folks. Mutable storage would be handled as a local database, it would be all of your personal content and similar, stored and indexed with ways that are efficient for data which can change rapidly and which must be preserved as it may be the only copy. Individual disks should, ideally, be presented to the user as a unified whole with reliability information baked in and managed by the OS in the background. Whether and which data is replicated, striped, etc should just be something people set with their hardware providing maximums (if you have 3 drives, you can choose 300% reliability as its max and based on the drive reliability, age, SMART status, etc, the system will rebalance what is stored where in order to best preserve the users desires, only bothering the user when things cross a certain threshold of uncertainty). Data is important. Not just for corporations, but for everyone. Software Transactional Memory should be built into the hardware level and supported at the OS level, and can be supported at the OS level before hardware has a chance to catch up and accelerate it. The OS should present itself sort of like Smalltalk "images" operate to the user, albeit with most of the moving pieces covered by a thin veil unless you launch a 'system edit' sort of mode which would make the running objects editable and present live development tools. Code editors should not simply be text editors, but tools which know they are operating on code and treat it as such, allowing one to operate on an AST or syntax tree view for certain operations. Vector graphics and the concept of graphics 'surfaces' rather than a simple framebuffer should be the 'step 0' of supporting moving to a more modern system. Take advantage of modern pixel densities on high-resolution screens.
- deleted 7y ago[deleted]