News for hackers. Stuff that matters.
Re:Zero to Production in Rust by beforeolives on Saturday June 05, 2021 @12:40PM (#27406514)
Any reason to choose Rust over Go in your case?
Re:Zero to Production in Rust by cjg on Saturday June 05, 2021 @01:01PM (#27406684)
A couple of reasons: 1. We like the thread-safety properties that Rust offers 2. We don't have any Go experience

Does Go offer similar guarantees for concurrency?

Re:Zero to Production in Rust by pdpi on Saturday June 05, 2021 @01:10PM (#27406775)
Go doesn’t offer the same sort of guarantees as Rust does, but the goroutine/channel model nudges you towards a safe style
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.
Re:Zero to Production in Rust by pjmlp on Saturday June 05, 2021 @02:24PM (#27407413)
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.

Re:Zero to Production in Rust by steveklabnik on Saturday June 05, 2021 @01:05PM (#27406734)
Go does runtime instrumentation to detect data races, rather than compile time checks.