~/talk

So You Think You Know Swift?

Talkat ServerSide.swift 2024 · 2024-09-26..09-27· [swift]
slides:none on file

Examples reveal concrete surprises: arrays are structs backed by heap storage using copy‑on‑write and the runtime helper isKnownUniquelyReferenced, so mutations trigger copies; existentials use a fixed 24-byte inline buffer inside a 40‑byte existential container, so a struct growing from 24 to 25 bytes suddenly moves to the heap and causes a performance cliff; initializers are ordinary closures so passing an initializer works as a lightweight factory, while passing a method can silently create a retain cycle; JSONEncoder.sortedKeys behavior changes in iOS 18.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Advanced for Loops
  3. 2:29String Indexing Pitfalls
  4. 5:41Optional Syntax Nuances
  5. 7:23Optionals as Monads
  6. 9:07Enum Power Features
  7. 10:10Pattern Matching Deep Dive
  8. 13:43Exhaustive Switching
  9. 14:44Value vs Reference Types
  10. 16:50Copy-on-Write Explained
  11. 19:14Indirect Enums
  12. 19:37Protocols: Value vs Reference
  13. 22:05Existential Containers
  14. 24:12Any vs Some
  15. 25:13Nominal vs Structural Types
  16. 26:37Closures Everywhere
  17. 28:40Closure Retain Cycles
  18. 29:23Factory Pattern Simplified
  19. 31:32Swift 5.10 Features
  20. 33:17Unit Test Caution
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.