Re: Reference Counting Template

2009-12-13 Thread Andrei Alexandrescu
dsimcha wrote: I'm starting to think it would be both useful and feasible to have a general reference counting template struct in Phobos: struct RefCounted(T, alias onZero) { // Implementation } Basically, you would provide it with a type T that it's supposed to count references to and an a

Re: D2 GUI Libs

2009-12-13 Thread Andrei Alexandrescu
Eldar Insafutdinov wrote: Andrei Alexandrescu Wrote: Thanks for cooperation. I don't want to sound like I've given the right to ask for features, because I am working on a particular D project. But at the same time, indeed, while working on this project I found many things that I would like to be

Re: D gets a mention by Verity Stob

2009-12-13 Thread Andrei Alexandrescu
JMRyan wrote: Andrei Alexandrescu wrote in news:hg0d2f $26j...@digitalmars.com: Love the Stob. The factorial joke on page 3 is really funny :o). As funny as the factorial joke is, it doesn't work because infinity - 1 = infinity (for the same reason infinity! = infinity). JMRyan The fact

Re: D gets a mention by Verity Stob

2009-12-13 Thread Simen kjaeraas
JMRyan wrote: Andrei Alexandrescu wrote in news:hg0d2f $26j...@digitalmars.com: Love the Stob. The factorial joke on page 3 is really funny :o). As funny as the factorial joke is, it doesn't work because infinity - 1 = infinity (for the same reason infinity! = infinity). JMRyan There ar

Re: D2 GUI Libs

2009-12-13 Thread Bob Jones
"Bill Baxter" wrote in message news:mailman.593.1260627949.20261.digitalmar...@puremagic.com... > On Sat, Dec 12, 2009 at 5:05 AM, bearophile > wrote: >> dsimcha: >> >>> I'm thinking of giving another try to writing a plotting library for D. >> >> I like what you have written. >> I suggest thi

Re: Reference Counting Template

2009-12-13 Thread Lutger
dsimcha wrote: ... > Does this sound worthwhile? Yes, we need this.

Re: D2 GUI Libs

2009-12-13 Thread Nick Sabalausky
"Eldar Insafutdinov" wrote in message news:hg3g6u$11s...@digitalmars.com... > Nick Sabalausky Wrote: > >> "Nick Sabalausky" wrote in message >> news:hg394f$mr...@digitalmars.com... >> > "Eldar Insafutdinov" wrote in message >> > news:hg2p87$2tt...@digitalmars.com... >> >> >> >> 1) You may know

Re: D2 GUI Libs

2009-12-13 Thread Leandro Lucarella
BLS, el 12 de diciembre a las 19:53 me escribiste: > if you want to make money : make it close source. You got it *so* wrong. -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ -- GPG Key: 5F5A8D05 (F8CD F

Re: D1 garbage collector + threads + malloc = garbage?

2009-12-13 Thread Leandro Lucarella
Walter Bright, el 12 de diciembre a las 10:29 me escribiste: > Leandro Lucarella wrote: > >If you could add a small description of what the commit is about besides > >pointing the NG discussion/Bugzilla number, as you are doing with DMD now, > >it would be really great! =) > > Just click on the li

Re: D2 GUI Libs

2009-12-13 Thread Eldar Insafutdinov
Nick Sabalausky Wrote: > "Nick Sabalausky" wrote in message > news:hg394f$mr...@digitalmars.com... > > "Eldar Insafutdinov" wrote in message > > news:hg2p87$2tt...@digitalmars.com... > >> > >> 1) You may know the concept of signals and slots in Qt. Consider the > >> following snippet: > >> >

Re: Reference Counting Template

2009-12-13 Thread bearophile
dsimcha: > Reference counting is a pretty useful general technique for managing resources > that can't have cycles and I think it makes sense to have a generic template > for it instead of having people reimplement the same code over and over for > file handles, large arrays of primitives that the

Reference Counting Template

2009-12-13 Thread dsimcha
I'm starting to think it would be both useful and feasible to have a general reference counting template struct in Phobos: struct RefCounted(T, alias onZero) { // Implementation } Basically, you would provide it with a type T that it's supposed to count references to and an action (a function

Re: D2 GUI Libs

2009-12-13 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:hg394f$mr...@digitalmars.com... > "Eldar Insafutdinov" wrote in message > news:hg2p87$2tt...@digitalmars.com... >> >> 1) You may know the concept of signals and slots in Qt. Consider the >> following snippet: >> >> class Test : QObject >> { >>mixin S

Re: D2 GUI Libs

2009-12-13 Thread Nick Sabalausky
"Eldar Insafutdinov" wrote in message news:hg2p87$2tt...@digitalmars.com... > > 1) You may know the concept of signals and slots in Qt. Consider the > following snippet: > > class Test : QObject > { >mixin Signal!("signal_1(string)"); > >mixin Slot!("slot_1(string str)"); >void slot_

Re: D2 GUI Libs

2009-12-13 Thread retard
Sun, 13 Dec 2009 17:50:03 +0100, Chris wrote: > "retard" >> IIRC if you use e.g. microsoft messenger, you have to defend them in >> court if they insist. > > Please, can you explain this, and where exactly this clause appear? > Thank you. IIRC in the EULA of some previous version of the messenge

Re: D2 GUI Libs

2009-12-13 Thread Chris
"retard" > IIRC if you use e.g. microsoft messenger, you have to defend them in court > if they insist. Please, can you explain this, and where exactly this clause appear? Thank you.

Re: D gets a mention by Verity Stob

2009-12-13 Thread JMRyan
Andrei Alexandrescu wrote in news:hg0d2f $26j...@digitalmars.com: > > Love the Stob. The factorial joke on page 3 is really funny :o). As funny as the factorial joke is, it doesn't work because infinity - 1 = infinity (for the same reason infinity! = infinity). JMRyan

Re: D2 GUI Libs

2009-12-13 Thread torhu
On 12.12.2009 6:10, dsimcha wrote: I'm thinking of giving another try to writing a plotting library for D. I'm trying to decide what GUI library to use. Here's what's important to me, in order of importance. Someone who's more familiar with the GUI library situation than I am please make a rec

Re: D2 GUI Libs

2009-12-13 Thread Eldar Insafutdinov
Andrei Alexandrescu Wrote: > Eldar Insafutdinov wrote: > > Right now we are working on a next QtD version. We dropped support > > for D1, it is D2 only. I believe Qt suits all your requirements very > > well. It's performant - we try to emulate as many C++ types using D > > structs as possible, fo

Re: D2 GUI Libs

2009-12-13 Thread Eldar Insafutdinov
Andrei Alexandrescu Wrote: > Eldar Insafutdinov wrote: > > Right now we are working on a next QtD version. We dropped support > > for D1, it is D2 only. I believe Qt suits all your requirements very > > well. It's performant - we try to emulate as many C++ types using D > > structs as possible, fo

Re: opEquals(const ref yadaYada)

2009-12-13 Thread Steven Schveighoffer
Richard Webb Wrote: > Hi, > I mentioned this problem in the thread @ > http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=18405 > > I ran into the rvalue problem while trying to get Juno to compile, and found > that it builds ok if you declare both > > b

Re: Kitchener Wants You...r programmer friends who don't know D

2009-12-13 Thread Roman Ivanov
Andrei Alexandrescu Wrote: > http://erdani.com/email/ Sent you an email. Though due to a quirk of my webmail client, it ended up having a blank subject line, and probably takes a fully deserved rest in your spam folder.