Re:Null References: The Billion Dollar Mistake
by empath75 on Saturday January 11, 2020 @07:09PM
(#22023392)
If you think rust eliminates the need to think about it in the way that python does, I don’t know what to tell you.
[ Parent
| on HN ]
Re:Null References: The Billion Dollar Mistake
by bluejekyll on Saturday January 11, 2020 @09:43PM
(#22024114)
You might be reading too much into that comment.
Python allows you to do something with memory that Rust has made it a priority to be more concerned with, and that’s sharing.
C also has easily shared memory, much like Python. Point being that Rust wants to make sure that your references are safe to share, whereas Python wants you to share as much as possible and makes it safe by not allowing multiple threads to interact with it.
These are different trade offs, but Rust does allow you to forget about memory management in the same way Python does, but forces you to think how it’s being shared.
That’s the added cost over Python and the extra thought that goes into using the language.