On Thu, 2010-11-11 at 18:24 +0100, Tobias Pfaff wrote:
[ . . . ]
> Unfortunately I only know about the standard stuff, OpenMP/OpenCL...
> Speaking of which: Are there any attempts to support lightweight 
> multithreading in D, that is, something like OpenMP ?

I'd hardly call OpenMP lightweight.  I agree that as a meta-notation for
directing the compiler how to insert appropriate code to force
multithreading of certain classes of code, using OpenMP generally beats
manual coding of the threads.  But OpenMP is very Fortran oriented even
though it can be useful for C, and indeed C++ as well.

However, given things like Threading Building Blocks (TBB) and the
functional programming inspired techniques used by Chapel, OpenMP
increasingly looks like a "hack" rather than a solution.

Using parallel versions of for, map, filter, reduce in the language is
probably a better way forward.

Having a D binding to OpenCL (and OpenGL, MPI, etc.) is probably going
to be a good thing.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: rus...@russel.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to