~/talk

Type-safe URL routing in Swift

Talkat Functional Swift Conference 2016 · 2016-10-01..10-02· [swift, web-platform]
links:none on file
slides:none on file

Shows a concrete, working Swift URL router that replaces stringly-typed handlers with applicative parser combinators producing typed outputs (e.g., city: String, year: Int), implements Functor/Applicative/Alternative and an enum-based recursive routes representation, and runs an optimizer that groups common path heads to merge duplicated match nodes so "foo" checks aren’t repeated. Demonstrates examples (hello/Budapest/2016), exports an open‑source library and playground, and notes limits: Vapor only supports three params and Swift hits “expression too complex” on large combinator expressions.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:03What is URL routing
  3. 3:09Naive URL routing example
  4. 6:00Server-side routing limitations
  5. 8:08Vapor's type-safe approach
  6. 9:53Parser Combinators for routing
  7. 11:18Implementing URL parser
  8. 13:27Functor and applicative parsers
  9. 15:35Capture and conversion functions
  10. 17:22Applicative-style routing
  11. 19:53Testing type-safe routing
  12. 20:58Bug tracking in routing
  13. 22:02Enum-based routing structure
  14. 24:12Optimizing enum-based routing
  15. 26:40Open-sourcing the router
  16. 27:01Type-safe routing summary
  17. 28:35Q&A session
~/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.