www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - New Garbage Collector?

reply aedt <adnansignsup gmail.com> writes:
In the forum, I saw a thread about someone working on a new GC. 
Just wanted to know if there's any updates on that. And what 
issues is it going to fix..

Personally, I would be greatly delighted if it acknowledges the 
Stop-The-World problem[1]. Going around it is shown not to be 
impossible[2]. I do understand it's not trivial task but how is 
the community/core devs supporting this?

[1] https://dlang.org/spec/garbage.html
[2] https://hub.docker.com/r/nimlang/nim/
Jul 21 2017
next sibling parent reply Temtaime <temtaime gmail.com> writes:
On Saturday, 22 July 2017 at 04:53:17 UTC, aedt wrote:
 In the forum, I saw a thread about someone working on a new GC. 
 Just wanted to know if there's any updates on that. And what 
 issues is it going to fix..

 Personally, I would be greatly delighted if it acknowledges the 
 Stop-The-World problem[1]. Going around it is shown not to be 
 impossible[2]. I do understand it's not trivial task but how is 
 the community/core devs supporting this?

 [1] https://dlang.org/spec/garbage.html
 [2] https://hub.docker.com/r/nimlang/nim/
The new precise GC will be never added to druntime. It is dead, man.
Jul 22 2017
next sibling parent tetyys <tetyys tetyys.com> writes:
On Saturday, 22 July 2017 at 10:17:49 UTC, Temtaime wrote:
 The new precise GC will be never added to druntime.
 It is dead, man.
Why?
Jul 22 2017
prev sibling next sibling parent reply Igor Shirkalin <mathsoft inbox.ru> writes:
On Saturday, 22 July 2017 at 10:17:49 UTC, Temtaime wrote:
 On Saturday, 22 July 2017 at 04:53:17 UTC, aedt wrote:
 In the forum, I saw a thread about someone working on a new 
 GC. Just wanted to know if there's any updates on that. And 
 what issues is it going to fix..

 Personally, I would be greatly delighted if it acknowledges 
 the Stop-The-World problem[1]. Going around it is shown not to 
 be impossible[2]. I do understand it's not trivial task but 
 how is the community/core devs supporting this?

 [1] https://dlang.org/spec/garbage.html
 [2] https://hub.docker.com/r/nimlang/nim/
The new precise GC will be never added to druntime. It is dead, man.
Are you real developer of new GC?
Jul 22 2017
next sibling parent Stefan Koch <uplink.coder googlemail.com> writes:
On Saturday, 22 July 2017 at 16:35:03 UTC, Igor Shirkalin wrote:
 On Saturday, 22 July 2017 at 10:17:49 UTC, Temtaime wrote:
 On Saturday, 22 July 2017 at 04:53:17 UTC, aedt wrote:
 In the forum, I saw a thread about someone working on a new 
 GC. Just wanted to know if there's any updates on that. And 
 what issues is it going to fix..

 Personally, I would be greatly delighted if it acknowledges 
 the Stop-The-World problem[1]. Going around it is shown not 
 to be impossible[2]. I do understand it's not trivial task 
 but how is the community/core devs supporting this?

 [1] https://dlang.org/spec/garbage.html
 [2] https://hub.docker.com/r/nimlang/nim/
The new precise GC will be never added to druntime. It is dead, man.
Are you real developer of new GC?
He's not he's just a naysayer :)
Jul 22 2017
prev sibling parent reply Temtaime <temtaime gmail.com> writes:
On Saturday, 22 July 2017 at 16:35:03 UTC, Igor Shirkalin wrote:
 On Saturday, 22 July 2017 at 10:17:49 UTC, Temtaime wrote:
 On Saturday, 22 July 2017 at 04:53:17 UTC, aedt wrote:
 In the forum, I saw a thread about someone working on a new 
 GC. Just wanted to know if there's any updates on that. And 
 what issues is it going to fix..

 Personally, I would be greatly delighted if it acknowledges 
 the Stop-The-World problem[1]. Going around it is shown not 
 to be impossible[2]. I do understand it's not trivial task 
 but how is the community/core devs supporting this?

 [1] https://dlang.org/spec/garbage.html
 [2] https://hub.docker.com/r/nimlang/nim/
