News for hackers. Stuff that matters.
Re:C++23: Removing garbage collection support by vore on Wednesday November 01, 2023 @12:17PM (#38100459)
I would probably agree with those scientists, this seems like a “well actually” kind of gotcha claim with no practical significance when there is no usable implementation of this.
Re:C++23: Removing garbage collection support by CoastalCoder on Wednesday November 01, 2023 @12:22PM (#38100552)
I think the main issue with those folks wasn't if/how they're right, but rather how they treated the commenter.
Re:C++23: Removing garbage collection support by moralestapia on Wednesday November 01, 2023 @12:41PM (#38100908)
This.

The thing was so obscure that even seasoned people who have worked with this for many years didn't know about that; and yes, I added little bit of "be humble because you never know what you don't know".

Re:C++23: Removing garbage collection support by pavlov on Wednesday November 01, 2023 @01:23PM (#38101573)
And more specifically, never get into arguments about what C++ can do because it’s guaranteed that someone has used it the way you assume it should never be used.
Re:C++23: Removing garbage collection support by angiosperm on Thursday November 02, 2023 @01:11AM (#38109252)
They probably totally forgot the conversation only seconds later, and did not intend humiliation or perceive any humiliation. He said something not usefully correct for the circumstances under discussion, and was corrected without fuss.

Then he carried a grudge.

Re:C++23: Removing garbage collection support by astrange on Wednesday November 01, 2023 @05:39PM (#38105725)
Re:C++23: Removing garbage collection support by bachmeier on Wednesday November 01, 2023 @10:24PM (#38108214)
From Bjarne's website:

> If you want automatic garbage collection, there are good commercial and public-domain garbage collectors for C++. For applications where garbage collection is suitable, C++ is an excellent garbage collected language with a performance that compares favorably with other garbage collected languages. See The C++ Programming Language for a discussion of automatic garbage collection in C++. See also, Hans-J. Boehm's site for C and C++ garbage collection.

> Also, C++ supports programming techniques that allows memory management to be safe and implicit without a garbage collector. I consider garbage collection a last choice and an imperfect way of handling for resource management. That does not mean that it is never useful, just hat there are better approaches in many situations.

> C++11 offers a GC ABI.

https://www.stroustrup.com/bs_faq.html#garbage-collection

It seems few remember the days when Java put so much pressure on C++ that Bjarne S was very much trying to find a way to provide GC for those who wanted it. In 2023, the folks wanting GC are all using those languages, and it's assumed C++ is anti-GC.