InfoQSergio De Simone2 min readrelease notesintermediate
Swift 6.4 Brings Subprocess 1.0, Improved Interoperability, Faster Wasm, and More
Summary
Swift 6.4 introduces Subprocess 1.0 for cross-platform process management, significantly faster Wasm execution, and improved C++20 and Java interoperability. It also enhances performance with non-copyable types and refines concurrency features like `defer` with `await`.
- Subprocess 1.0 provides a stable, cross-platform API for launching and interacting with external processes.
- New non-copyable types like `UniqueArray` and `UniqueBox` reduce allocations and improve performance in array operations.
- `defer` statements now directly support `await`, and `withTaskCancellationShield` helps manage task cancellation in async code.
- Wasm generated code is up to 40 times faster, and C++20 `std::span` transparently bridges with Swift's `Span`.
Swift developers should care about this release for significant performance gains, simplified concurrency patterns, and enhanced interoperability with other languages and external processes.
6/10



/)