News for hackers. Stuff that matters.
Re:The Helios microkernel by pjmlp on Thursday June 16, 2022 @05:43AM (#31764133)
Some like to call it a PR exercise.

Others enjoy that there is some effort in place to have RPC comunnication between kernel modules instead of direct function calls, a hard push for third party drivers only to exist in userspace and a standard ABI for extensions.

I rather see the progress side, even if partial, than hold to legacy designs.

See I could also call a PR exercise to safe languages that depend on using unsafe everywhere on their lower layers, maybe they aren't safe after all.

And yet we know that isn't the case.

Re:The Helios microkernel by tialaramex on Thursday June 16, 2022 @06:31AM (#31764418)
> See I could also call a PR exercise to safe languages that depend on using unsafe everywhere on their lower layers, maybe they aren't safe after all.

Although it's easier to look at what's technically different in a language like Rust, probably more important is a philosophical difference and the resulting community.

Let's use an example I gave recently to my line manager (who is technical but not an excellent programmer): Sort stability. C++ says, here's sort function, and in the documentation by the way this is unstable, if you need a stable sort that's named stable_sort(); Rust says, here's a sort function, if you know enough to know you don't need a stable sort, there's an unstable_sort() function which is faster [and exists in tiny embedded systems since it doesn't need an allocator]. Unstable sort isn't unsafe (well, it is in C++ but that's C++ for you, it's not a fact about unstable sorting) but philosophically it violates the principle of least surprise as your default sort() function, and that would be a foot gun.

Go has an "unsafe" library with the dangerous stuff in it. But unlike Rust it doesn't have the safe philosophy and so e.g. as we saw recently Go doesn't feel the need to even warn you that things aren't thread safe and some Go proponents think you're crazy if you expected anything to exhibit thread safety.

If I saw a clear RPC philosophy in an OS like Windows I'd mostly go along with what you're saying. If when I looked at Windows I saw a bunch of loosely coupled systems communicating using a well defined protocol, I'm on board that's really not just a monolithic kernel. But what I see instead is mostly layers smeared on top of a monolithic kernel, some of which pretend to be RPC but are really just doing a syscall to some kernel code where the work happens. The language of RPC is used in some places, but the philosophy is largely absent.

Re:The Helios microkernel by pjmlp on Thursday June 16, 2022 @07:18AM (#31764699)
Unless you have mastered all editions of Windows Internals, MAC OS X Internals: A Systems Approach, MacOS and iOS Internals, Mac OS X and iOS Internals: To the Apple's Core books.

Or having been a former Microsoft or Apple employee working on kernel stuff, then I could eventually value the opinion how fake they happen to be.

Yet somehow I get the feeling, from both of us, only I have delved into such internals.

Re:The Helios microkernel by Pasta123 on Friday June 24, 2022 @09:57PM (#31871739)
Seems to me that the notion suppose to be "Hybrid is basically an inferior monolithic", after all, if most functions (even without drivers) were still in the kernel, wouldn't it be just another monolithic?
Re:The Helios microkernel by tialaramex on Thursday June 16, 2022 @08:56AM (#31765517)
Ah, I knew I would get one of them wrong, and then didn't go back to check, so

C++ indeed has std::ranges::sort() and std::ranges::stable_sort()

However Rust's [T].sort() is paralleled by [T].sort_unstable()

That is, I just got the Rust names in the wrong order. The orthography is different because how these work under the hood is very different, but that's not important here.

Re:The Helios microkernel by Koshkin on Thursday June 16, 2022 @12:46PM (#31768196)
> using unsafe everywhere

But this is OK, as long as Unsafe is a monad!