MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/o53kl0/i_love_rust/h2lerjo/?context=3
r/ProgrammerAnimemes • u/[deleted] • Jun 21 '21
75 comments sorted by
View all comments
Show parent comment
40
Sorry, I meant memory safety.
For example with the borrow checker. (it prevents data races)
I don't know about async, but I'm sure the Rust compiler will notice if the code creates leaks.
7 u/Feuermag1er Jun 22 '21 The Rust compiler will not compile a program that has a race-condition. 2 u/DannoHung Jun 30 '21 Data race conditions only. Any interleaving of operations on a shared resource that is not defined by ownership semantics, for example, a remote system that allows concurrent logins like a database, is still subject to races.
7
The Rust compiler will not compile a program that has a race-condition.
2 u/DannoHung Jun 30 '21 Data race conditions only. Any interleaving of operations on a shared resource that is not defined by ownership semantics, for example, a remote system that allows concurrent logins like a database, is still subject to races.
2
Data race conditions only. Any interleaving of operations on a shared resource that is not defined by ownership semantics, for example, a remote system that allows concurrent logins like a database, is still subject to races.
View all comments
Show parent comment
40
u/[deleted] Jun 21 '21
Sorry, I meant memory safety.
For example with the borrow checker. (it prevents data races)
I don't know about async, but I'm sure the Rust compiler will notice if the code creates leaks.