3 ms·
What are the latest cool ideas in OS design, both from a user's viewpoint and from an OS hacker's viewpoint?
by amelius 2y ago
What are the latest cool ideas in OS design, both from a user's viewpoint and from an OS hacker's viewpoint?
- honestSysAdmin 2y agoThe best answer, given the specific opposite edges you have broadly specified, is https://redox-os.org/
- amelius 2y ago> Most system components run in user-space on a microkernel system. Because of this, bugs in most system components won’t crash the system/kernel. It's funny because I want this when I write applications. Each library should run in its own sandbox, and by default they shouldn't be able to touch each other's data.
- guerrilla 2y agoSomething stupid I always wanted to do was to make an object-oriented language where literally every single object was a separate UNIX process. The naive implementation would have horrendous context switching overhead from the IPC, but maybe there's a clever and elegant way to use shared memory...
- drekipus 2y agoPractically Erlang
- nine_k 2y agoThe original idea of Smalltalk was very much that :) Sadly, hardware limitations of the time did not allow Smalltalk to be implemented this way. Erlang was likely the first generally available implementation if the idea. (Now you write in Elixir for the same VM.)
- iforgot22 2y agoIt seems like the reduced overhead of cooperative multitasking (vs OS threads or even greenthreads) is so important that people are writing code entirely differently because of it. Like all those promise/future frameworks in Java etc, or NodeJS which works this way natively.
- honestSysAdmin 2y agohttps://learning-0mq-with-pyzmq.readthedocs.io/en/latest/pyzmq/patterns/pair.html
- bboygravity 2y agoYou're describing Elixir/Erlang?
- elcritch 2y agoSorta, but while Erlang/Elixir isolates actors in normal APIs, a erlang process can access most anything using “system calls”. Same for RPCs to other nodes. You can do almost anything a local process can for better or worse.
- Aaron2222 2y agoThis is something the CHERI architecture[0] (an extension to ARM and RISC-V that implements a capability memory model) can allow this performantly with compiled code (without needing to context switch). This PhD dissertation from Cambridge[1] implements this for C/C++ under CheriBSD (their fork of FreeBSD that supports CHERI). [0]: https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/ https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/ [1]: https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-949.pdf https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-949.pdf
- honestSysAdmin 2y agoillumos on RISC-V with CHERI would be the ultimate. There is another variant of RISC-V that is spectre immune. I have also recently heard of approaches at compile-time, such as RESPECTRE, that remove the spectre problem.
- honestSysAdmin 2y agoSome of us are "spoiled" by Rust. About ten years ago the Erlang argument may have been somewhat compelling. Now we use software libraries that don't crash in the first place. Not every Rust library meets that metric, but using Rust as a baseline and a small handful of other patterns/practices it's not hard to meet these days.
- IshKebab 2y agoRedox is Unix-like. It's not going to contain any significantly new ideas.
- honestSysAdmin 2y agoYeah, you're right, Redox using a micro-kernel architecture taking inspiration from Plan9 and seL4 is not new ideas. What Redox is doing differently than the others that is new is successfully delivering these ideas. Redox has delivered these existing ideas in a manner that will soon enough be (if not already) suitable for production use and available to package for casual non-hacker users. If there is another project that has also done this in a non-academic way, I'd like to see it.
- IshKebab 2y agoFuchsia has a crap load of wild ideas. Microkernel, capabilities, weird app installation system (I think they're trying to make apps more like websites). https://rtic.rs/ https://rtic.rs/ is a pretty cool idea for an embedded RTOS (sort of). Honestly though there's still stuff in Plan 9 that is way more advanced than what Linux does, e.g. https://9p.io/sys/doc/lexnames.html https://9p.io/sys/doc/lexnames.html
- mycall 2y agoGenode [1] has an interesting approach to OS design as it is a framework, but how much is assembly I don't know. [1] https://genode.org https://genode.org
- machinestops 2y agoPlan 9's cool ideas largely still haven't been surpassed or reimplemented. https://doc.cat-v.org/plan_9/3rd_edition/rio/rio_slides.pdf https://doc.cat-v.org/plan_9/3rd_edition/rio/rio_slides.pdf
- yencabulator 2y agoIt's surprisingly hard to use 9P and get good performance because the design sort of inherently forbids caching for "real" file data. Trying to add that on top pretty much sacrifices the simplicity and starts looking a lot more like NFSv4.
- junon 2y agoIt's "quietly public" but I've been working on a novel kernel design, this (12th, and final) rewrite undergoing development for about a year now. https://github.com/oro-os/kernel https://github.com/oro-os/kernel It's a user-less, capability-less microkernel design that enforces access control via the kernel's entity hierarchy. Shared memory ports with various levels of safety are the primary form of IPC, typed at the kernel level. Currently undergoing later stages of the kernel efficacy stage; if I can prove the design I'll do a more formal writeup. It's been a project in my head for about 8 years and in the editor for about 4 now.