Hacker News new | ask | show | jobs
by turdprincess 1121 days ago
I don’t know much about Rust, but Swift can prevent data races at compile time by using the Actor type.
1 comments

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.