www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - What's the current status of GC in phobos?

reply "MarisaLovesUsAll" <marisalovesusall gmail.com> writes:
Hi!
Today I met one guy on the internet, he said that he will use D 
only if standard library will not require Garbage Collector (in 
case of total GC disabling).
So what's the current status of GC in Phobos? :^)
I've heard there has been some work on it.

Regards,
Alex
Apr 04 2015
next sibling parent "MarisaLovesUsAll" <marisalovesusall gmail.com> writes:
On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll wrote:
 Hi!
 Today I met one guy on the internet, he said that he will use D 
 only if standard library will not require Garbage Collector (in 
 case of total GC disabling).
 So what's the current status of GC in Phobos? :^)
 I've heard there has been some work on it.

 Regards,
 Alex
BTW, there is some people that dislikes D because of GC. If it's possible to write GC-free code, people should know about GC disabling.
We aim to make the standard library usable in its entirety 
without a garbage collector.
Maybe phobos no-GC update will be a good opportunity. And thanks for the D, it's awesome. :^) Regards, Alex
Apr 04 2015
prev sibling next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 4/4/15 7:23 PM, MarisaLovesUsAll wrote:
 Hi!
 Today I met one guy on the internet, he said that he will use D only if
 standard library will not require Garbage Collector (in case of total GC
 disabling).
 So what's the current status of GC in Phobos? :^)
 I've heard there has been some work on it.

 Regards,
 Alex
The short answer is there's progress on that, which I expect to accelerate soon. But we're not there yet. -- Andrei
Apr 04 2015
prev sibling parent reply "weaselcat" <weaselcat gmail.com> writes:
On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll wrote:
 Hi!
 Today I met one guy on the internet, he said that he will use D 
 only if standard library will not require Garbage Collector (in 
 case of total GC disabling).
 So what's the current status of GC in Phobos? :^)
 I've heard there has been some work on it.

 Regards,
 Alex
I expect 2.068 to be the first version of D really "usable" without the GC if we get std.allocator/ nogc smartpointers/etc, but I might just be sticking my foot in my mouth right now. : )
Apr 04 2015
parent reply "Kapps" <opantm2+spam gmail.com> writes:
On Sunday, 5 April 2015 at 05:10:21 UTC, weaselcat wrote:
 On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll wrote:
 Hi!
 Today I met one guy on the internet, he said that he will use 
 D only if standard library will not require Garbage Collector 
 (in case of total GC disabling).
 So what's the current status of GC in Phobos? :^)
 I've heard there has been some work on it.

 Regards,
 Alex
I expect 2.068 to be the first version of D really "usable" without the GC if we get std.allocator/ nogc smartpointers/etc, but I might just be sticking my foot in my mouth right now. : )
Unfortunately, I doubt nogc exception support will be ready for 2.068 (there isn't even any plans for it at the moment), and nogc is still unusable until that's taken care of.
Apr 05 2015
parent reply "weaselcat" <weaselcat gmail.com> writes:
On Sunday, 5 April 2015 at 08:08:26 UTC, Kapps wrote:
 On Sunday, 5 April 2015 at 05:10:21 UTC, weaselcat wrote:
 On Sunday, 5 April 2015 at 02:23:47 UTC, MarisaLovesUsAll 
 wrote:
 Hi!
 Today I met one guy on the internet, he said that he will use 
 D only if standard library will not require Garbage Collector 
 (in case of total GC disabling).
 So what's the current status of GC in Phobos? :^)
 I've heard there has been some work on it.

 Regards,
 Alex
I expect 2.068 to be the first version of D really "usable" without the GC if we get std.allocator/ nogc smartpointers/etc, but I might just be sticking my foot in my mouth right now. : )
Unfortunately, I doubt nogc exception support will be ready for 2.068 (there isn't even any plans for it at the moment), and nogc is still unusable until that's taken care of.
yep, foot in mouth.
Apr 05 2015
parent "MarisaLovesUsAll" <marisalovesusall gmail.com> writes:
Thanks for the answers!
Apr 05 2015