Re:Zero to Production in Rust
by zozbot234 on Saturday June 05, 2021 @01:31PM
(#27406960)
Go is memory safe for purely sequential code. It's not memory safe to share memory-write access among multiple Go threads. Using CSP idioms only, via Go channels, can preserve memory safety, but is prone to more general race conditions.
[ Parent
| on HN ]
Although better, Rust can only protect against races coming from threads accessing in-memory resources.
For races related to external resources, or caused by misuse of OS IPC mechanisms (which is the future thanks Spectre), it offers as much protection as any other language.