News for hackers. Stuff that matters.
Re:Ask HN: Examples of Microkernels? by mijoharas on Tuesday October 04, 2022 @07:08AM (#33078731)
I was about to say macOS uses a microkernel, but on checking it seems that it's hybrid. Also, the source isn't available, so might not be what you're looking for.
Re:Ask HN: Examples of Microkernels? by xaerise on Tuesday October 04, 2022 @07:50AM (#33079071)
XNU is opensource....

https://opensource.apple.com/releases/

Click on the release (Monterey 12.5) and scroll down. xnu-8020.140.41 is there..

Links to: https://github.com/apple-oss-distributions/xnu/tree/xnu-8020...

Re:Ask HN: Examples of Microkernels? by mijoharas on Tuesday October 04, 2022 @06:09PM (#33087766)
oh! I was not aware of this. Thank you.
Re:Ask HN: Examples of Microkernels? by euclaise on Tuesday October 04, 2022 @07:17AM (#33078804)
It's based on a microkernel (mach) but is hybrid, and the source is available https://github.com/apple-oss-distributions/xnu/tree/xnu-8020...
Re:Ask HN: Examples of Microkernels? by pjmlp on Tuesday October 04, 2022 @02:23PM (#33084558)
For the time being, after all kexts are forbidden, replaced by the respective userspace drivers, the real difference will only be arguing about semantics, as for all practical purposes from 3rd parties, it will be like a proper micro-kernel OS.

https://support.apple.com/guide/security/kernel-extensions-s...

Re:Ask HN: Examples of Microkernels? by snvzz on Tuesday October 04, 2022 @10:12PM (#33090223)
They'd need to replace Mach with something less inefficient first.

Mach is a pre-Liedtke microkernel. It's slow at IPC. Which is bad when IPC is what it has to do the most in a proper multi-server system.

Re:Ask HN: Examples of Microkernels? by pjmlp on Wednesday October 05, 2022 @03:54AM (#33092552)
Regardless of what we think, Apple has been quite clear at WWDC what the end goal is, no more kexts allowed when there is a corresponding userspace framework for the respective driver class.

This the the best thing in commercial software, decisions happen, and there are no forks botching the final outcome by disgruntled devs.

Re:Ask HN: Examples of Microkernels? by Pasta123 on Wednesday October 05, 2022 @08:44AM (#33094740)
so ELI5 here, but aren't modern computers fast enough to overcome many of its original shortcomings?

I'm not a software engineer, but out of curiosity.

Re:Ask HN: Examples of Microkernels? by pjmlp on Wednesday October 05, 2022 @09:19AM (#33095189)
Not only they are, many hardcode anti-microkernels folks kind of forget their beloved monolithic Linux kernel nowadays runs on top of type 1 hypervisors (which is basically a tiny micro-kernel), and then there is this whole thing with Docker and Kubernetes deployments for every executable.
Re:Ask HN: Examples of Microkernels? by Pasta123 on Monday October 10, 2022 @12:58AM (#33147925)
Ah. So there's no dire need for Apple to improve Mach's performance.

I wonder if the computer industry in general tend to overlook at performance, that's how I feel about the hardware community, where a tiny differences in benchmarks always taking the crown.

Re:Ask HN: Examples of Microkernels? by nix23 on Tuesday October 04, 2022 @07:20AM (#33078827)
>Also, the source isn't available, so might not be what you're looking for.

It is available, and it's called darwin-xnu:

https://github.com/apple/darwin-xnu

a mix of Mach and a FreeBSD kernel:

https://i0.wp.com/www.linuxandubuntu.com/wp-content/uploads/...

And a really good yt presentation:

24C3: Inside the Mac OS X Kernel

https://www.youtube.com/watch?v=-7GMHB3Plc8

Re:Ask HN: Examples of Microkernels? by throw0101a on Tuesday October 04, 2022 @07:51AM (#33079080)
Re:Ask HN: Examples of Microkernels? by pram on Tuesday October 04, 2022 @09:43AM (#33080249)
There is also GNU Mach from the venerable HURD.