3 ms·
That's the thing though, every place I've seen pervasive sharing could be replaced my explicit ownership(including a clean mechanism for transferring ownership)
by vvanders 11y ago
That's the thing though, every place I've seen pervasive sharing could be replaced my explicit ownership(including a clean mechanism for transferring ownership).
Being explicit about who owns something makes it much harder to leak things by forgetting to clear references/etc.
- deleted 11y ago[deleted]
- Rusky 11y agoGarbage collection, or something like it, is very useful when implementing lock-free data structures, which are very important in systems programming. Typically they get implemented using some kind of RCU (there was even a post about doing that in Rust, recently), but it's good to have options when you're tuning performance at that level.
- steveklabnik 11y agohttps://news.ycombinator.com/item?id=10131429 https://news.ycombinator.com/item?id=10131429 :)