Dynamic Code in D
Sean Kelly
sean at f4.ca
Sun Jan 13 20:24:46 PST 2008
Michael Wilson wrote:
> bearophile wrote:
>
>>> 2. High-performance synchronization. As of 1.6, Java's monitor
> >> implementation is quite impressive;<
>>
>> I don't know the answer, but in most things D is far from being tuned
> > and refined, etc. In that kind of things only C# may be better.
>
> That's something I could potentially help with once I'm decently
> familiar with the language, if the GDC developers are accepting patches.
> Otherwise, I could just implement my own synchronization, via
> inline assembly (since this doesn't have to be multi-platform) or C.
Right now, D uses OS API routines for synchronization. Tango also has a
Mutex class design that integrates with the 'synchronized' statement,
and it would be pretty easy to create a futex or whatever that does the
same thing. This may be the way to go for special-purpose locking.
Sean
More information about the Digitalmars-d
mailing list