HackerTube

THE VIDEO SHELF · swift generics implementation

2017 LLVM Developers’ Meeting: “Implementing Swift Generics ”

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.

Why HN readers recommended it

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

This is a summary from the source dataset, not an endorsement by Hacker News or the video creator.

Video & recommendation details

Creator / channel
LLVM
Topic
swift generics implementation
Format
talk
Level
advanced
HN recommenders in dataset
2
HN mentions in dataset
4
Recommendation years in dataset
2017–2026

These counts and years describe the included Hacker News records; they are not YouTube views or the video’s publication date.

From the original HN conversations

Excerpts from the recorded comments. Follow each source for the full comment and surrounding discussion.

  • If you're interested, there's a very nice talk on how Swift's generics compile. It's different to Rust in some key ways. [VIDEO]

    Veedrac on Hacker News · 2017-12
    In Type Erasure in Swift
  • Swift's generics have some unique properties at module boundaries to allow for a stable ABI while enabling library evolution. To get additional background, you might be interested in this[0] conference talk (the paper's author is one of the co-presenters). Also, this post[1] by a Rust …

    favorited on Hacker News · 2022-10
    In Compiling Swift Generics [pdf]

Summaries, classifications and recommendation records are from the HackerTube source dataset. Read about this library and its limitations.