~/talk

Growing Trees with Recursive Enums in Swift

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

Builds a functional KD-tree using a recursive enum in Swift that avoids mutation and relies on Swift’s copy‑on‑write to stay fast. Implements median-split construction, nearest and k‑nearest queries and range search with expected O(log n) query time, parallelizes tree build to cut initialization time, and handles millions of points (benchmarks up to 5 million points). Includes a visual app that loads a star catalog (~120k stars in ~3s) and returns immediate nearest‑neighbor hits. Code is compact and working.

AI-written summary · about

  1. 0:00Growing Trees with Recursive Enums in Swift
  2. 0:49credits
  3. 1:10contents
  4. 1:43recap: types in swift
  5. 3:09reference trees CS101
  6. 4:08enumerations in swift
  7. 14:47functional tree
  8. 15:24isn't that super inefficient
  9. 16:26copy on write
  10. 16:40break - space
  11. 16:56spatial data
  12. 18:57k-d tree
  13. 25:05KD Tree - Swift
  14. 26:15KD TreePoint protocol
  15. 27:28KD Tree - init
  16. 28:15KD Tree - inserting
  17. 29:46performance - NN
  18. 31:32range search
  19. 31:50performance - range
  20. 32:26aren't we forgetting something
  21. 33:44functional - parallelizable
  22. 34:50KD Tree - effort
  23. 37:12for looc.io
  24. 38:28recommender system
  25. 38:51further applications
  26. 40:26summary
~/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.