Low-Lock Singletons In D

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun May 5 21:34:11 PDT 2013


On 5/5/13 10:35 PM, dsimcha wrote:
> On the advice of Walter and Andrei, I've written a blog article about
> the low-lock Singleton pattern in D. This is a previously obscure
> pattern that uses thread-local storage to make Singletons both
> thread-safe and efficient and was independently invented by at least me
> and Alexander Terekhov, an IBM researcher. However, D's first-class
> treatment of thread-local storage means the time has come to move it out
> of obscurity and possibly make it the standard way to do Singletons.
>
> Article:
> http://davesdprogramming.wordpress.com/2013/05/06/low-lock-singletons/
>
> Reddit:
> http://www.reddit.com/r/programming/comments/1droaa/lowlock_singletons_in_d_the_singleton_pattern/

The reddit post is in need for upvotes to make it on the /r/programming 
front page. I think posting time wasn't the best: Saturday is the worst 
day to post anything 
(http://www.slideshare.net/babasave/the-hidden-secrets-of-successful-reddit-posts).

Anyhow, I've also posted to https://news.ycombinator.com/item?id=5660897

Vote up!


Andrei




More information about the Digitalmars-d mailing list