Skip to Main Content
 

Major Digest Home Swift language achieves data-race safety - Major Digest

Swift language achieves data-race safety

Swift language achieves data-race safety

Apple has released Swift 5.10, an update to the company’s open-source programming language that reaches a major milestone: providing safety against data races via full data isolation in the concurrency model. The improvement prepares the way for the planned Swift 6 release.

Binaries for Swift 5.10, introduced March 5, can be found at swift.org for Windows, macOS, and Linux.

In explaining the milestone, Apple Swift engineer Holly Borla said an increasingly important source of undefined behavior is concurrent code that inadvertently accesses memory from one thread at the same time that another thread is writing to the same memory. This unsafety is called a data race, which makes concurrent programs exceptionally difficult to write, Borla noted. Swift 5.10 finally accomplishes full data isolation for concurrency after years of active development. The concurrency model was introduced in Swift 5.5 in September 2021.

To read this article in full, please click here

Source:
Published: