Concurrency.

deadalnix deadalnix at gmail.com
Mon Nov 28 03:42:23 PST 2011


Le 28/11/2011 06:51, Debdata a écrit :
> Hi,
>
> I have been evaluating D for the past week, and have some concerns regarding the No Default sharing rule. I have been reading the D book by Andrei as
> well. This particular feature has been very confusing to me as I come from the c++ world.
>
> I agree that message passing and resource hiding are a great way to go for a lot of cases, but there are an equally large (Larger?) number of cases
> that would benefit from global sharing. Especially when threading for performance rather than convenience. The cutting edge of high performance
> threading is really the task stealing approach. See intel's TBB, cilk, etc. Implementing things like that would become unnecessarily verbose as most
> things will be shared and we have to keep tagging.
>
> Unless I am missing something. :D
>
> -Debdatta Basu

What you think is an advantage is actually a source of errors very 
difficult to spot. See that document : 
http://www.hpl.hp.com/personal/Hans_Boehm/misc_slides/pldi05_threads.pdf


More information about the Digitalmars-d mailing list