News for hackers. Stuff that matters.
Re:Building a Cloud Database from Scratch: Why We Moved from... by PaulDavisThe1st on Saturday May 28, 2022 @01:18AM (#31537806)
> std::make_shared. At which point it's mostly automatic memory management.

Ignoring the awkward issue of circular references, yes. But that's not always trivial to ignore.

Re:Building a Cloud Database from Scratch: Why We Moved from... by kllrnohj on Saturday May 28, 2022 @12:36PM (#31541662)
imo one should always strongly bias/default to unique_ptr, at which point you just can't have circular references. shared_ptr should be used sparingly, not just because of performance but also as a matter of architecture. You should generally have an organized understanding of ownership, which unique_ptr helps with (and would be the default mode of Rust)