News for hackers. Stuff that matters.
Re:Darwin-xnu: The Darwin Kernel by mindcrash on Saturday September 30, 2017 @02:45PM (#15374373)
No, because this thing, darwin-xnu AKA the OSX/iOS microkernel, was already opensourced through https://opensource.apple.com/ for both iOS and OSX (to be precise, the source tarballs can be found here: https://opensource.apple.com/tarballs/xnu/)

What is new however is that Apple is now seemingly actively using GitHub to publish their opensource contributions.

Re:Darwin-xnu: The Darwin Kernel by willstrafach on Saturday September 30, 2017 @03:51PM (#15374706)
> No, because this thing, darwin-xnu AKA the OSX/iOS microkernel, was already opensourced through https://opensource.apple.com/ for both iOS and OSX

This is not true. iOS components were always stripped out until now.

Re:Darwin-xnu: The Darwin Kernel by joshumax on Saturday September 30, 2017 @07:35PM (#15375539)
This, while probably seemingly unimportant to a lot of people, is extremely great news for a project I'm a part of!

We're working on a full iPhone emulator based on QEMU, and currently, while we are able to boot into early userspace from an unmodified iOS image, the release of the iOS-specific code will be quite helpful in speeding up bug elimination and the development of the virtual graphics hardware that can get us past a basic graphical framebuffer.

Re:Darwin-xnu: The Darwin Kernel by FractalNerve on Saturday September 30, 2017 @08:33PM (#15375771)
wow, interesting! Where can I find your project?
Re:Darwin-xnu: The Darwin Kernel by KGIII on Saturday September 30, 2017 @09:48PM (#15375969)
Probably this:

https://github.com/joshumax/QEMU-s5l89xx-port

Or this:

https://github.com/nvsio/qemu-ios

Found sort of via this:

https://www.reddit.com/r/jailbreak/comments/6crw5t/question_...

I assume they won't mind my sharing. They posted it publicly with the same username and have public Git pages.

Re:Darwin-xnu: The Darwin Kernel by joshumax on Monday October 02, 2017 @11:13PM (#15389844)
Actually, you saved me a post! Thanks!

Although quick note, a lot of work is being done in a private repo until it passes the "clean room" test, after which it will be pushed to the public repos. :)

Re:Darwin-xnu: The Darwin Kernel by FractalNerve on Monday October 02, 2017 @11:02AM (#15384295)
You've incredible search skills! Thank you very much =))
Re:Darwin-xnu: The Darwin Kernel by lobster_johnson on Saturday September 30, 2017 @03:37PM (#15374651)
Minor correction: XNU is not a microkernel.
Re:Darwin-xnu: The Darwin Kernel by fnj on Saturday September 30, 2017 @05:09PM (#15374994)
XNU is a hybrid kernel incorporating large elements of Mach (microkernel) as well as BSD (monolithic kernel).
Re:Darwin-xnu: The Darwin Kernel by atombender on Saturday September 30, 2017 @05:27PM (#15375070)
The term "hybrid" is not a particularly useful concept, since the whole idea of a microkernel is to achieve stability and extensibility by placing only a minimal kernel in kernel space, and have everything else (drivers, file system, etc.) live in userland.

XNU is built on Mach (initially 2.x back when it was NeXTStep/OpenStep, later 3.0 for OS X), but everything runs in a single address space. Mach ports are retained throughout the OS as a communication mechanism, including userland, but all the core stuff is in the kernel, and Apple has transitioned many Mach port IPC responsibilites to more traditional syscalls to work around the fact that ports are comparatively slow. For example, all POSIX operations such as read and write are BSD syscalls that correspond to entrypoints in the kernel; they're not IPC messages.

Re:Darwin-xnu: The Darwin Kernel by justsid on Saturday September 30, 2017 @10:03PM (#15375996)
That‘s true, but it‘s also important to note that most of the BSD subsystem is actually a shim over Mach. So once your BSD syscall has made it to the kernel, chances are you‘ll get a mach IPC call from the BSD shim.
Re:Darwin-xnu: The Darwin Kernel by the_why_of_y on Sunday October 01, 2017 @07:17AM (#15377317)
The term "hybrid kernel" means it elegantly combines the disadvantage of a Mach microkernel (slow IPC based interfaces) with the disadvantage of a monolithic kernel (no fault tolerance due to single address space).
Re:Darwin-xnu: The Darwin Kernel by JimDabell on Saturday September 30, 2017 @03:06PM (#15374509)
Apple using GitHub isn't new, they've been doing it for at least a couple of years. ResearchKit was their first GitHub repository I think.
Re:Darwin-xnu: The Darwin Kernel by AlphaSite on Sunday October 01, 2017 @12:26AM (#15376388)
Isn’t it Swift?