3 ms·
Thank you for copying this over, it really helps have a proper conversation about it. At least from this snippet, it sounds like the author hasn't used Rust mu
by oersted 3y ago
Thank you for copying this over, it really helps have a proper conversation about it.
At least from this snippet, it sounds like the author hasn't used Rust much and they are mainly imagining what it would be like to use Rust. In my experience, you do not think about memory management in Rust at all, it is just deallocated when it goes out of context, it feels as automatic as garbage collection. You do need to be more mindful of ownership, but it feels very natural, if someone is not holding the potato it drops and gets destroyed (deallocated), it interacts well with our physical intuitions.
- pjmlp 3y agoUntil one tries to write a GUI or any kind of graphics application.
- kaba0 3y agoSince memory management is about determining when will a given memory region become no longer needed, thinking about ownership (and more importantly lifetimes) is for all practical purposes manual memory management.