by jacquesm · 9y ago · 0 comments
One interesting way in which you could do this is to build a wrapper around device drivers so that each device driver becomes a process on top of a microkernel.
The userland can mostly remain unchanged as long as you expose the expected interfaces.
Microkernels on the nixy side of the industry have so far been crushed beneath the tank tracks of path dependency.
Ah ok.
> Microkernels on the nixy side of the industry have so far been crushed beneath the tank tracks of path dependency.
If you shut those down society would grind to an instant halt. They're super successful just not very visible.
As you say: It's all about steaming ahead on the mainstream[1]! Woo! /s
[1] I wish you both luck and success if you do something away from the mainstream. Because we need that, at least occasionally.
In principle yes, but Linux exposes a lot of interfaces, not all of which are that well documented in all their corners, and some of which are leaky in their abstractions in a way that makes it ugly to implement them on top of other systems. Stuff like: procfs, inotify, cgroups, Linux-specific syscalls like epoll, weird mechanisms like vDSOs, etc. The most heroic attempt I've seen to get all this working on top of another kernel is SmartOS's LX-branded zones, which are really quite impressive and implement most of what I just mentioned, although I believe even they are not 100% [1].
[1] These slides gave an overview of what worked and what didn't as of 2015. Not sure if there's a good updated ref, as I'd assume some things have progressed since then. http://us-east.manta.joyent.com/patrick.mooney/public/talks/...
Come on. You think that is the easy part? Just because everybody can hack up some "kernel" and boot their machine into it? I think you know the relevant Linus Torvalds quote in this context ...
The first can be done, I'm 100% sure of that, the second I'm not so sure.
I'm kind of surprised that on HN of all places something like a kernel would be considered somehow beyond re-creation or requiring special god-like powers.