▶

How Swift Implements Generics with Metadata

LLVM · Talk · 45 min · 2017 · YouTube title: 2017 LLVM Developers’ Meeting: “Implementing Swift Generics ”
Why it's here

Recommended as the clearest explanation of how Swift generics compile and how that differs from other languages.

What it covers

Swift compiler engineers explain how Swift implements generics using dictionary-passing with reified type metadata. They compare it with Java-style uniform representation and C++ or Rust monomorphization.