~/talk

Elevated Swift

Talkat BA: Swiftable 2022 · 2022-12-01..12-02· [swift]
slides:none on file

Swift code builds a working elevator simulator that implements the Knuth “keep going in your direction” policy, models hall vs car calls, runs an async event loop with a 60 Hz tick, and visualizes it in SwiftUI. Adding a fixed capacity = 5 shows single-elevator up‑peak failure; splitting logic into an multi-elevator dispatcher moves hall calls to the dispatcher and car calls into each elevator, and a two‑elevator simulation handles morning up‑peak while the single elevator cannot.

AI-written summary · about

  1. 0:00Introduction to elevators
  2. 1:55History of the elevator
  3. 3:40Control systems and logic
  4. 6:15Building an algorithm in Swift
  5. 15:21Managing traffic and capacity
  6. 19:25Multi-elevator systems
  7. 22:27Q&A and final thoughts
~/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.