Chris Lattner: Compilers, LLVM, Swift, TPU, and ML Accelerators

13 May 2019 · 72 min
Episode

13 May 2019 · 72 min

0:00

In this extensive interview, Lex Fridman talks with Chris Lattner, a leading expert in compiler technology and senior director at Google, about his journey from early programming to creating the LLVM compiler infrastructure, developing the Clang front‑end, and leading the design of the Swift language at Apple. Lattner explains the fundamentals of compilers—parsing, intermediate representations, optimization passes, register allocation, and instruction scheduling—and how LLVM’s modular, open‑source architecture enables collaboration among competitors like Google, Apple, Nvidia, and AMD. He discusses the evolution of compiler research into machine‑learning compilers, the MLIR project, and the role of hardware‑software co‑design in Google’s TPUs, including the adoption of the bfloat16 format. The conversation also covers Swift’s design principles (type safety, progressive disclosure, dynamic compilation, and Python interoperability), Swift for TensorFlow’s integrated automatic differentiation, and the broader open‑source philosophy at Google versus Apple. Lattner reflects on his brief stint at Tesla, the challenges of building Autopilot software from scratch, and his personal work ethic and leadership style. The interview concludes with anecdotes about the LLVM dragon logo and the cultural aspects of the compiler community.

Chapters

More from Divij

Podcast#471 – Sundar Pichai: CEO of Google and Alphabet
Podcast

#471 – Sundar Pichai: CEO of Google and Alphabet

1y ago
Podcast#450 – Bernie Sanders Interview
Podcast

#450 – Bernie Sanders Interview

2y ago
Podcast#423 – Tulsi Gabbard: War, Politics, and the Military Industrial Complex
Podcast

#423 – Tulsi Gabbard: War, Politics, and the Military Industrial Complex

2y ago
Podcast#403 – Lisa Randall: Dark Matter, Theoretical Physics, and Extinction Events
Podcast

#403 – Lisa Randall: Dark Matter, Theoretical Physics, and Extinction Events

2y ago
Podcast#402 – Michael Malice: Thanksgiving Pirate Special
Podcast

#402 – Michael Malice: Thanksgiving Pirate Special

2y ago
Podcast#398 – Mark Zuckerberg: First Interview in the Metaverse
Podcast

#398 – Mark Zuckerberg: First Interview in the Metaverse

3y ago
Podcast#389 – Benjamin Netanyahu: Israel, Palestine, Power, Corruption, Hate, and Peace
Podcast

#389 – Benjamin Netanyahu: Israel, Palestine, Power, Corruption, Hate, and Peace

3y ago
Podcast#321 – Ray Kurzweil: Singularity, Superintelligence, and Immortality
Podcast

#321 – Ray Kurzweil: Singularity, Superintelligence, and Immortality

4y ago
Podcast#316 – Noam Chomsky: Putin, Ukraine, China, and Nuclear War
Podcast

#316 – Noam Chomsky: Putin, Ukraine, China, and Nuclear War

4y ago
Podcast#280 – Cristiano Amon: Qualcomm CEO
Podcast

#280 – Cristiano Amon: Qualcomm CEO

4y ago
Podcast#271 – Ariel Ekblaw: Space Colonization and Self-Assembling Space Megastructures
Podcast

#271 – Ariel Ekblaw: Space Colonization and Self-Assembling Space Megastructures

4y ago
See all content