~/talk

Featherweight Swift: A Core Calculus for Swift’s Type System

Talkat SLE 2020 · 2020-11-16..11-17· [swift, compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

Presents Featherweight Swift — a stripped-down core calculus that formalizes Swift’s protocol, class and extension typing and models method lookup and Self types, implemented as a formal semantics plus mechanized rules and validated by copy‑pasting examples into the real Swift compiler. Uses the compiler source as a reference and unit tests to probe behavior, finds a small number of real compiler bugs (including one runtime cast hole that is since fixed) and demonstrates the model matches surprising corner cases.

AI-written summary · about

  1. 0:00Intro
  2. 0:14What's Swift?
  3. 1:03Parser combinators
  4. 4:35What features did we use?
  5. 5:07What's the problem?
  6. 7:17Featherweight Swift
  7. 8:24Name Lookup Mechanism
  8. 9:53How is this useful?
  9. 11:30Featherweight vs complete
  10. 12:02References
~/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.