3 ms·
Did you have another language in mind? Eg Rusts safety means basically nothing if you are comparing it to Python or C#.
by Paul-ish 9y ago
Did you have another language in mind? Eg Rusts safety means basically nothing if you are comparing it to Python or C#.
- earenndil 9y agoNot really, I more meant "in what situations should I choose rust and what makes rust the best choice in that situation instead of _any_ other language."
- kod 9y agoPython stops you from accidentally sharing mutable state across threads?
- earenndil 9y agoYes. Look up the GIL (Global Interpreter Lock).
- kod 9y agoWhich is why Python doesn't have thread locking... Except, it does. Perhaps that's because GIL isn't really helpful for preventing logical races? Yet it encourages a false sense of security?
- dragonwriter 9y agoThe GIL doesn't stop you from sharing mutable state across threads, nor does it make it generally safe to do so.