3 ms·
Golang is only memory safe if you're not using the concurrency features. It doesn't protect against data races which can break safety.
by zozbot234 5y ago
Golang is only memory safe if you're not using the concurrency features. It doesn't protect against data races which can break safety.
- spopejoy 5y agoRust hasn't magically solved concurrency safety either, as linearity is not enough. GC'd languages (Java, Go, Haskell etc) are safer than Rust by default, you just have the tradeoff of GC. Note that this isn't always a tradeoff as GCs can outperform static allocation in scenarios like large dynamic heaps. Haskell is the safest for concurrency because of the strictly typed functional semantics.