News for hackers. Stuff that matters.
Re:Linux kernel in-tree Rust support by verdagon on Saturday July 11, 2020 @01:17PM (#23803732)
Is reference counters really a smell? I thought it was the main way to write Rust when the borrow checker is too strict for something you want to do.

Vec + generational indices might be the other way, is that preferred over Rc?

Re:Linux kernel in-tree Rust support by xiphias2 on Saturday July 11, 2020 @02:36PM (#23804522)
,,when the borrow checker is too strict for something you want to do''

Most of the times it isn't. Just as an example here's a random part of serde, the high quality serialization library in Rust:

https://github.com/serde-rs/serde/blob/master/serde/src/priv...

The amount of extra automatic memory management is often a good indicator of not well thought out data structures (although of course they are not always needed).