News for hackers. Stuff that matters.
Re:Modern C for C++ Peeps by tialaramex on Saturday January 07, 2023 @03:33PM (#34292433)
Hmm. So the code I happened to have open was Aria's "Cargo mommy" which has neither Arc nor Rc anywhere, but is only a toy.

So I did go look at Cargo itself, but unlike you although I do see some use of Rc and fewer of Arc it was scarcely "all over the place" when I looked and in the cases I spent any time actually thinking about it's a shared value, so, yeah, that makes sense.

I randomly looked at cargo/core/profiles.rs and cargo/core/registry.rs and cargo/core/compiler/compilation.rs without finding either Rc or Arc used in those files at all. Searching across the whole repository I found some places which do use Rc, and fewer using Arc (implying this data is shared between threads) -- but this doesn't really support your original claim does it?

Re:Modern C for C++ Peeps by mgaunard on Saturday January 07, 2023 @03:43PM (#34292554)
I never meant cargo itself.