最近 Swift Workgroup
发布了一则公告:
@IanPartridge and @Chris_Bailey let the group know that following a review by IBM of its open source priorities, it has been decided that they will not be continuing to work on Swift in 2020. As a result, they are both standing down from the workgroup.
@IanPartridge will work to hand over responsibilities for the Swift Docker images and suggested a potential new owner from the community.
The workgroup thanked @IanPartridge, @Chris_Bailey and the rest of the IBM team for their valuable work over the years in getting Swift on server off the ground, and providing the community with reliable solutions during those early days.
大致意思是说,根据 IBM
公司的开源优先级评估后,决定 IanPartridge
和 Chris_Bailey
将于 2020 年不再继续从事 Swift 相关的工作了,同时他们也将退出 workgroup
。
其中,IanPartridge
将不再负责 Swift Docker images
相关的职责,社区将会有一名新的继承者来接管。
可以看出 IBM
在未来将会一定程度上减少 Swift
服务端的投入,算是 Swift 社区的一个损失。
目前主要由 Apple 官方维护的 Swift 库如下:
- SwiftNIO:https://github.com/apple/swift-nio
Event-driven network application framework for high performance protocol servers & clients, non-blocking.
- SwiftLog:https://github.com/apple/swift-log
A Logging API for Swift
- SwiftMetrics:https://github.com/apple/swift-metrics
A Metrics API for Swift
- StatsdClient:https://github.com/apple/swift-statsd-client
Metrics backend for swift-metrics that uses the statsd protocol.
目前 Swift 社区主要有如下 Web 框架:
- Vapor:https://github.com/vapor/vapor(Star数:17.8k)
- Perfect:https://github.com/PerfectlySoft/Perfect (Star数:13.6k)
- Kitura:https://github.com/IBM-Swift/Kitura(Star数:7.3k)
- smoke-framework:https://github.com/amzn/smoke-framework(Star数:1k)
另外,Swift 社区还有很多优秀的开源库,这里就不一一列出来了。
从目前来看,Vapor
框架的受关注度最高,且社区相对比较活跃。而且 Vapor
框架的作者 Logan Wright (@loganwright, Vapor) 和 Tanner Nelson (@tanner0101, Vapor) 均为 SSWG(Swift Server Work Group
) 成员,与 Swift 官方组织联系也最为紧密,Vapor
几乎也都是第一时间采用 Swift
官方组件(比如:SwiftNIO、SwiftLog、SwiftMetrics 等)。
未来的发展趋势是 Apple
将会主要提供一些 Swift
服务端开发所需要的基础设施,而应用为主的 Web
框架主要将由社区发展维护,从目前已有的 Web
框架中,笔者相对比较看好 Vapor
,理由在上一段提及了。
最后,衷心希望 Swift
不仅仅用于 iOS
开发,也能在其它领域流行起来(比如:服务端开发)。