Community agenda items and open discussion (10 min)
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 if you 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.
The meeting focused on how new code gets into the swift-networking-types repository. The group agreed to explore package traits as the initial mechanism for experimental features and discussed the versioning and pinning that this requires. CI isn’t running on pull requests yet, which blocks merging. Prompted by the Port pull request, the group agreed that a new type’s first pull requests should cover its public API shape and basic storage, with optimizations following in separate pull requests once benchmarks exist to measure their trade-offs. For IPAddress storage, the group agreed to proceed with InlineArray and validate its performance with those benchmarks.
Notes
Logistics and Future Topics
After recurring issues with the meeting link, future meetings will move to a single, stable link.
A topic was added for a future meeting: a request for the workgroup to take ownership of FoundationNetworking, the URLSession implementation on Linux that’s built on libcurl.
Experimental Features and Package Traits
The group discussed how to introduce new, unstable APIs in swift-networking-types. The options included package traits, underscored or separate modules, and SPI.
Package traits were favored because they give consumers an explicit, granular opt-in, and staging new APIs within a stable package is one of the things traits were designed for.
SPI was raised as an alternative, but there were concerns that SPI still behaves like API and that relying on it has caused breakage in the past.
There was also support for a separate module instead.
One known limitation is that Xcode can’t resolve traits separately for different root targets.
The group agreed to explore package traits as the initial mechanism.
The workflow: new APIs go in behind a trait, are validated through use, and move to the stable API when the trait is removed. How the evolution process fits into this workflow is a topic for a future meeting.
Versioning and Pinning
Because experimental features can change at any time, anyone using an experimental trait will need to pin the dependency to a narrow version range, such as up to the next minor version. Past problems with experimental traits in swift-collections came down to how versions were pinned.
Pinning to a specific commit isn’t workable for packages that are themselves depended on downstream, so the repository will need to tag releases.
The proposed scheme before 1.0 is patch releases for internal-only changes, and minor releases for any public API change, including changes behind a trait.
Repository CI
GitHub Actions CI isn’t running on pull requests yet, and nothing can merge until it is.
There were concerns about performance bottlenecks and limited flexibility with shared macOS runners. The group will keep an eye on CI performance and escalate if it slows development.
Process for New Types
The Port pull request included complex optimizations, which prompted a discussion of how new types should come into the repository.
A new type’s first pull request should focus on the public API shape and basic storage. Getting initial API shapes the group likes into the repository makes it easier to evaluate them, and optimizations can follow incrementally in separate pull requests.
There was a question about why not take an optimization that improves performance right away. Speed isn’t the only benchmark, though, and code size is a trade-off as well.
Before taking detailed optimizations, the repository needs benchmarks and litmus tests that measure the trade-offs in CPU usage, memory, and code size, so that decisions about optimizations can be based on data.
IPAddress Storage
The group discussed the internal storage for IPAddress, comparing InlineArray (used in the IP address types pull request) with an integer.
There were concerns about conversion overhead with InlineArray for math-intensive operations. The prevailing view was that the compiler should optimize both representations equally well, so a measurable difference would be treated as a compiler bug.
The group agreed to proceed with InlineArray as the more semantically accurate representation, and to validate its performance with the new benchmarks.
Next Steps & Action Items
Eric will set up a single, stable WebEx link for future meetings.
Eric will follow up to get GitHub Actions CI running for the repository.
Franz will add text to the CONTRIBUTING.md pull request describing how experimental package traits will be used.
Mahdi will split the Port pull request, starting with the basic API and storage, with optimizations following in separate pull requests.
The group will begin setting up benchmarking infrastructure in the repository to measure the performance of new types and optimizations.