Cilk/Cilk++
bearophile
bearophileHUGS at lycos.com
Mon Aug 11 12:15:45 PDT 2008
Sean Kelly:
> Yeah, I and I believe others have suggested Cilk as one of the languages
> worth investigating as a model for built-in parallel programming
> features in D. But for whatever reason no one has seemed terribly
> interested.
Cilk is probably not perfect (it seems not easy to mix multithreading and such parallel computations), but parallel programming is a quite complex matter, and there's little hope in re-inventing too much good things. Cilk behind has years of theoretical study, a C++ implementation (Cilk++) that I think you can buy (or you will be able to buy), so it's already solid enough, and even a my limited brain seems able to understand enough how how to use it (and it has some other advantages, like if you remove the cilk statements you objtain working C code. The resulting code looks clean enough, even if you have to add some recursivity where where's none, etc), so it may be better this than something invented ex-novo, for D.
Bye,
bearophile
More information about the Digitalmars-d
mailing list