260 karma · joined August 9, 2022
[[username]][[hardy number]] at g mail
IMO it's hard to beat pass by value considering both performance and cognitive load.
It's also a map that supports multiple readers AND a writer.
It does this by maintaining two maps, one used by the writer and one used by the readers and atomically swap the two when useful, the cool part is that reads are wait-free but the cost is at least double memory usage and slow writes (twice the work).
https://ismailmaj.github.io/tinkering-with-fizz-buzz-and-con...
to make it clear that the clone is "cheap", some Rust developer prefer using `Arc::Clone(&x)` over `x.clone()`.
Maybe it can be useful for data exploration with polars but I still prefer Python for that.
Linux could be considered simple given the problem it's trying to solve and yaml complex.
https://doc.rust-lang.org/std/vec/struct.Vec.html#method.sor...