Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
johnhamlet
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
johnhamlet
13y ago
What does C++11's definitions have to do with anything? This is Rust.
2.
▲
by
johnhamlet
13y ago
You: "not every non-deterministic piece of code is a race-condition" Wikipedia: "A race condition ... is ... where the output is dependent on the sequence or timing..." Boom! Headshot!
3.
▲
by
johnhamlet
13y ago
...but you can still have races with locking. Data races don't mean data corruption. It simply means the result is dependent on the scheduler or something else out of your control. Two threads set a shared variable to different values.
4.
▲
by
johnhamlet
13y ago
Two tasks A and B both send a message to task C. Does the message from A or the message from B get received by task C first? That's a race condition. "A race condition or race hazard is the behavior of an electronic or software sy
5.
▲
by
johnhamlet
13y ago
"The Rust compiler normally disallows any code with race conditions" Lol what? Unless tasks cannot communicate at all, or they are scheduled entirely deterministically, how can the compiler eliminate race conditions? How can a com