Chris Lattner on Mojo and the future of programming with AI
Compiler legend Chris Lattner just joined the Lex Fridman Podcast to discuss Mojo, his new programming language built for AI hardware and high performance. He breaks down how Mojo compares to Python and PyTorch, alongside his perspective on ChatGPT and the evolving craft of software development.
Every AI developer knows the two-language problem all too well: you prototype happily in Python, but the moment you need real performance, you are forced to drop down into C++ or custom hardware kernels.
Compiler legend Chris Lattner joined the Lex Fridman Podcast for episode 381. If you are not familiar with the resume, Lattner created LLVM and Clang, designed Swift at Apple, worked on TPUs and MLIR at Google, led Autopilot at Tesla, and is now the co-founder and CEO of Modular.
Over the course of three and a half hours, Lattner laid out why he built Mojo, what is fundamentally broken about AI infrastructure, and where programming goes from here.
Rebuilding Python from the ground up
Mojo is Modular's answer to the fragmentation plaguing modern AI development. Instead of forcing developers to juggle CPython alongside PyTorch and CUDA, Mojo is built as a superset of Python that bridges high-level expressiveness with bare-metal speed.
During the conversation, Lattner dug deep into the language mechanics. He explained how introducing typed programming, immutability, and hardware-aware autotuning can give developers fine-grained control without losing Python's familiar syntax.
He also addressed comparisons with Swift and Julia, reflected on conversations with Python creator Guido van Rossum, and highlighted collaboration with fast.ai founder Jeremy Howard. For those curious to test it out, Modular made a Mojo playground available while working through its broader roadmap.
From LLVM to AI infrastructure
Lattner's worldview is deeply shaped by his track record across Apple, Google, and SiFive. His core argument is simple: hardware accelerators like GPUs and TPUs have evolved rapidly, but the software toolchains driving them are fragmented and stuck in the past.
Mojo is designed to handle distributed deployment natively. It aims to unify everything from single-core memory access up to massive clusters, eliminating the mess of glue code that holds modern machine learning stacks together.
Beyond technical choices like function overloading and exception handling, Lattner and Fridman also zoomed out to discuss ChatGPT, the risks of artificial intelligence, and how generative models are transforming the craft of software engineering.
Why it matters
Chris Lattner is one of the few people alive with the credibility to propose an entirely new systems language and actually make the industry pay attention. His work on LLVM and Swift already underpins most of the software running on modern devices.
For machine learning engineers, a working Mojo could eliminate the painful friction of rewriting high-level research code into low-level production systems. That said, it is still very early days; testing out code in the playground is one thing, but running real-world production workloads on an evolving roadmap is another.
We think Modular's strategy is undeniably sharp. Instead of entering the crowded battle over foundation models, it is targeting the messy plumbing layer between silicon and software.
The real hurdle will not be benchmark performance, but culture. Python's moat is its massive, sprawling ecosystem of libraries and institutional inertia. Replacing that takes more than better compiler architecture, and history shows that developer habits die hard.
Sources (2)
- youtube.com(opens in a new tab)Originalyoutube.com
- lexfridman.com(opens in a new tab)Reportlexfridman.com