logo
episode-header-image
Nov 5
1h 32m

From Swift to Mojo and high-performance ...

Gergely Orosz
About this episode

Brought to You By:

•⁠ Statsig ⁠ — ⁠ The unified platform for flags, analytics, experiments, and more. Companies like Graphite, Notion, and Brex rely on Statsig to measure the impact of the pace they ship. Get a 30-day enterprise trial here.

•⁠ Linear – The system for modern product development. Linear is a heavy user of Swift: they just redesigned their native iOS app using their own take on Apple’s Liquid Glass design language. The new app is about speed and performance – just like Linear is. Check it out.

Chris Lattner is one of the most influential engineers of the past two decades. He created the LLVM compiler infrastructure and the Swift programming language – and Swift opened iOS development to a broader group of engineers. With Mojo, he’s now aiming to do the same for AI, by lowering the barrier to programming AI applications.

I sat down with Chris in San Francisco, to talk language design, lessons on designing Swift and Mojo, and – of course! – compilers. It’s hard to find someone who is as enthusiastic and knowledgeable about compilers as Chris is!

We also discussed why experts often resist change even when current tools slow them down, what he learned about AI and hardware from his time across both large and small engineering teams, and why compiler engineering remains one of the best ways to understand how software really works.

Timestamps

(00:00) Intro

(02:35) Compilers in the early 2000s

(04:48) Why Chris built LLVM

(08:24) GCC vs. LLVM

(09:47) LLVM at Apple 

(19:25) How Chris got support to go open source at Apple

(20:28) The story of Swift 

(24:32) The process for designing a language 

(31:00) Learnings from launching Swift 

(35:48) Swift Playgrounds: making coding accessible

(40:23) What Swift solved and the technical debt it created

(47:28) AI learnings from Google and Tesla 

(51:23) SiFive: learning about hardware engineering

(52:24) Mojo’s origin story

(57:15) Modular’s bet on a two-level stack

(1:01:49) Compiler shortcomings

(1:09:11) Getting started with Mojo 

(1:15:44) How big is Modular, as a company?

(1:19:00) AI coding tools the Modular team uses 

(1:22:59) What kind of software engineers Modular hires 

(1:25:22) A programming language for LLMs? No thanks

(1:29:06) Why you should study and understand compilers

The Pragmatic Engineer deepdives relevant for this episode:

•⁠ AI Engineering in the real world

The AI Engineering stack

Uber's crazy YOLO app rewrite, from the front seat

Python, Go, Rust, TypeScript and AI with Armin Ronacher

Microsoft’s developer tools roots

Production and marketing by ⁠⁠⁠⁠⁠⁠⁠⁠https://penname.co/⁠⁠⁠⁠⁠⁠⁠⁠. For inquiries about sponsoring the podcast, email podcast@pragmaticengineer.com.



Get full access to The Pragmatic Engineer at newsletter.pragmaticengineer.com/subscribe
Up next
Nov 19
How AI will change software engineering – with Martin Fowler
<p><strong>Brought to You By:</strong></p><p>•⁠ <a target="_blank" href="http://statsig.com/pragmatic"><strong>Statsig</strong></a> ⁠ — ⁠ The unified platform for flags, analytics, experiments, and more. AI-accelerated development isn’t just about shipping faster: it’s about meas ... Show More
1h 48m
Nov 12
Netflix’s Engineering Culture
Brought to You By:•⁠ Statsig ⁠ — ⁠ The unified platform for flags, analytics, experiments, and more. Statsig enables two cultures at once: continuous shipping and experimentation. Companies like Notion went from single-digit experiments per quarter to over 300 experiments with St ... Show More
59m 34s
Oct 29
Beyond Vibe Coding with Addy Osmani
Brought to You By:•⁠ Statsig ⁠ — ⁠ The unified platform for flags, analytics, experiments, and more. •⁠ Linear – The system for modern product development. —Addy Osmani is Head of Chrome Developer Experience at Google, where he leads teams focused on improving performance, toolin ... Show More
1h 8m
Recommended Episodes
Aug 28
A Conversation with Amazon CTO Werner Vogels
<p>Werner Vogels is the Chief Technology Officer at Amazon, where he has played a pivotal role in shaping the company’s technology vision for over two decades. Before joining Amazon in 2004, Werner was a research scientist at Cornell University where he focused on distributed sys ... Show More
48m 15s
May 2025
Inside Devin: The world’s first autonomous AI engineer that's set to write 50% of its company’s code by end of year | Scott Wu (CEO and co-founder of Cognition)
Scott Wu is the co-founder and CEO of Cognition, the company behind Devin—the world’s first autonomous AI software engineer. Unlike other AI coding tools, Devin works like an autonomous engineer that you can interact with through Slack, Linear, and GitHub, just like with a remote ... Show More
1h 32m
Sep 2024
The things engineers are desperate for PMs to understand | Camille Fournier (author of “The Manager’s Path,” ex-CTO at Rent the Runway)
<p><strong>Camille Fournier</strong> is the author of <em>The Manager’s Path, </em>which many consider the definitive guide for navigating one’s career path in tech. Camille was previously the CTO of Rent the Runway, VP of Technology at Goldman Sachs, Head of Platform Engineering ... Show More
1h 23m
Jul 2022
Mercedes-Benz Tech Innovation, with Sabine Wolz
<p>Why does a car manufacturer own an IT company? How did that IT company end up running 900 Kubernetes clusters, starting at version 0.9? Craig asks these questions and more of <a href= "https://de.linkedin.com/in/sabine-wolz-511715140">Sabine Wolz</a>, Product Manager at Merced ... Show More
36m 3s
Feb 2021
#105: Colin Bryar Co-author of Working Backwards Insights, Stories, and Secrets from Inside Amazon
Colin co-authored the book, "Working Backwards: Insights, Stories, and Secrets from Inside Amazon," which is a first-person account of how Amazon created and implemented the principles and processes that have made it successful. He takes you in the room and shows how these princi ... Show More
43m 4s
Sep 2024
Lessons in product leadership and AI strategy from Glean, Google, Amazon, and Slack | Tamar Yehoshua (Product at Glean, ex-Google and Slack)
<p><strong>Tamar Yehoshua</strong> is the president of product and technology at Glean. Prior to joining Glean, Tamar was chief product officer at Slack, where she led product, design, and research as the company scaled, including a 10x increase in revenue, its public listing, an ... Show More
1h 17m
Apr 2025
Driving Innovation Through Open Source with Amazon’s Nithya Ruff
We want to hear from you! Email us at BCGInHerEllement@bcg.com with a voice memo describing your In Your Ellement moment. We might feature your story in an upcoming episode!***Could open source be the key to building trustworthy AI?Nithya is Director of Amazon’s Open Source Progr ... Show More
30m 49s
Aug 17
Why ChatGPT will be the next big growth channel (and how to capitalize on it) | Brian Balfour (Reforge)
Brian Balfour is the founder of Reforge, the former VP of Growth at HubSpot, and a student (and teacher) of product growth. Brian has studied every major platform shift—from Facebook to Apple to Google—and he’s spotted a pattern that’s about to repeat with ChatGPT.In this convers ... Show More
1h 29m