Linked by Thom Holwerda on Tue 13th Oct 2009 18:24 UTC, submitted by Lazarus
FreeBSD Not too long ago, Apple open sourced its Grand Central Dispatch library, which aids in developing multithreaded code. It was suggested that it could be ported to other platforms, and the FreeBSD team has done exactly that. They have also done a lot of work related to getting GCD to work in a POSIX environment.
Thread beginning with comment 389043
To read all comments associated with this story, please click here.
Neato
by theosib on Tue 13th Oct 2009 18:56 UTC
theosib
Member since:
2006-03-02

It's great to see this happening. When GCD first came out, I thought it was cool, but I feared that this Apple-only thing wouldn't go very far. Fortunately, Apple have realized that to get wide adoption of GCD, they would have to open-source it.

I'm a Linux user, but this also demonstrates one of the advantages of the BSD projects. Unlike Linux, which is just a kernel, FreeBSD is a whole OS distribution with tighter coupling between kernel and userspace devs. For Linux to get this, some distros devs will have to step up and port it, and I'm sure there will be some challenges getting the right hooks added to the kernel. Despite the FreeBSD folks doing most of the porting work already, I fear that it'll be a while before this starts to appear in Linux distros.

Still, it's nice to see this kind of really cool infrastructure being developed and spreading.

Reply Score: 10

RE: Neato
by Bill Shooter of Bul on Tue 13th Oct 2009 19:05 in reply to "Neato"
Bill Shooter of Bul Member since:
2006-07-14

I'm a Linux user, but this also demonstrates one of the advantages of the BSD projects. Unlike Linux, which is just a kernel, FreeBSD is a whole OS distribution with tighter coupling between kernel and userspace devs.



I would agree with you if it was integrated into the kernel and userland all in one deft move, but they aren't doing that yet. They are looking into the performance benefits of doing that after just having ported over the library. And from the sound of it, most of the work was getting the library to speak Freebsd kernel not modifications to the kernel itself.

Reply Parent Score: 4

RE: Neato
by Lazarus on Tue 13th Oct 2009 19:11 in reply to "Neato"
Lazarus Member since:
2005-08-10

It's great to see this happening. When GCD first came out, I thought it was cool, but I feared that this Apple-only thing wouldn't go very far. Fortunately, Apple have realized that to get wide adoption of GCD, they would have to open-source it.


Also of note is that Apple not only open-sourced the GCD library, but it's also Apple's intention to submit blocks as an official extension to one or more of the C-based languages.

Reply Parent Score: 3

RE[2]: Neato
by vivainio on Tue 13th Oct 2009 20:20 in reply to "RE: Neato"
vivainio Member since:
2008-12-26


Also of note is that Apple not only open-sourced the GCD library, but it's also Apple's intention to submit blocks as an official extension to one or more of the C-based languages.


This, however, is *much* more controversial than GCD. I don't expect to see much love for the feature in C programming circles, as it turns C into something completely different...

Reply Parent Score: 2

v RE: Neato
by clei on Tue 13th Oct 2009 19:43 in reply to "Neato"
RE[2]: Neato
by merkoth on Tue 13th Oct 2009 19:47 in reply to "RE: Neato"
merkoth Member since:
2006-09-22

What's so wrong about having a decent, unified threading framework? Granted, GCD has been kinda overhyped lately, but that doesn't make it any less useful.

Reply Parent Score: 5

RE[2]: Neato
by Oliver Weichhold on Tue 13th Oct 2009 19:47 in reply to "RE: Neato"
Oliver Weichhold Member since:
2009-06-06

You my friend have never done any multi-threaded development. Otherwise you would appreciate this development.

Reply Parent Score: 6

RE[2]: Neato
by theosib on Tue 13th Oct 2009 19:53 in reply to "RE: Neato"
theosib Member since:
2006-03-02

The paranoia about Mono is justified. However, while Apple is evil too, but they have a vested interest in spreading this technology and have released it under a proper FOSS license.

Being a Ph.D. student specializing in computer architecture, I have experience that tells me that something like GCD can be very helpful. It's not a slam-dunk solution, but it is a nice solution to the problem of system-wide resource allocation. Before GCD (or equivalent), parallel processing people either assumed they would have the machine to themselves, or they would have to guess about what other processes are going to be running at the same time.

You, on the other hand, seem to be making a blanket statement about GCD being useless. I'd like to know your qualifications to make that statement and your justification.

Reply Parent Score: 8

v RE: Neato
by Moulinneuf on Tue 13th Oct 2009 23:34 in reply to "Neato"
RE[2]: Neato
by MamiyaOtaru on Wed 14th Oct 2009 06:50 in reply to "RE: Neato"
MamiyaOtaru Member since:
2005-11-11

"I'm a Linux user"

You mean you use GNU/Linux and the Linux kernel in some capacity.

Right, point out that the OS Linux users use is more than just Linux the kernel, it's Linux plus GNU tools (plus a load of other stuff that you seem to want to ignore). Par for the course from you, nothing unexpected. But then...

"Unlike Linux, which is just a kernel"

Crap, we need to tell everyone who is employed by GNU/Linux distribution and company and project to pack it in if they are not working on the kernel ...

when someone says the same thing (that Linux is just the kernel) you argue with him? WTF. Isn't that what you were just saying?

What a terrible post. FFS

Edited 2009-10-14 06:57 UTC

Reply Parent Score: 5

RE[2]: Neato
by Laurence on Wed 14th Oct 2009 13:24 in reply to "RE: Neato"
Laurence Member since:
2007-03-26

A bit harsh don't you think? (particularly with the kernel related comments)


Why would they need to port it since MAc OS X is BSD and FreeBSD is BSD ? Do you mean both are not completely compatible and equal in the first place ?

OS X isn't BSD.
While it's true that OS X has a kernel based on Mach and contains BSD code, OS X isn't BSD.


I fear that it'll be a while before this starts to appear in Linux distros.


You failed to explain why GNU/Linux distro would need this at all.

Just as you've failed to explain why they wouldn't need it.


Not really , it's the same old , you can have our crumb we don't feel like developing or keeping to ourselve that you can improve for us in order to get more marketshare because the project are all stiffled by Apple presence and the BSD protection clause ...

Linux kernel is developed In Open Source ...
KDE is developed in Open Source ...
Gnome is developed in Open Source ...
Apache is developed in Open Source ...

Apple GCD let's you have what they consider is worthwile for them that other projects get.


OK, we get it: BSD is evil and GPL is Jesus Christ himself.

Meanwhile, in the real world, FreeBSD gets dtrace, ZFS and jails while Linux is stuck with a half-built BtrFS.

Don't get me wrong, I love Linux to bits (I use Arch as my primary OS) - but seriously, GPL isn't the saviour of software licenses. It's just one of many good licenses available.

Reply Parent Score: 5