Something needs to happen with shared, and soon.
Michel Fortin
michel.fortin at michelf.ca
Tue Nov 13 19:12:12 PST 2012
On 2012-11-13 19:54:32 +0000, Timon Gehr <timon.gehr at gmx.ch> said:
> On 11/12/2012 02:48 AM, Michel Fortin wrote:
>> I feel like the concurrency aspect of D2 was rushed in the haste of
>> having it ready for TDPL. Shared, deadlock-prone synchronized classes[1]
>> as well as destructors running in any thread (thanks GC!) plus a couple
>> of other irritants makes the whole concurrency scheme completely flawed
>> if you ask me. D2 needs a near complete overhaul on the concurrency front.
>>
>> I'm currently working on a big code base in C++. While I do miss D when
>> it comes to working with templates as well as for its compilation speed
>> and a few other things, I can't say I miss D much when it comes to
>> anything touching concurrency.
>>
>> [1]: http://michelf.ca/blog/2012/mutex-synchonization-in-d/
>
> I am always irritated by shared-by-default static variables.
I tend to have very little global state in my code, so
shared-by-default is not something I have to fight with very often. I
do agree that thread-local is a better default.
--
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca/
More information about the Digitalmars-d
mailing list