~/talk

Beyond Types in Swift

Talkat Functional Swift Conference 2017 · on Saturday, 2017-04-15· [swift]
slides:none on file

Defines algebraic protocols in Swift (magma → semigroup → monoid → commutative monoid → bounded semi‑lattice) and shows concrete gains: wrapping Int into Sum/Max, deriving an average via paired (sum,count) monoids, and a parallel fold that drops span from O(n) to O(log n) for large inputs (he mentions 40 billion integers). Uses protocol inheritance, DispatchQueue for parallel reduce, and a UDP‑style relaxed delivery for distributed folds; stronger protocol conformance picks the faster fold implementation automatically.

AI-written summary · about

  1. 0:00Introduction
  2. 0:23API design goals
  3. 2:11Composable APIs
  4. 3:59Folding explained
  5. 5:04Magma protocol
  6. 6:30Mathematical naming
  7. 7:33Why this matters
  8. 9:00Associativity law
  9. 10:28Semigroup protocol
  10. 11:52Expressive power
  11. 13:16Parallel folding
  12. 14:18Non-associative example
  13. 15:01Identity law
  14. 16:26Monoid protocol
  15. 17:49Two sums example
  16. 18:56Simplified fold API
  17. 19:37Commutativity law
  18. 21:22Idempotence law
  19. 22:27Bounded semilattice
  20. 23:56Distributed folding
  21. 25:03Generalizing the process
  22. 27:14Animation API
  23. 28:39Names matter
  24. 29:43Key takeaways
  25. 31:35Q&A
~/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.