199 points · by nix23 · 4y ago · 112 comments
I find the FAQ to be more enlightening than this page. It explains what it is used for (OS research research in Charles University, Prague) and how it is different than other operating systems (genode, minix, hurd).
HelenOS was one of the few that actually worked.
It feels very snappy. Seems also quite robust. I didn't manage to crash it just by playing around, like it's the cases with most other "toy OSes".
One of the most "promising" OS projects out there, imho. (Promising in the sense that it seems to be at least a serous project with constant progress since many years already).
But I have to admit that regardless the hype around it I don't think that it's particularly interesting. I see it as just yet another Unix clone; with exactly zero innovation behind it. Even Redox, which I consider being a complete failure, tried some seemingly new concepts (and uses a micro kernel which makes it at least a little bit less "mainstream").
Haiku is rock solid. Very interesting project! But I would not put it in the basket with toy or research OSes, though. It's based on something that had even quite some commercial success. But yes, Haiku is definitely an "alternative OS". It would have been better if I worded this part differently, I guess, as I'm mostly interested in "experimental" OS architectures and less in "random" alternative OSes. (So, for example I've never tried to run TempleOS, or such things; also I didn't put much effort to run historic ones, when they where just Unix clones; there are quite some of these out there I guess).
Haiku is much more complete than HelenOS of course. You can do all the basic computer things with it. It has quite some applications. I still remember the time when BeOS, its successor, was actually even much more usable in a GUI setting than Linux, which barely run X and some fvwm2 windows with terminal emulators—whereas BeOS had fancy multi-media players and 3D graphics at that time. Haiku has this apps still, but that's much less impressive today of course.
Haiku is for example much more polished than say Hurd. There is a "working" Debian/Hurd version out there. But it was so buggy last time I've tried! Things were constantly crashing or not working at all. The last time I've tried to run Haiku I didn't find anything that was servery broken there.
HelenOS feels comparable stable to Haiku. But there is almost nothing besides the bare OS. I think it had a kind of "packet manager" the last time I've tried but this didn't work well for me. Also there were almost no applications available. But that's not a bad sign as I think the most work goes into the OS as such. Which is good! The few things that were there on the surface were like I've said snappy and working without crashes. Which is imho already an achievement when compared with a lot of other OS projects (e.g. Redox, Hurd, unikernel / library-OSes, or just a "tuned" Linux build ;-)).
English is not my native tongue but didn't you mean "BeOS, its predecessor" ?
BeOS lived from 1995 to 2001, and Haiku development started in 2001 with a first release in 2009.
https://en.wikipedia.org/wiki/Haiku_(operating_system)#Relea...
I would say that creating their own language to write the system in is pretty innovative. The power of the mono repo is really going to come through when they convert everything from C++ to Jakt.
Perhaps the most impressive and innovative thing about SerenityOS is the way they are building their community though. I cannot think of another project with so many contributors developing so openly on YouTube. The rate at which the project is evolving is amazing.
The SerenityOS project is extremely pragmatic so it is not going to charge off in truly experimental directions. That said, they borrow an impressive number of ideas from a fairly diverse set of influences. The pledge / unveil stuff from OpenBSD is interesting. The way they propagate errors throughout the stack is cool, and the fact that they built their own standard library for C++ is quite interesting.
One area where SerenityOS may truly innovate is in the browser since the project founder used to build web browser engines for a living.
If you do not think SerenityOS is interesting, maybe take a deeper look.
I personally think the syscall structure is quite interesting, especially the pledge & unveil taken from BSD. But that is indeed not innovative, it is just taking some really nice ideas from prior art.
HelenOS 0.8 - https://news.ycombinator.com/item?id=18833124 - Jan 2019 (55 comments)
HelenOS: portable microkernel-based multiserver operating system - https://news.ycombinator.com/item?id=15046249 - Aug 2017 (67 comments)
HelenOS GUI – experimental demonstration (2012) - https://news.ycombinator.com/item?id=12784350 - Oct 2016 (12 comments)
p.s. nice formatting. (I want to add software to offer to inline HN links in this format when people include links to past threads in their comments.)
Install this and than look at the bottom of the page. :-D
“Multiserver” (a term from the microkernel literature) means that the conventional basic OS services are split into several “server” processes with distinct responsibilities (a mounted filesystem, a network card, perhaps a hardware bus, etc.). This is the original conception of a microkernel- (as opposed to e.g. an exokernel-) style system and its architectural promise, although it’s not made necessary by the mere fact of being built on top of a microkernel: AFAIK L4Linux is a single server so the L4 microkernel basically acts as a simple VMM / HAL without further architectural benefits. (For other monolithic but userspace OS servers, look at wineserver in Linux, CSRSS and LXSS in Windows NT, etc. For multiserver systems of varying purity, look at QNX and Minix.)
What you’re thinking of is a “distributed OS”, although those academic efforts look terribly naïve from today’s distributed consensus standpoint. Good points of entry may be Barrelfish and Plan 9.
GNU/Hurd tries the same, but with POSIX compatibility and so far with mixed success. Other multiserver microkernel systems I know off are Minix and QNX. I'm sure there's more.
The two classic examples of the networking stack and the filesystem generally don't move because they aren't buggy enough to be worthwhile, the performance hit is too great and because it's unreasonable to expect userland processes to cleanly handle a restart of things like that. Like, in 99.99% of real programs if every file descriptor is suddenly invalidated then that program will crash and the devs won't care if you report it as a bug because they'll say, yeah well, actually it's on you to fix your buggy OS not on us to code around it. Other platforms don't crash their network or FS driver every five minutes so why should we do extra work for yours?
So the kernel vs microkernel distinction doesn't seem particularly relevant or interesting anymore, at least not to me.
This won't become true even it gets repeated more.
A micro kernel requires a micro kernel design form the ground up. (Something like FDs would be only one example of something where you would need different APIs…)
You can't make a micro kernel out of a monolith. That's one of the reasons something like Hurd failed, and something like macOS is a slow and buggy hell.
The story about the graphics drivers on Windows is also not true, afik. I've heard they moved this back into kernel space (with some special encapsulation) long ago because it was way to slow otherwise.
Because you can't move an existing design to be an micro kernel after the if your APIs are all designed for a monolith setting. Alone the fact that you need async "SysCalls" (or better said "ServerCalls") in a proper micro kernel design makes it impossible to make a micro kernel out of a monolith (where all SysCalls are usually sync, because it makes no sense to have an async layer for intra-process calls).
Also micro kernels aren't slow. The canonical link was posted already in a sibling.
The main point about micro kernels, and why they still more than matter, is not about bugs and crashes. The main point is about security. You can't have a secure monolith! The TCB would need to be way to large.
I see this myth referenced a lot due to misconceptions constructed around design issues in early, pre-Liedtke microkernels (particularly Mach, used in IOS/OSX) leaving a long-lasting impression.
L4 changed everything, and seL4 takes it to the next level.
Some references:
- https://youtu.be/INBEKSkAiTA?list=PLtoQeavghzr3atxNQig-sLGbw...
Why would it be more reasonable to handle this in kernel space? Doing well anything in kernel space is always harder and less safe than user space.
"Within the scope of microkernel operating systems, a multiserver spreads the operating system functionality over multiple user processes. Note how this differs from a single-server microkernel that concentrates all these functions into a single user process." - http://www.helenos.org/wiki/FAQ
http://walfield.org/papers/200707-walfield-critique-of-the-G...
One step forward two steps back...and no actual progress, that kills a project who is in competition with something like linux (who is obviously not a perfect design but just pushes forward)
Having a kernel without goals is like a sandbox without having fun, no one cares.
[0] Say, anything with a human input device and/or hardwired internet connection, to cover our bases but exclude IoT.
> To achieve that, the code running in kernel must be minimal, with the file server, process server, and each device driver running as separate user-mode processes. Each driver is carefully monitored by a part of the system named the reincarnation server[2]. If a driver fails to respond to pings from this server, it is shut down and replaced by a fresh copy of the driver. In a monolithic system, a bug in a driver can easily crash the whole kernel. This is far less likely to occur in MINIX 3.
[1] https://en.wikipedia.org/wiki/Minix_3
[2] https://en.wikipedia.org/wiki/Minix_3#Reincarnate_dead_or_si...
https://www.gnu.org/software/hurd/
>>It is a collection of servers that run on the Mach microkernel to implement file systems, network protocols, file access control, and other features that are implemented by the Unix kernel or similar kernels