Thank you all for the great discussion today!
Here are the summarized notes. Corrections welcome, either as replies or via DM:
Swift Networking Workgroup Meeting Notes
Meeting Details
- Date: August 3, 2026
Summary
The Swift Networking Workgroup reviewed its roadmap, focusing on the standardization of shared currency types like IP addresses and ports. Key discussions centered on balancing modern Swift features with backward platform compatibility and designing a progressively-disclosed API. The group also heard a proposal for a new community-led WebTransport implementation project and offered support.
Notes
1. Introduction & Roadmap Recap
- The workgroup's primary goal is to unify efforts to improve networking in Swift. Key priorities were reviewed:
- Evolving HTTP APIs: Modernizing client and server APIs for Swift concurrency, bridging existing implementations.
- Shared Currency Types: Standardizing types like IP addresses and ports. The initial focus is on these types due to their foundational nature and the many areas of relevance in the ecosystem.
- Unified Networking Stack: Long-term goal to define how data passes between layers in a Swift concurrency world, which depends on foundational abstractions like a byte buffer type.
2. Deep Dive: IP Address & Port Standardization
- A significant portion of the meeting was dedicated to defining standard IP address and port types.
- Platform & API Design: The main discussion centered on platform compatibility versus using modern language features.
- A proposal was made to use modern features like
inline arraysfor address storage, which offers a more correct and performant representation than tuple-based approaches. - This creates a conflict with the need to support older OS versions, as libraries like SwiftNIO cannot easily adopt features that are not backward-compatible without a major version bump.
- The team noted that Swift Package Manager's policy of treating minimum deployment target increases as a breaking change is a significant blocker.
- A potential solution of using conditional compilation to provide different underlying implementations was discussed. This would allow new code to use modern features while maintaining a compatibility layer for older targets, though it adds complexity.
- A proposal was made to use modern features like
- Scope of Currency Types: The discussion explored the appropriate scope for the initial effort.
- The team acknowledged that concepts like subnets, CIDR, and prefix length are naturally pulled into any discussion of IP addresses.
- The need to handle network interfaces and link-local scoped addresses was also identified as an unavoidable complexity that must be addressed in some way.
- A key design principle of progressive disclosure was advocated: APIs should be simple for common use cases but scalable for advanced, low-level networking tasks.
- The group agreed on the importance of gathering code examples of expected usage to inform a practical and developer-friendly API design.
- Leveraging Prior Art: The team discussed how to learn from existing implementations.
- The author of the swift-cidr library shared lessons learned, such as moving from structs to protocols to create a more extensible design that separates pure math operations from the context of their use (e.g., routing vs. interface addresses).
- swift-endpoint and swift-network-evolution were also raised as prior art in this area with important learnings that should be captured.
- Platform & API Design: The main discussion centered on platform compatibility versus using modern language features.
3. Community Agenda: WebTransport Implementation
- A community member presented a plan to implement the WebTransport protocol in Swift.
- The project is planned as a university internship starting in September.
- The implementation will depend on several building blocks from the ecosystem, including support for Extended CONNECT, Capsules, and HTTP Datagrams.
- The team expressed support, noting that experts on the WebTransport specification and its implementation in Safari are available in the workgroup to compare notes and provide feedback.
- The presenter was encouraged to share progress, learnings, and challenges on the forums and Slack to foster collaboration.
4. Wrap-up & Logistics
- The meeting concluded with a thank you to participants for their engagement and a call for feedback on the meeting format to improve inclusivity and effectiveness.
Next Steps & Action Items
- Tommy will post a recap of the IP address and port standardization discussion to the forums to engage the wider community.
- The team will use the
#networkingSlack channel and the forums for ongoing, real-time discussion and prototyping of IP address types. - The team will proceed with experimentation in separate repositories to explore different API designs and compatibility strategies for the new networking types.
- Francesco will begin the WebTransport implementation project and will share progress and questions with the workgroup.
- Eric will post the summarized meeting notes to the forums.