~/talk

Planning Project Migrations to Swift

Talkat /dev/world 2016 · 2016-08-29..08-31· [swift, ios]
links:none on file
slides:none on file

Migrating to Swift 3 requires concrete choices: there is no stable ABI and generics are not fully stabilized, so expect a +5MB binary penalty and continued runtime churn. Use include graphs (tool: obsid Deep) and emit LLVM call graphs (llvm) to identify isolated vertical slices and decide top‑down versus bottom‑up rewrites. Prepare headers with nullable annotations, NS_ENUM/NS_OPTIONS and swift_name attributes, and plan to write throwaway glue code for C structs, algebraic enums and top‑level functions.

AI-written summary · about

  1. 0:00Intro
  2. 0:35About your presenter (That's me. Steve.)
  3. 1:09What's in this talk
  4. 2:36Why migrate now (to Swift 3)?
  5. 4:22Cost/benefit analysis
  6. 9:03Top-down & bottom-up Two general forms of project migration
  7. 9:42Top-down migration
  8. 11:00Bottom-up migration • Glue code may be necessary Best for projects with
  9. 14:53Vertical slices: Include graphs
  10. 16:00Vertical slices: Case study
  11. 16:58Vertical slices: Call graphs
  12. 21:04Preparing for migration Heavily annotate your objective-C code with
  13. 25:42extern consts
  14. 26:57errors
  15. 28:00structs, derived enums
  16. 28:42tuples
  17. 29:27algebraic enums
  18. 30:58A Extreme warning! It is not possible to do direct mappings with enums all the time!
  19. 32:00Glue code (toplevel functions)
  20. 34:00In closing!
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.