24 points · by hoodoof · 11y ago · 21 comments
An entirely clean slate approach to rethinking how operating systems and software should work.
Does that concept make sense at any level? What might come out of such an exercise?
Is it even possible to make a dramatic innovation given that we already have such strong ideas in our heads about how operating systems work? Perhaps it's not possible to imagine things dramatically differently from what we have already experienced.
It is _dramatically_ different from what we have already experienced. It's really far out there, so far that it's hard to wrap your head around, but there are some really neat ideas wrapped in the extreme weirdness. Fun to read about, at any rate.
http://en.wikipedia.org/wiki/Singularity_%28operating_system...
Which was a complete re-design at almost every level. Unfortunately the entire project got shelved, but it was a pretty interesting experiment while it lasted...
http://en.wikipedia.org/wiki/Exokernel
http://c2.com/cgi/wiki?NeoKernel
Another that's been tried a couple times: what if you get rid of the operating system entirely and run a VM (for, say, a scripting language) directly on bare metal? What kind of optimizations could you do? Maybe you'd expose disk blocks, page tables, and the TLB directly as language APIs. What could you build with that, and are there any use-cases (databases? high-performance message buses?) where you could get order-of-magnitude improvements in performance with this?
I'd be curious if it would work even better today because so many language runtimes have many common OS services in them, eg. Erlang and Go have green threads, many have garbage collection. Making the GC aware of the page table seemed to be very useful in Lisp Machines.
You could use a toolbox call to get a function's address and call it directly, but that was mostly used for patching the toolbox.
Currently, the de facto abstraction is to (as an application programmer) generate machine code either by direct compilation or by interpreting at run time. Programs are written as if they're the only process on the CPU, and the OS takes care of keeping multiple running processes from overwriting each other or starving each other of CPU time.
In other words, everything ends up as machine code. This is the same every time.
I think a really radical OS redesign would target a higher level of abstraction. Instead of programmers designing procedural programs resulting in machine code, why can't programmers design a static system of components and let the OS orchestrate their interaction?
If the overarching goal of an OS is to support application programmers, then I think an important notion to challenge is that all applications must be imperative.
Any such given privilege could be revoked at any time by the user. Furthermore, activity on the arms of each octopus could be monitored visually or in an event-log-based format.
Instead of file (data object) permissions being based on user accounts, each file would have a set of flags indicating what types of data it contains. Only those programs with privileges for access to said types of data could see or access the file. If there were user accounts on the system, those accounts would have limited access to certain types of files (based on flags) and certain roles (from the octopus arms). When a given user ran software, only those roles granted to that user account could be enabled on the software being used. Nevertheless, any user could grant the software fewer roles than the user itself had.
- A capability-based operating system, see: http://en.wikipedia.org/wiki/Capability-based_addressing
- Anything microkernel-based (Minix!) For pete's sake guys, why don't we have this already in our mainstream OSes? I'd happily take a performance hit of 10% in return for the enormous benefits (stability, security, design elegance).
Personally I don't think compile-time guarantees are a good idea, because the resulting system strikes me as very vulnerable to that one thing the developers overlooked.
1) Consumers need an invisible OS that understands natural interfaces like voice, mind.
2) Developers need a productivity OS that connects to their apps running in production and helps them in debugging/monitoring.
3) Servers need virtual OS that natively support containers to run apps in distributed environment.
Recognizing a novel OS idea requires familiarity with the state of the art and history of OS research and someone like that wouldn't be answering from a "all knowledge tossed out of the window" perspective. Also, the very notion of "OS" is pretty loaded and brings along a lot of conventional thinking.
I guess a serious attempt could have some computer culture-oblivious people generating ideas and then some veteran people filtering out the reinvented wheels. It would still be hard to tell any worthwhile ideas from the garbage.
No, seriously. One idea I had was to physically separate parts of the computer so that it was impossible to infect the core without a human manually throwing a switch at some point to allow a connection to (ideally sanitized) inputs from the net.
hoodoof, this is something I am considering pursuing for my next startup! I'd love to chat -- I'm charlie@mathbreakers.com
- strong sandboxing of individual OS processes
- runtime encryption of data in RAM and storage