News for hackers. Stuff that matters.
Re:L4 microkernels: The lessons from 20 years of research an... by rayiner on Tuesday September 20, 2016 @04:27PM (#12543075)
Note OS X mostly doesn't use Mach IPC for anything. Calling, e.g., write() results in a system call into the BSD portion of the XNU kernel, not all that different from what happens on Linux.
Re:L4 microkernels: The lessons from 20 years of research an... by simscitizen on Tuesday September 20, 2016 @06:45PM (#12544020)
That is completely untrue. While the BSD syscalls are supported, Mach syscalls and Mach IPC are also heavily used, especially internally at Apple.

Just one simple example: run "sample <process>" (where <process> is any Cocoa application) on OS X. Pretty much every thread will have an event loop powered by CFRunLoop, and they'll all be stuck in mach_msg_trap waiting for an event to occur.

Also, pretty much any sort of semi-complicated IPC on OS X is done over Mach IPC (e.g. passing a large bitmap copy-on-write from one process to another). Take a look at the ipc directory in the Chromium source, for example.

Re:L4 microkernels: The lessons from 20 years of research an... by rayiner on Tuesday September 20, 2016 @09:42PM (#12544846)
Yes, I'd assume it's more heavily used in the higher-level application layer. I was talking about basic UNIX functions.
Re:L4 microkernels: The lessons from 20 years of research an... by swolchok on Tuesday September 20, 2016 @10:30PM (#12544991)
Even Unix signals are delivered as Mach exceptions first. If the process doesn't have a Mach exception handler set up, the kernel's exception handler converts them to Unix signals and tries delivery that way: https://github.com/opensource-apple/xnu/blob/27ffc00f33925b5... and https://github.com/opensource-apple/xnu/blob/27ffc00f33925b5...
Re:L4 microkernels: The lessons from 20 years of research an... by tptacek on Tuesday September 20, 2016 @05:02PM (#12543396)
OS X doesn't use Mach IPC to emulate POSIX, but it uses (or did last I checked, which was a while ago) Mach IPC directly for things like launchd.