Community agenda items and open discussion (as time permits)
Wrap-up and action items (5 min)
Propose an agenda item
We'd love the agenda to reflect what the community wants to discuss. Please reply to this thread with topics you'd like to cover, ideally with a sentence or two of context and roughly how much time you think it needs. To keep the meeting focused, we'll include some agenda topics from the replies received for discussion as time permits and include anything else in the list of potential topics for future meetings.
A few notes so the meeting stays productive with a larger group:
Most decisions happen asynchronously on the forums, Slack, and GitHub. The meeting is for discussion and alignment, so you can participate fully asynchronously if you wish or cannot attend a particular timeslot.
We'll use a raised-hand queue and chat for questions and discussions. Please take note of your position in the queue and try to avoid collisions with others when speaking.
We'll post the notes from the meeting here on the forums afterwards. Note that we're piloting AI note-taking tools but won't be recording the meeting, and you can ask us to turn them off at any time.
We follow the Swift Code of Conduct. This is a public meeting, so please keep discussion to public, non-confidential topics.
swift-dns-types could be interesting to raise with the wider group, especially with a higher level overview of the potential directions (ideally more than one alternative) that could be pursued. Not sure we'd be ready to make any formal decisions, but helps to see where folks are at.
A URLFormEncoding type could benefit from a concrete proposal of API shape and potentially discussion to gauge interest level.
There's no action required for any of these (and no meaningful significance to what's included in this list or not), just noting them here in case any of the folks involved would like to get together and propose an agenda item for this or a future meeting.
I'd like to discuss whether there'd be interest in adopting a package for implementing RFC 1035's types at this time, and if there is, what shape that should take. The primary questions outstanding: whether the package should include RR-type-specific functionality or defer that to subsequent packages, and whether it should favor lightweight instantiation or canonicalization.
The workgroup discussed the initial structure of the Swift Network Types package, agreeing to start with a single package and module. A significant portion of the meeting was dedicated to debating the design of the core IP address type, weighing the trade-offs between a simple address type versus one that inherently includes subnet/prefix information. The group also touched on the future of Swift DNS types, deciding to prioritize finalizing the IP types before committing to a new workstream.
Notes
Package Structure & Strategy
The team reached a consensus to begin with a single Swift Network Types package containing one module.
The approach is to start small and consciously add types over time, avoiding premature optimization.
It was agreed to postpone considerations for conditional compilation (using traits or LTO) until a measurable performance or size problem is identified.
Repository Creation Process
The team outlined the process for creating the new repository. This involves a request to the SSWG, which then goes to the core team, with an estimated timeline of at least 2 weeks.
Core Discussion: IP Address Type Design
The main topic of discussion was the fundamental design of the IP address type.
Combined Type Proposal: One proposal was to have a single, subnet-aware type where a prefix is always present (e.g., a /32 or /128 by default). This approach simplifies subnet mathematics and reflects that a single address is technically a range of one.
Separate Types Proposal: The counter-proposal was to have distinct types for a single IP address and an IP subnet/prefix. This provides stronger type safety, for example, by allowing an API for binding a server to accept only a single-address type, preventing runtime errors from passing a subnet like a /24.
Use Cases & Trade-offs: The team discussed how different use cases (client connections, server binding, low-level routing) influence the design. While a combined type is flexible, a separate type system offers more compile-time safety and clarity for API consumers. It was noted that concrete code examples are needed to better understand the practical trade-offs.
Resolution: No final decision was made. The path forward is to develop code sketches for both approaches to evaluate their ergonomics and implications.
Future Topic: Swift DNS Types
The group briefly discussed the potential for a Swift DNS types package.
Initial Ideas: Suggestions included creating a core package for DNS primitives and focusing first on client-side APIs (as a getaddrinfo replacement) rather than on-the-wire record formats.
Prioritization: The team discussed that, while important, workgroup time on DNS should likely be deferred. The priority is to finalize and stabilize the base IP types and HTTP APIs before starting another major workstream.
Performance Measurement: The team agreed to put performance measurement on the agenda for a future meeting. The goal is to define meaningful workloads and metrics once there is a concrete implementation to measure.
Next Steps & Action Items
Eric will contact the SSWG to formally request the creation of the swift-network-types repository.
The team will create and share code sketches on the forums illustrating the two alternative IP address type designs (combined vs. separate) to facilitate a decision.
Johannes will perform light research into the future of Swift’s Link-Time Optimization (LTO) to inform future decisions on code size optimization, though this is not an immediate priority.
All attendees are encouraged to engage on the forum post regarding Swift DNS to provide input, but large workgroup time investment is on hold.