The new precise GC will be never added to druntime. It is dead, man.
Are you real developer of new GC?
I am that who sees _no progress_ for many years. Current implementation does memory leaks, works slow and has some other disadvantages. But no one of the « real » developers sees reason to rewrite the gc, because they want to play with theirs toys bringing new not so essential stuff to the d. And we will suffer from this many years.
Jul 23 2017
parent reply Moritz Maxeiner <moritz ucworks.org> writes:
On Sunday, 23 July 2017 at 09:34:09 UTC, Temtaime wrote:
 On Saturday, 22 July 2017 at 16:35:03 UTC, Igor Shirkalin wrote:
 On Saturday, 22 July 2017 at 10:17:49 UTC, Temtaime wrote:
 On Saturday, 22 July 2017 at 04:53:17 UTC, aedt wrote:
 In the forum, I saw a thread about someone working on a new 
 GC. Just wanted to know if there's any updates on that. And 
 what issues is it going to fix..

 Personally, I would be greatly delighted if it acknowledges 
 the Stop-The-World problem[1]. Going around it is shown not 
 to be impossible[2]. I do understand it's not trivial task 
 but how is the community/core devs supporting this?

 [1] https://dlang.org/spec/garbage.html
 [2] https://hub.docker.com/r/nimlang/nim/
The new precise GC will be never added to druntime. It is dead, man.
Are you real developer of new GC?
I am that who sees _no progress_ for many years.
Slow progress != no progess [1]
 Current implementation does memory leaks
Which bug reports are you referring to specifically?
 works slow
It's not the best a non-generational stop-the-world mark-and-sweep GC can be, but in my experience it's good enough for non-realtime applications as long as you don't use it for huge memory chunks (i.e. stick to objects without large arrays).
 and has some other disadvantages.
Which are you referring to?
 And we will suffer from this many years.
Have you read the excellent blog posts about to use the GC in D by Micheal Parker [2][3]? [1] https://github.com/dlang/druntime/commits/master/src/gc [2] http://dlang.org/blog/2017/03/20/dont-fear-the-reaper/ [3] https://dlang.org/blog/2017/06/16/life-in-the-fast-lane/
Jul 23 2017
parent Moritz Maxeiner <moritz ucworks.org> writes:
On Sunday, 23 July 2017 at 09:54:36 UTC, Moritz Maxeiner wrote:
 Have you read the excellent blog posts about to use the GC in D 
 by Micheal Parker [2][3]?
* Have you read the excellent blog posts about how to use the GC in D by Michael Parker [2][3]? Sorry about that.
 [2] http://dlang.org/blog/2017/03/20/dont-fear-the-reaper/
 [3] https://dlang.org/blog/2017/06/16/life-in-the-fast-lane/
Jul 23 2017
prev sibling parent Nick Treleaven <nick geany.org> writes:
On Saturday, 22 July 2017 at 10:17:49 UTC, Temtaime wrote:
 The new precise GC will be never added to druntime.
2.075 has precise scanning of the DATA and the TLS segments (on Windows): http://dlang.org/spec/garbage.html#precise_dataseg This seems like significant progress towards precise scanning of the heap.
Jul 25 2017
prev sibling parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
On Saturday, 22 July 2017 at 04:53:17 UTC, aedt wrote:
 In the forum, I saw a thread about someone working on a new GC. 
 Just wanted to know if there's any updates on that. And what 
 issues is it going to fix..

 Personally, I would be greatly delighted if it acknowledges the 
 Stop-The-World problem[1]. Going around it is shown not to be 
 impossible[2]. I do understand it's not trivial task but how is 
 the community/core devs supporting this?

 [1] https://dlang.org/spec/garbage.html
 [2] https://hub.docker.com/r/nimlang/nim/
I'm working on new GC. First iteration aims to be faster at allocation and at collection without changing the fundamental mark-sweep strategy. Second stage is getting concurrent collection. It wouldn't be a real-time miracle, but a pause time in the range of 10-20ms is possible.
Jul 22 2017