News for hackers. Stuff that matters.
Re:Bzr is dying; Emacs needs to move by vezzy-fnord on Thursday January 02, 2014 @10:06AM (#6999849)
Not to mention his insistence on GNU Hurd being based on Mach, which pretty much ended up killing the project.
Re:Bzr is dying; Emacs needs to move by gillianseed on Thursday January 02, 2014 @11:33AM (#7000404)
Back when the choice was made, micro-kernels was all the rage in both academia and commercial ventures, and Stallman chose Mach since he thought it would speed up development, he was hardly alone in choosing Mach at this time, Apple (MkLinux, NeXTSTEP), IBM (Workplace OS) amongst others.

He fully acknowledged that he made a mistake in going with Mach and as soon as Linux took off FSF focused on providing the necessary software to combine with Linux into an operating system and placed Hurd on 'life support', where it's been ever since.

Re:Bzr is dying; Emacs needs to move by maxlybbert on Thursday January 02, 2014 @02:30PM (#7001658)
IIRC, ARPA at some point was more interested in funding projects based on Mach than based on any other kernel.
Re:Bzr is dying; Emacs needs to move by IgorPartola on Thursday January 02, 2014 @11:14AM (#7000277)
That's a simplistic view. First, the GNU project is very much alive: the GNU tools are used in a huge number of operating systems and are installed on a staggering number of devices. I would bet that the system you are writing this comment from is running thanks to the GNU software.

Second, it is debatable whether sticking to Hurd was a good or a bad idea technically. Imagine if Stallman and co. managed to convince a good number of developers that it was a good idea and the kernel was competitive with Linux, BSD's, etc. If you believe you have a technically superior vision for your product, should you compromise on it just because people who do not share in your vision will not join you?

In the end, I think what killed the pure GNU/Hurd OS was bad PR and absolutism. Hurd as a technical question was just a small part of that. Remember, the debate between the Free and the Open Source guys was pretty fierce. Today we use terms like FOSS to describe all open software, but when Linux and Hurd were young these were different camps with opposing philosophies, and the one that appealed to more developers won out. In simplistic terms, you can think of this as the VHS vs Betamax debate. Can you blame the Betamax backers for continuing to try to push it and "killing" it as a result?

Re:Bzr is dying; Emacs needs to move by vezzy-fnord on Thursday January 02, 2014 @11:23AM (#7000333)
Wait. You misunderstood me. I didn't say the entire GNU Project is dead. Hell no. When I said "project", I was referring specifically to GNU Hurd.

Also my statement was going by the words of the Hurd's former project leader Thomas Bushnell:

"RMS was a very strong believer -- wrongly, I think -- in a very greedy-algorithm approach to code reuse issues. My first choice was to take the BSD 4.4-Lite release and make a kernel. I knew the code, I knew how to do it. It is now perfectly obvious to me that this would have succeeded splendidly and the world would be a very different place today.

RMS wanted to work together with people from Berkeley on such an effort. Some of them were interested, but some seem to have been deliberately dragging their feet: and the reason now seems to be that they had the goal of spinning off BSDI. A GNU based on 4.4-Lite would undercut BSDI.

So RMS said to himself, "Mach is a working kernel, 4.4-Lite is only partial, we will go with Mach." It was a decision which I strongly opposed. But ultimately it was not my decision to make, and I made the best go I could at working with Mach and doing something new from that standpoint.

This was all way before Linux; we're talking 1991 or so." [1]

http://www.groklaw.net/article.php?story=20050727225542530 [1]

Re:Bzr is dying; Emacs needs to move by dragonwriter on Thursday January 02, 2014 @06:16PM (#7003097)
Note, in regard to Bushnell's quote, that "1991 or so" and "way before Linux" are contradictory. (Or, at least, require an strained definition of "way before"; Linux was first released in 1991.)
Re:Bzr is dying; Emacs needs to move by Sssnake on Thursday January 02, 2014 @04:47PM (#7002548)
>the GNU tools are used in a huge number of operating systems

You mean linux? That isn't a huge number.

>and are installed on a staggering number of devices

The staggering number of devices you refer to almost exclusively run busybox or one of the similar projects. GNU software is hugely bloated and not a good choice for embedded systems.

>Second, it is debatable whether sticking to Hurd was a good or a bad idea technically

No, it was fine technically. It had no developers and so nothing happened. Minix exists, obviously microkernels are possible.

Re:Bzr is dying; Emacs needs to move by josephlord on Friday January 03, 2014 @05:27AM (#7004819)
GNU tools were often used on other OSes too including Solaris and other commercial Unixes but also Windows under Cygwin. Particularly GCC, make etc. but also command line tools such as grep where the default platform versions were often not as feature rich. I didn't use those platforms so others will remember and know better but I don't think huge was an obviously wrong description.
Re:Bzr is dying; Emacs needs to move by Sssnake on Friday January 03, 2014 @01:35PM (#7007144)
There is a big difference between "some people optionally could install GNU stuff in addition to their existing tools" and "those OSes use GNU tools".
Re:Bzr is dying; Emacs needs to move by josephlord on Friday January 03, 2014 @02:07PM (#7007359)
>the GNU tools are used in a huge number of operating systems

Fair enough, I read "in" as a synonym for "on" but read in a less casual way the difference could be important.

Even in the "in" case I think many BSD's used GCC as the default compiler (CLANG seems to be taking over now).

Re:Bzr is dying; Emacs needs to move by makomk on Friday January 03, 2014 @05:17AM (#7004803)
Last I heard a lot of users of Solaris and other Unixes often also use the GNU tools, though those are generally dying out in favour of Linux anyway.
Re:Bzr is dying; Emacs needs to move by Sssnake on Friday January 03, 2014 @01:34PM (#7007130)
Last you heard wrong then. Occasionally we begrudgingly install some GNU bloatware because some poorly written software requires it. That's about it. Every other OS already comes with its own versions of all the unix tools.
Re:Bzr is dying; Emacs needs to move by asveikau on Thursday January 02, 2014 @11:14AM (#7000278)
Apple still insists on building their kernel atop Mach, and it doesn't seem to stop their momentum. (Even though it's kind of a strange choice.)
Re:Bzr is dying; Emacs needs to move by gillianseed on Thursday January 02, 2014 @11:40AM (#7000441)
From what I understand, the Mach kernel which is now used in XNU is not the Mach micro kernel (3.0 >) but based upon the pre-micro-kernel 2.5 version of Mach.

I'm not sure where I read this originally but I just googled this source which seems to back it up:

http://www.roughlydrafted.com/0506.mk3.html

Re:Bzr is dying; Emacs needs to move by asveikau on Thursday January 02, 2014 @12:30PM (#7000784)
I am not intimately familiar with the history of Mach, but what I do see is that in the late 80s and early 90s these two groups (NeXT and GNU) seeing Mach as the future (a position that makes no sense at a later time), and having vastly different outcomes.

I don't know much about how these people work, but I always figured Mach at Apple is just about momentum and familiarity of contributors, rather than technology. NeXT hired Tevanian who worked on Mach at CMU, they spent roughly a decade hacking on Mach, then Apple did the same. I'd imagine they employ people who know Mach well and haven't seen it as worthwhile to replace it.

I even remember they had this goofy project "MkLinux", which sought to put Linux in the position that BSD carries with XNU, on top of Mach... Just goofy stuff, unless you figure they had Mach hackers on staff.

Re:Bzr is dying; Emacs needs to move by empthought on Thursday January 02, 2014 @01:33PM (#7001214)
According to the Apple docs XNU is based on Mach 3.0.

https://developer.apple.com/library/mac/documentation/Darwin...

Re:Bzr is dying; Emacs needs to move by valleyer on Friday January 03, 2014 @02:58AM (#7004586)
That's misleading. Apple merged in a bunch of Mach 3 code but still maintains the architecture of Mach 2.5 (i.e., Mach + BSD both running in supervisor mode in one big monolith; no BSD server; xnu is not a microkernel…).
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.