3 ms·
Now try to do them in safe Rust.
by amelius 1mo ago
Now try to do them in safe Rust.
- gbromios 1mo agoI'm no rust expert but isn't this sort of thing exactly what traits handle well?
- steveklabnik 1mo agoNot directly relevant.
- nick_ 1mo agoAre the Rust devs not expanding the surface area of safe Rust over time? Just curious.
- steveklabnik 1mo agoSort of but also no. Intrusive lists are not likely to ever be possible in safe code, almost by definition.
- afdbcreid 1mo agoEasy. https://docs.rs/intrusive-collections https://docs.rs/intrusive-collections.
- amelius 1mo agoImporting a library does not count. (Besides, perhaps you can tell but I don't even know if the library uses safe Rust internally.)
- afdbcreid 1mo agoInternally? No. Externally? Yes. That is the point.
- cryptonector 1mo agoThe issue is that back-links in data structures are inherently difficult to handle a thread-safe way in mutators.
- afdbcreid 1mo agoNot more than regular collections (unless you mean working on different parts with different threads, then it's still possible but harder, just like with regular collections).