3 ms·
This has been my experience also. I've written at least 40kloc of rust over the past couple years (including complex graphs with cycles, low-level DSP) and I co
by mitchmindtree 10y ago
This has been my experience also. I've written at least 40kloc of rust over the past couple years (including complex graphs with cycles, low-level DSP) and I could probably count the number of unsafe blocks I've needed on one hand.
edit: This is not counting FFI though.
- chrismorgan 10y agoExcluding FFI I might just be able to count the number on unsafe blocks I’ve needed on one hand. But honesty compels me to declare that for reasons of performance micro-optimisation, I’ve written a lot more.
- DennisP 10y agoHow do you handle cycles? I've seen discussions on places like /r/rust where people didn't seem to have any pleasant answers.
- mitchmindtree 10y agoI tend to use petgraph[1] when I need a graph-like data structure (the only time I've needed cycles). Super fast, distinguishes `Node`s from `Edge`s, lots of useful items for different kinds of traversal. [1]: https://github.com/bluss/petgraph https://github.com/bluss/petgraph