Macros Six Months Later: Not Everything Is Smooth
summary
A developer reports on six months of using Swift macros: why they were added, the practical problems encountered when integrating them, and techniques used to solve those issues. The talk covers building an in-house Swift macro library at Ozon Seller, performance considerations (are macros fast?), and whether macros are suitable as the main code-generation tool for a large project.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:28Speaker background
- 2:11Life before macros
- 5:22What macros are
- 6:31Macros examples
- 8:00First macros at Ozon
- 10:10Macros pros
- 11:33Macros cons
- 12:58Protocol problems
- 17:29Problem solutions
- 20:21Protocol inheritance graph
- 21:45Semi-auto mock creation
- 24:42Helper macros
- 25:23Macros for complex cases
- 25:45Macros performance
- 30:02Sourcery comparison
- 30:43Summary and outlook
- 33:00Q&A
related talks
44mSwift Macros: Simpler, Cleaner, Faster
36mSwift Macros
21mUnlock the Potential of Swift Code Generation
11mKeynote Preview - Interview With
57mCatching up with Swift
44mThe Power of the New Macros in Dart
37mSwift Macros: The Key to Efficient and Elegant Code
44mSwift 6, Async/Await, SwiftUI went into a Bar...
