News for hackers. Stuff that matters.
Re:Bzr is dying; Emacs needs to move by justincormack on Thursday January 02, 2014 @01:05PM (#7001022)
It is odd, I predicted about 5 years back that Apple would gradually converge the API to FreeBSD and then switch. They would still be better off doing that I think, but they show no signs of doing this.
Re:Bzr is dying; Emacs needs to move by Demiurge on Thursday January 02, 2014 @02:00PM (#7001407)
Why would they do that? Mach allows for some cool stuff, like kernel extensions being isolated.
Re:Bzr is dying; Emacs needs to move by justincormack on Thursday January 02, 2014 @02:45PM (#7001753)
Because building and maintaining a competitive OS is a huge effort, and FreeBSD has lots of cool stuff which they can't use...
Re:Bzr is dying; Emacs needs to move by Demiurge on Thursday January 02, 2014 @03:18PM (#7001976)
It's a huge effort worth that seems to be paying off quite handily. XNU seems like a competitive edge over the monolith FreeBSD, as far as desktop and mobile OS is concerned. FreeBSD has plenty of cool stuff, but in a completely different domain.
Re:Bzr is dying; Emacs needs to move by asveikau on Thursday January 02, 2014 @03:43PM (#7002136)
> XNU seems like a competitive edge over the monolith FreeBSD, as far as desktop and mobile OS is concerned.

This seems a bit delusional. I don't think it's controversial to say that Apple's biggest differentiators exist at higher levels than kernel space. I'd go so far as to say that anyone who claims that Apple's success is rooted in XNU and that the same could not have been done with Linux or *BSD at the lowest layer and all other pieces being equal does not understand what a kernel is.

Re:Bzr is dying; Emacs needs to move by Demiurge on Thursday January 02, 2014 @04:16PM (#7002354)
I don't know anyone saying Apple's success is rooted in any one thing. However, IOKit is very important, "common code for device drivers, this framework also provides power management, driver stacking, automatic configuration, and dynamic loading of drivers". Even if the entire OSX could have been implemented on top of Linux and FreeBSD reusing those kernels (and it does reuse FreeBSD for low level POSIX apis!), how productive would that have been? I honestly don't know, but I choose to trust what I read from the original developers.
Re:Bzr is dying; Emacs needs to move by asveikau on Thursday January 02, 2014 @07:56PM (#7003570)
Those other kernels have driver frameworks too. And if they find them inadequate for some reason, they are of course able to make modifications.

But this is not a suggestion for them to scrap it, necessarily. As I said in some other comments on this thread, I think the real reason is that they had people that knew their existing kernel well, and don't see a need to replace it.

Re:Bzr is dying; Emacs needs to move by gonzo on Thursday January 02, 2014 @10:52PM (#7004049)
FreeBSD does not have Mach ports (the IPC system). There is a ton of what OSX does that needs this.

See my comment up thread about Jordan Hubbard's plans.

Re:Bzr is dying; Emacs needs to move by asveikau on Thursday January 02, 2014 @11:02PM (#7004074)
Needs mach ports, meaning can't be simulated with Unix domain sockets or something else? I doubt it.
Re:Bzr is dying; Emacs needs to move by justincormack on Thursday January 02, 2014 @07:28PM (#7003463)
I was assuming they would port iokit as part of it...
Re:Bzr is dying; Emacs needs to move by valleyer on Friday January 03, 2014 @03:02AM (#7004592)
> XNU seems like a competitive edge over the monolith FreeBSD,

xnu is also a monolithic kernel, just with some nice message-passing primitives. Think Mach 2.5.

Re:Bzr is dying; Emacs needs to move by aaronem on Thursday January 02, 2014 @03:46PM (#7002154)
Darwin + Aqua also has lots of cool stuff which *BSD can't use. I can see a competitive advantage in making sure that remains the case.
Re:Bzr is dying; Emacs needs to move by comex on Thursday January 02, 2014 @02:55PM (#7001833)
xnu kexts are not isolated and probably never will be, although IOKit exposes some things to userspace.
Re:Bzr is dying; Emacs needs to move by Demiurge on Thursday January 02, 2014 @03:15PM (#7001955)
They're isolated enough that drivers can crash and just be reloaded, without a kernel panic.
Re:Bzr is dying; Emacs needs to move by comex on Thursday January 02, 2014 @03:21PM (#7002004)
No, they are not. A crash in a kext causes a kernel panic.
Re:Bzr is dying; Emacs needs to move by Demiurge on Thursday January 02, 2014 @03:51PM (#7002183)
You are right. An actual crash in kext causes kernel panic. I think I read that this is was possible, but I can't find how, and when, right now. The common thing that I'm thinking of is just voluntary error (exception) handling in kexts and reloading of kext on their own. There is some isolation and benefit to it.

Edit: ok, I just figured out my source of confusion. IOKit allows userspace drivers, which can crash without resulting in panic.

Re:Bzr is dying; Emacs needs to move by valleyer on Friday January 03, 2014 @02:59AM (#7004590)
IOKit allows communication between kexts and userland. You could call that "userland drivers", but it's not like you can write only userland code to implement a driver.
Re:Bzr is dying; Emacs needs to move by gonzo on Thursday January 02, 2014 @10:49PM (#7004038)
Amazingly, jkh is talking about bringing More parts of Mach to FreeBSD. To make it more like OSX.