Hacker News Comments on
2017 LLVM Developers’ Meeting: “Implementing Swift Generics ”
LLVM
·
Youtube
·
5
HN points
·
3
HN comments
HN Theater has aggregated all Hacker News stories and comments that mention LLVM's video "2017 LLVM Developers’ Meeting: “Implementing Swift Generics ”".
Youtube Summary
HN Theater Rankings
- This course is unranked · view top recommended courses
Hacker News Stories and Comments
All the comments and stories posted to Hacker News that reference this video.
⬐
Nov 18, 2022
·
favorited on
Swift Project in 2023
The Swift story around ABI stability and library evolution is pretty unique. Relatedly, its approach to generics doesn't fall into either of the 2 traditional paths (either box everything like Java and C#, or template instantiation like C++ or Rust).
⬐ cwzwarichThe closest thing to Swift’s approach to polymorphism in the academic world is intensional polymorphism:
⬐
Oct 18, 2022
·
favorited on
Compiling Swift Generics [pdf]
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 and Swift compiler engineer talks about what Swift does differently than other languages, and the tradeoffs that are involved.
⬐
Dec 15, 2017
·
Veedrac on
Type Erasure in Swift
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.
⬐ mikeashThanks for posting this, I've been meaning to watch it but keep forgetting about it.