Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
steveklabnik
43 days ago
|
parent
|
context
|
favorite
| on:
Is Rust faster than C?
I mean, data races are undefined behavior in C++ the same way that they are in unsafe Rust. The languages are equivalent there.
bluGill
43 days ago
[–]
Only if there is a data race - if there is no data race C++ lets you do it. Rust doesn't let you do things that don't have a race but cannot be proven within the context of rust to not have a data race.
steveklabnik
43 days ago
|
parent
[–]
In safe Rust, yes, you must prove it. But in unsafe Rust, it's up to you. It's the exact same thing.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: