3 ms·
C++'s shared_ptr (not a language feature but in standard library), Python (has GC but only for detecting cycle references AFAIK), Perl, PHP. Lots of OOP librari
by ungzd 10y ago
C++'s shared_ptr (not a language feature but in standard library), Python (has GC but only for detecting cycle references AFAIK), Perl, PHP. Lots of OOP libraries for C: COM, GLib. RC, ARC in Rust.
- pjmlp 10y agoActually C++ got a tracing GC API in C++11. As for the rest, RC is GC. Check chapter 5 in one of the most widely academic accepted books about GC algorithms. https://www.amazon.com/Garbage-Collection-Algorithms-Automatic-Management/dp/0471941484 https://www.amazon.com/Garbage-Collection-Algorithms-Automat...
- gpderetta 10y ago> Actually C++ got a tracing GC API in C++11. Technically true, but in reality it is just a token effort to please Hans Bohem and get him to focus on designing the C++ concurrent memory model instead :). As of today, I don't think any implementation actually offers optional GC, so those functions are alway just trivially implemented.