Hacker News new | ask | show | jobs
by xedrac 1120 days ago
Catch data races at compile time?
1 comments

I don’t know much about Rust, but Swift can prevent data races at compile time by using the Actor type.
It could catch them before that using ownership, at the cost of lower performance.

Though Swift concurrency is mostly about "concurrency" not "parallelism", which is the one that has data races.

Ownership hasn’t shipped yet.
It has an ABI-level ownership thing already. What's missing is ways to control it.