3 ms·
I’ve written quite a bit of Rust, including an implementation of a collision-resistant UID algorithm and a static website generator. I’ve also written quite a f
by mplanchard 7y ago
I’ve written quite a bit of Rust, including an implementation of a collision-resistant UID algorithm and a static website generator. I’ve also written quite a few “git-er-done” scripts in the language as part of other projects (for example, a script to randomly generate linked data and write it to a couple of CSVs). At no point so far have I had to manually manage memory. As others have noted, this is what the borrow checker enables: you write code as though it were in a GC language, and the compiler handles inserting the allocations and deallocations.
Of course, you can manually manage memory in Rust, but it is almost never necessary for high level applications.
I’m not at all claiming it’s the best tool for every job (although I do think it’s great), just clarifying the point about memory management.