Paul Krill
Editor at Large

Apple touts simpler and clearer code with Swift 6.4

news
Sep 23, 20262 mins

Latest release of the Swift programming language promises core library improvements, faster builds, clearer debugging, and better interoperability with C, C++, Java, and Wasm.

Apple logo
Credit: 360b / Shutterstock

Apple has released Swift 6.4, an upgrade to the programming language that brings improvements across the board including core library APIs, builds, debugging, interoperability with other platforms, and performance.

Swift 6.4 was announced September 15. “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,” Apple’s Joe Heck and Holly Borla wrote in the announcement. They listed the following highlights of the release:

  • Swift Build is now the default in Swift Package Manager, 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.
  • 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.
  • Swift runs faster in the browser, with WebAssembly bridging through JavaScript kit 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.
  • 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.

Swift 6.4 also completes a multi-release overhaul of how the compiler tracks Swift modules in debug info. LLDB now imports modules through precise dependency tracking instead of by-name lookups. Debug builds on Linux and Windows, and dSYM bundles on Darwin, shrink significantly because binary Swift modules are no longer embedded in them. Swift 6.4 also makes it easier to avoid unnecessary copies of data while staying memory-safe, extending earlier work on Span, non-copyable types, and InlineArray, according to the announcement.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author