Re:Revolt: Open-source alternative to Discord
by cjbprime on Monday September 06, 2021 @11:35AM
(#28434728)
That's a confusing statement -- JS/Node and Golang are comparable (memory safe) languages for API server backends.
Re:Revolt: Open-source alternative to Discord
by zozbot234 on Monday September 06, 2021 @02:38PM
(#28436646)
Golang is only memory safe if you're not using the concurrency features. It doesn't protect against data races which can break safety.
Re:Revolt: Open-source alternative to Discord
by spopejoy on Thursday September 09, 2021 @12:39PM
(#28471623)
Rust 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.
Even without an audit, the odds of a Rust project being memory safe are so much higher than in comparable languages.
Furthermore, Rust makes auditing so much easier by allowing you to concentrate on unsafe blocks.