Swift 6.4 is now available. Swift aims to be a great choice across the stack, from apps and servers to systems code, embedded devices, and the browser. This release deepens that support, and makes everyday code easier to write. Highlights include:
Swift Build is now the default in Swift Package Manager , so your projects build the same way on Linux, macOS, and Windows.
, so your projects build the same way on Linux, macOS, and Windows. Subprocess reaches 1.0 , a stable, cross-platform way to run and interact with other programs from Swift, from command-line tools to streaming processes.
, a stable, cross-platform way to run and interact with other programs from Swift, from command-line tools to streaming processes. Interoperability reaches further , with Swift’s Span now bridging directly with C++20’s std::span , and Swift/Java interop extending its async and callback support.
, with Swift’s now bridging directly with C++20’s , and Swift/Java interop extending its async and callback support. Swift runs faster in the browser , with WebAssembly bridging through JavaScriptKit up to 40 times faster, and the Wasm SDK available directly from Swift.org.
, with WebAssembly bridging through JavaScriptKit up to 40 times faster, and the Wasm SDK available directly from Swift.org. Embedded Swift grows more capable , with support for existential types and richer error handling for microcontroller-class targets.
, with support for existential types and richer error handling for microcontroller-class targets. Performance improves while maintaining memory safety, with new array types that hold non-copyable elements without copy-on-write overhead, and the new Iterable protocol for iterating without copies.
There’s so much more. Read on for a detailed guide to the new changes, or see the Swift Evolution dashboard for the full list of proposals in Swift 6.4.
Simpler and clearer code
Swift 6.4 streamlines your day-to-day programming to make your code simpler and clearer.
... continue reading