Re:Maps and Memory Leaks in Go
by Thaxll on Wednesday November 09, 2022 @10:59AM
(#33533469)
Go is memory safe, if not then Java/C#/Python/Ruby are not either.
[ Parent
| on HN ]
I don't think you can have data races (but certainly you can have race conditions) in python because of the GIL. I imagine Ruby is similar. Otherwise, no, the other languages you listed are not "memory safe". Once you start reading and writing to arbitrary locations in a process, almost anything can happen. But certainly you can say that there are different degrees of memory safety. All of the languages you mentioned are leaps and bounds above C/C++.