News for hackers. Stuff that matters.
Re:Fuchsia OS Introduction by ZirconiumX on Tuesday March 26, 2019 @08:47AM (#19491252)
Rust is safe from race conditions, because race conditions are memory errors.

You should read [1] to understand how Rust achieves this.

[1]: https://doc.rust-lang.org/nomicon/send-and-sync.html

Re:Fuchsia OS Introduction by manaskarekar on Tuesday March 26, 2019 @09:26AM (#19491548)
Quoting some more relevant stuff from the nomicon. The linked article is short and sweet.

A data race has Undefined Behavior, and is therefore impossible to perform in Safe Rust.

...

However Rust does not prevent general race conditions.

This is pretty fundamentally impossible, and probably honestly undesirable. Your hardware is racy, your OS is racy, the other programs on your computer are racy, and the world this all runs in is racy. Any system that could genuinely claim to prevent all race conditions would be pretty awful to use, if not just incorrect.

Source: https://doc.rust-lang.org/nomicon/races.html

Re:Fuchsia OS Introduction by netrikare on Tuesday March 26, 2019 @10:07AM (#19491935)
not true - you can have a program that is free of data races but still contains race conditions. Rust prevents data races.
Re:Fuchsia OS Introduction by rujuladanh on Wednesday March 27, 2019 @06:21PM (#19506739)
No, Rust isn't.

Maybe you should read a bit more on its docs [1]. I quote:

However Rust does not prevent general race conditions.

[1] https://doc.rust-lang.org/nomicon/races.html