Building Networking Libraries with Span and Concurrency
summary
Builds an embedded Linux distro called Edge OS and shows a working TCP stack using Swift concurrency and SwiftNIO async channel patterns, demonstrating bootstrap → channel → async bridge and how await-driven backpressure stops reads when writes block. Claims span types eliminate a copy in JSON decode/encode paths, reducing memory and improving benchmarks, warns OutputSpan crashes if capacity is exceeded, and targets cross‑platform use including tiny devices like ESP32, with libraries under development to prove the approach.
AI-written summary · about
chapters (7)
- 0:00Introduction and background
- 1:10Why Span and concurrency
- 4:45TCP with SwiftNIO
- 7:34Back pressure in networking
- 12:10Span types in Swift
- 15:23Cross-platform byte types
- 17:53Call to action and conclusion
related talks
01h 01mStructured Networking
22mEvent driven networking for Swift
59mThe Networking TS in Practice: Patterns for Real World Problems
01h 01mPractical Patterns with the Networking TS
57mStructured Networking in C++
58mThe Networking TS in Practice: Testable, Composable Asynchronous I/O in C++
20mIt's Critical: Concurrent programming as a sane programming model
24mNetBlocks: Staging Layouts for High-Performance Custom Host Network Stacks
