Swift 6.4 现已发布,主要亮点包括:Swift Build 成为 Swift Package Manager 的默认构建系统、Subprocess 库达到 1.0 版本,以及与 C++、Java、WebAssembly 和 Android 更深入的互操作性。此次发布通过无需括号的可选 some/any 类型、用于控制编译器警告的 @diagnose 特性,以及用于解决名称冲突的模块选择器等功能简化了日常编码;同时在性能方面引入了无写时复制开销的不可复制元素数组和全新的 Iterable 协议。其他改进包括更快的 WebAssembly 桥接(最高可达 40 倍)、借助精确的模块跟踪实现更稳健的调试、更广泛的 IDE 支持,以及面向微控制器目标的 Embedded Swift 新增存在类型和更丰富的错误处理。
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.
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.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要The November 2026 edition of "What's new in Swift" features a guest contribution from Dave Verwer announcing that CocoaPods will stop accepting new pods and pod versions on December 2, 2026, urging developers still using it to migrate to Swift Package Manager while noting existing pods will remain available in read-only form. The digest also rounds up community content, including talks on migrating C++ to Swift, building Android apps with Swift, and creating Minecraft mods, along with new package releases such as Swift Kafka Client 1.0.0, swift-ros2, and Perfect-NIO. It concludes with an overview of Swift Evolution proposals under active review or recently accepted, covering features like Unicode bidirectional class lookup, build configuration conditionals for dependencies, task identity, and SwiftPM compilation caching.
AI 摘要The Swift project participated in Google Summer of Code 2026, running three successfully completed projects pairing newcomers with mentors. The projects added DocC language features to SourceKit-LSP (such as go-to-definition and syntax highlighting for documentation), a high-performance task registry for tracking Swift Concurrency tasks to aid debugging, and qualified name lookup support in swift-syntax for tool developers. The article concludes by thanking the contributors and mentors, and directs readers to previous years' projects and future participation opportunities.
AI 摘要This September 2026 edition of 'What's new in Swift' celebrates the Vapor web framework's tenth anniversary with the first beta of Vapor 5, a complete rewrite adding full structured concurrency and dropping EventLoopFutures, and covers the release of Swift 6.4 with Swift Build as the new SwiftPM default, Subprocess 1.0, and up to 40x faster WebAssembly bridging. Community highlights include Google's official Cloud client libraries for Swift, a Swift-written kernel demo, Solbach Leads' migration of a production AI pipeline from Kotlin to Swift and Vapor, and new releases like WasmKit 0.4 and Swift AWS Lambda Runtime 3.0. The digest also rounds up Swift Evolution activity, including the under-review SE-0554 deployment target conditional compilation and recently accepted proposals such as SE-0546 same-file memberwise initializer extensions and SE-0540 default target settings.
AI 摘要Changes begun in Swift 6.3 and completing in Swift 6.4 improve how the Swift compiler tracks explicitly-built Swift modules in debug info, letting LLDB's expression evaluator find and import the exact module and its dependencies instead of relying on imprecise by-name lookups and special linker steps. This makes debugging faster and more reliable while dramatically shrinking binaries and dSYM bundles, which will no longer embed binary Swift modules. Developers using SwiftPM or Xcode benefit automatically, while those maintaining custom build systems can drop the now-deprecated -modulewrap actions and -add_ast_path linker options.
AI 摘要This August 2026 edition of "What's new in Swift" features a guest post from Simon Leeb describing his Elementary and ElementaryUI projects, which aim to make Swift a first-class choice for the web through server-rendered HTML and a state-driven browser UI framework compiled to WebAssembly. The digest also rounds up videos on Swift memory safety, Windows support, and Embedded Swift on Raspberry Pi, community articles, new package releases such as SwiftTUI, lexic, and StructuredQueries, and several Swift Evolution proposals under review or recently accepted, covering topics like package registry search, non-copyable type deinits, and a TaskLocal test trait.