Re:Microsoft: Rust Is the Industry’s ‘Best Chance’ at Safe S...
by steveklabnik on Saturday June 13, 2020 @02:22PM
(#23511457)
There’s a new GC library released the other day https://blog.typingtheory.com/shredder-garbage-collection-as...
Still extremely new, of course, but has promise!
- Not leaking memory - Not invoking unsafe - Not angering the rust compiler
None of those efforts stabilized to my knowledge, and the libraries developed for this task all have experimental/research tags associated to them.
For better or worse all the guides for using rust strongly encourage avoidance of primitive cyclic structures such as doubly linked lists, graphs, and other structures in favor of statically allocated fixed size variants. Like golang's preference for map/list as the only primitive structures, this is a constraint that one can get used to for most problems. But it doesn't feel great that as a language there are basic algorithms and datastructures that can't be idiomatically coded in the language.