News for hackers. Stuff that matters.
Re:High-performance garbage collection for C++ by whizzter on Tuesday September 15, 2026 @06:59AM (#49710561)
Automatic trace definetly yes, however since they also removed GC support from the standard it's quite useless (exact object tracing is useless if you cannot accurately scan the stack).

Also co-routines with it's under the hood management of coroutine stack probably would've complicated GC support even more...

Re:High-performance garbage collection for C++ by pjmlp on Tuesday September 15, 2026 @08:47AM (#49711715)
C++11 GC was useless from the start, I don't get how it ended up being voted in.

At the time the two main customers of having a C++ GC would be Unreal C++ and C++/CLI, the design that landed on the standard serves neither of them, thus no one adopted it.

Re:High-performance garbage collection for C++ by whizzter on Wednesday September 16, 2026 @04:17AM (#49723468)
Peeked a bit more at the C++ 11 stuff, it seems very Boehm specific and yes quite uesless (I doubt the C++/CLI people ever considered the stuff in the standard).

Having written a bunch of more or less complete GC based runtimes, the boundary between C++ code and runtime code is often painful mostly due to GC tracking and reading the article I can only concur with what they're doing with Oilpan for V8/Chrome.

Having had a way in C++ to interrogate the current stack and then trace objects (via C++26 reflections) would've sufficed and probably alleviated the need for a separate GC.

Re:High-performance garbage collection for C++ by pjmlp on Wednesday September 16, 2026 @04:31AM (#49723590)
Yes indeed, and that is why it got removed from the standard eventually, however the question remains how was this even voted in.

Which is why I became kind of vocal regarding existing practice, or at least preview for community feedback, as there are already several examples of stuff landing into the standard that were not properly baked to start with.

Re:High-performance garbage collection for C++ by pebal on Tuesday September 15, 2026 @03:27PM (#49717595)
The standard provided no GC support. What was there was completely useless.
Re:High-performance garbage collection for C++ by whizzter on Wednesday September 16, 2026 @04:18AM (#49723482)
It seemed very Boehm specific and yes quite uesless.

Wrote a bit more in the sibling comment to pjmpl.