digitalmars.D.announce - GC blessed for C++ (again)
- =?UTF-8?Q?Ali_=c3=87ehreli?= (2/2) Sep 28 2016 https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experi...
- Russel Winder via Digitalmars-d-announce (14/17) Sep 29 2016 And the comments in the thread confirm why Reddit is a massive waste of
- deadalnix (5/7) Sep 29 2016 GC is unnacceptable !
- finalpatch (7/10) Sep 30 2016 I think the difference is that the solution is scoped to only
- Dejan Lekic (6/8) Sep 30 2016 The paragraph I like the most there is: "The other important
- deadalnix (6/15) Oct 07 2016 We already have opt-in for the most part and I've been pushing
- jmh530 (3/7) Oct 07 2016 Something that isn't "new for the D community" can still be
- Atila Neves (4/20) Oct 09 2016 I don't know about failing - the isolated thing immediately
- Swoorup Joshi (4/6) Apr 09 2017 Is it possible to have something similar as in library rather
- Jack Stouffer (2/9) Apr 09 2017 Not without breaking changes.
- Swoorup Joshi (3/13) Apr 11 2017 Breaking, you mean the standard library? or including user
- Atila Neves (4/18) Apr 11 2017 There's nothing stopping anyone from writing something similar in
- Jack Stouffer (4/6) Apr 11 2017 Taking the GC out of language constructs (e.g. ~=, AAs) would be
- jmh530 (7/13) Apr 11 2017 Is there a non-breaking way to do it that would increase the
- Jack Stouffer (20/26) Apr 11 2017 From what I understand, the plan has always been to start to
https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ Ali
Sep 28 2016
On Wed, 2016-09-28 at 13:50 -0700, Ali =C3=87ehreli via Digitalmars-d- announce wrote:https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_exp erimental_deferred_and_unordered/ =20And the comments in the thread confirm why Reddit is a massive waste of time and resources. It should be garbage collected. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 29 2016
On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ AliGC is unnacceptable ! Ho ! a deferred and unordered destruction library, really cool ! Is there intelligent life in the C++ world ?
Sep 29 2016
On Friday, 30 September 2016 at 03:42:27 UTC, deadalnix wrote:GC is unnacceptable ! Ho ! a deferred and unordered destruction library, really cool ! Is there intelligent life in the C++ world ?I think the difference is that the solution is scoped to only those objects that you chose to use GC on, rather than GC everything by default. Because the GC is limited to a small set of objects and is done in a controlled manner, this avoids unpredictable pauses and problems with interop with external libraries.
Sep 30 2016
On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ AliThe paragraph I like the most there is: "The other important difference is that deferred_heap meets C++'s zero-overhead principle by being opt-in and granular, not default and global" That is what I like the most about Herb's work...
Sep 30 2016
On Friday, 30 September 2016 at 14:12:30 UTC, Dejan Lekic wrote:On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:We already have opt-in for the most part and I've been pushing for granular with isolated since at least 2014. So yeah, Herb's proposal is old news, but worse, it is kind of disappointing that it is anything new for the D community. I'm not sure if I or the community failed, but clearly there is a major failure here.https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ AliThe paragraph I like the most there is: "The other important difference is that deferred_heap meets C++'s zero-overhead principle by being opt-in and granular, not default and global" That is what I like the most about Herb's work...
Oct 07 2016
On Friday, 7 October 2016 at 21:21:43 UTC, deadalnix wrote:We already have opt-in for the most part and I've been pushing for granular with isolated since at least 2014. So yeah, Herb's proposal is old news, but worse, it is kind of disappointing that it is anything new for the D community.Something that isn't "new for the D community" can still be interesting.
Oct 07 2016
On Friday, 7 October 2016 at 21:21:43 UTC, deadalnix wrote:On Friday, 30 September 2016 at 14:12:30 UTC, Dejan Lekic wrote:I don't know about failing - the isolated thing immediately reminded me of your proposal. AtilaOn Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:We already have opt-in for the most part and I've been pushing for granular with isolated since at least 2014. So yeah, Herb's proposal is old news, but worse, it is kind of disappointing that it is anything new for the D community. I'm not sure if I or the community failed, but clearly there is a major failure here.[...]The paragraph I like the most there is: "The other important difference is that deferred_heap meets C++'s zero-overhead principle by being opt-in and granular, not default and global" That is what I like the most about Herb's work...
Oct 09 2016
On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ AliIs it possible to have something similar as in library rather than GC in core language construct?
Apr 09 2017
On Monday, 10 April 2017 at 04:17:21 UTC, Swoorup Joshi wrote:On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:Not without breaking changes.https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ AliIs it possible to have something similar as in library rather than GC in core language construct?
Apr 09 2017
On Monday, 10 April 2017 at 04:49:34 UTC, Jack Stouffer wrote:On Monday, 10 April 2017 at 04:17:21 UTC, Swoorup Joshi wrote:Breaking, you mean the standard library? or including user codebases?On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:Not without breaking changes.https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ AliIs it possible to have something similar as in library rather than GC in core language construct?
Apr 11 2017
On Tuesday, 11 April 2017 at 07:02:19 UTC, Swoorup Joshi wrote:On Monday, 10 April 2017 at 04:49:34 UTC, Jack Stouffer wrote:There's nothing stopping anyone from writing something similar in D. It just wouldn't make `new` not allocate on the GC heap. AtilaOn Monday, 10 April 2017 at 04:17:21 UTC, Swoorup Joshi wrote:Breaking, you mean the standard library? or including user codebases?On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:Not without breaking changes.https://www.reddit.com/r/programming/comments/54xnbg/herb_sutters_experimental_deferred_and_unordered/ AliIs it possible to have something similar as in library rather than GC in core language construct?
Apr 11 2017
On Tuesday, 11 April 2017 at 07:02:19 UTC, Swoorup Joshi wrote:Breaking, you mean the standard library? or including user codebases?Taking the GC out of language constructs (e.g. ~=, AAs) would be a massive breaking change and would probably break the majority of D code in existence.
Apr 11 2017
On Tuesday, 11 April 2017 at 16:16:03 UTC, Jack Stouffer wrote:On Tuesday, 11 April 2017 at 07:02:19 UTC, Swoorup Joshi wrote:Is there a non-breaking way to do it that would increase the amount of flexibility while keeping the current behavior as a default? For instance, the equivalent of using std.experimental.allocator so that a user could switch between the default being GCAllocator or Mallocator, or something like that...Breaking, you mean the standard library? or including user codebases?Taking the GC out of language constructs (e.g. ~=, AAs) would be a massive breaking change and would probably break the majority of D code in existence.
Apr 11 2017
On Tuesday, 11 April 2017 at 16:50:20 UTC, jmh530 wrote:Is there a non-breaking way to do it that would increase the amount of flexibility while keeping the current behavior as a default? For instance, the equivalent of using std.experimental.allocator so that a user could switch between the default being GCAllocator or Mallocator, or something like that...From what I understand, the plan has always been to start to integrate std.experimental.allocator into Phobos when it stabilizes. There are some questions though: 1. How is this going to be done? Do we have the functions in Phobos allocate with theAllocator? Or, do we pass in an allocator type via template parameter? Or, do we pass in an allocator instance via function parameter? Each solution has it's own pros and cons. 2. How do you make it safe? For the GC allocator, you can make allocation safe, but not deallocation. So do you special case GCAllocator in Phobos code to not call GCAllocator.deallocate() and just let the GC collect? 3. How will safe ref-counting play in with this? Andrei has his sights set on putting all strings in their own ref-counted store in order to make them safe nogc. Is RC going to be it's own allocator? I've never seen comprehensive plans or ideas about allocator integration. I've heard rumblings about a collections library that supposed to use it, but never seen anything.
Apr 11 2017