News for hackers. Stuff that matters.
Re:For Better Computing, Liberate CPUs from Garbage Collection by maxxxxx on Thursday May 09, 2019 @08:45AM (#19867760)
I think C++ could get most GC usability benefits if there was a better/simpler syntax for shared_ptr and unique_ptr. I have written code with extensive shared_ptr usage and it was quite pleasant if you ignore the ugly syntax. On the other hand even after years of C# I still miss deterministic destructors.
Re:For Better Computing, Liberate CPUs from Garbage Collection by mcguire on Thursday May 09, 2019 @01:56PM (#19870505)
One downside of reference counting is the long delete delay you get when you remove the last reference to a large data structure. That's pretty easy to fix, but then you lose deterministic destructors.
Re:For Better Computing, Liberate CPUs from Garbage Collection by maxxxxx on Thursday May 09, 2019 @05:53PM (#19872806)
That would be a really large structure get a noticeable delay :-)