3 ms·
It is really not difficult if you go the petgraph way. Just use a vector and indices into it instead of references.
by whyever 9y ago
It is really not difficult if you go the petgraph way. Just use a vector and indices into it instead of references.
- username223 9y agoThat's sort of depressing. "Just make your own virtual memory space to get around Rust's PITA memory management" sounds like giving up.
- OtterCoder 9y agoIf you don't want to manage memory, why are you using any systems language? Python, JS, Go, and any number of other languages will be much kinder to you.
- username223 9y agoWhat I meant to say (hence the downvotes...) is that Rust's "borrow checker" is enough of a nuisance that this graph library replaced memory addresses, i.e. pointers, with indexes into an array, effectively creating its own virtual address space.