C++ Weekly - Ep 256 - C++11's Garbage Collector

preview_player
Показать описание
☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟

T-SHIRTS AVAILABLE!

WANT MORE JASON?

SUPPORT THE CHANNEL

GET INVOLVED

JASON'S BOOKS

► C++23 Best Practices

► C++ Best Practices

JASON'S PUZZLE BOOKS

► Object Lifetime Puzzlers Book 1

► Object Lifetime Puzzlers Book 2

► Object Lifetime Puzzlers Book 3

► Copy and Reference Puzzlers Book 1

► Copy and Reference Puzzlers Book 2

► Copy and Reference Puzzlers Book 3

► OpCode Puzzlers Book 1


RECOMMENDED BOOKS

AWESOME PROJECTS

O'Reilly VIDEOS

Рекомендации по теме
Комментарии
Автор

It's kind of funny that in c++ even the garbage collector is a dangling pointer XD

DamianReloaded
Автор

"The standard comitee is meeting in Hawaï each year" Definitly the best argument to improve myself in C++ and become an expert.

EpicSnakes
Автор

Maybe it is just splitting hairs, but my understanding is that the standard was only trying to add minimal changes to the language/library that enabled garbage collection implementations to interact better with the language and give programmers the tools to help such implementations. It isn’t so much that “C++11 includes garbage collection that was never implemented” as much as “C++11 made implementing a garbage collector for C++ safer”. It would be up to a GC implementation (like the existing Boehm GC) to do the actual implementation and leverage the new C++11 GC features. (What I’m unsure about is how much the compiler would have to actually be involved with that.) Edit: I greatly appreciate that you cover this kind of stuff.

RobertFisher
Автор

GC has no place in C++, unless as an optional library.

paulcook
Автор

The title of this video sounds a poor attempt at trolling but it's legit.

marksilverman
Автор

If GC had been implemented would we have still had deterministic destruction (As required by RAII etc) or more Java-like non-deterministic finalization? For me deterministic destruction is probably THE most important language feature in C++ over other languages.

BenUK
Автор

This is super interesting. Thanks for sharing Jason.

seancpp
Автор

Anyone proposing garbage collection in C++ should be banished to Antarctica.

Every pointer I ever use is xor'd.

homomorphic
Автор

notice that one of the 'Reply To' in the spec is 'Hans Boehm' of Boehm GC fame(?).

Spongman
Автор

The first epsiodes that overflows a byte!

UpstreamNL
Автор

Garbage collection is only on Mondays here.

mworld
Автор

One important question comes to my mind why this is not implemented fully? Why many compilers has this as a no-op and not actually as a feature?

Kazooie
Автор

Hello how did you get this LeakSanitizer log ?

rafalmichalski
Автор

why bother when we have smart pointers? Or was the gc going to defrag memory also?

perfectionbox
Автор

3:54 So now Hawai'i for you in 2021 :P

herrdingenz
Автор

Suggestion: could you do a video on new handlers?

lincolnsand
Автор

if really want garbage collection then can go code it in Go or Java or C#

TheSulross
Автор

I think you have to have robust cross-platform runtime & build system before any garbage collector can be functionally implemented. For C/C++, that's pretty far-fetched, it's been many decades and build systems just keep becoming messier.

vuongbinhan