[SPLASH'26] Mojo: Towards One Systems Language for All Hardware

Lobsters Hottest Events

Summary

In the SPLASH'26 keynote, Chris Lattner outlined the motivation and design of Mojo — a unified systems language with Python syntax, open-sourced under Apache 2.0, targeting CPUs and six AI accelerator architectures. Through zero-cost abstractions, linear types, and low-level access via MLIR, it aims to solve hardware fragmentation and unlock full performance.

<p><a href="https://lobste.rs/s/hnklz9/splash_26_mojo_towards_one_systems">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 11/17/26, 02:27 AM

**TL;DR: In his SPLASH'26 keynote, Chris Lattner laid out the motivation and design of Mojo — a unified systems language with Python syntax, open source, targeting both CPUs and AI accelerators — to solve the problem of hardware fragmentation, and to unlock the full performance of hardware through zero-cost abstractions, language built-ins expressed as libraries, and low-level access to MLIR.** ## Opening Remarks and Guest Introduction OOPSLA co-chair Ann Miller introduced keynote speaker Chris Lattner. Lattner is the original creator of the widely used LLVM compiler infrastructure and played a central role in the creation of the LLVM-based Clang compiler; he initiated and led the development of Apple's Swift programming language and later helped Google create the MLIR compiler infrastructure. Today he is co-founder and CEO of Modular, where he continues his work on Mojo. The talk was titled "Mojo: Towards One Systems Language for All Hardware." Lattner noted that he rarely gets the opportunity to give deep technical talks, and invited the audience to dive into topics like compilers during the Q&A. ## What Is Mojo Mojo is a programming language whose current state can be summarized as: **it's real and in use** — millions of lines of code, a large user base, already used in production. It's open source and available today, and it's quite fun. Key details include: - **License**: Apache 2.0 — fully open sourced just a few months ago, so quite new. - **Development time**: Four and a half years of development so far. - **Release cadence**: Nightly builds available, with an official release every six weeks, all viewable on GitHub. - **Platform coverage**: In the same family as C++, Rust, and Swift — targeting CPUs and supporting those common platforms. - **The real differentiator**: Built for AI accelerators. It currently supports **six different architectures from six different companies** — Nvidia GPUs, AMD GPUs, Apple silicon GPUs, AWS Trainium, Google TPUs, and Qualcomm's many accelerators. Lattner emphasized that having a unified programming model that covers compute at this scale is quite remarkable, and "we've only just begun." He won't go too deep into hardware acceleration, but many of Mojo's design motivations come from supporting the generation of compute that has already arrived. ## Why Do We Still Need Programming Languages? Lattner acknowledged this is a frequently asked question: since we have AI, and AI will write all the code, why do we still need programming languages? His view: **programming languages are contracts** — contracts between people, the specification that compilers ultimately consume, and the basis that agents use to express and verify what they're trying to say, or what you're trying to make them say. On the claim of "just writing assembly code by feel," he counters: - How do you review it? How do you integrate it into a development workflow? He's never seen anyone doing this at scale outside of toy demos. - Even if you did, how do you know what's going on? How do you audit its behavior? How do you know it's correct? - There's theoretically a future where AI is perfect, but it hasn't arrived yet; and even then, it would only be perfect at interpreting someone's intent and prompts. How do you know you've expressed yourself precisely, correctly, and with a proper specification? Therefore, languages and co-designing code with humans are genuinely essential. ## Roadmap for the Talk Lattner previewed several questions: 1. Why build a new programming language? (There are already so many good ones) 2. Mojo's core mechanisms, and why we decided to do what we want to do 3. Two rather interesting subsystems 4. Where Mojo is headed next He mentioned the talk wouldn't be heavily AI-focused, but welcomed a deep dive at the end or during Q&A. ## Why Build a New Language Mojo started about four years ago, when there was already a lot of cool stuff in the ecosystem. And it was built in a startup context — a startup needs a very good reason to build a language; there must be a deep problem that needs solving. For Mojo, that problem was **the hardware diversity problem**. Mojo was driven by the AI hardware problem and created to solve it. ### The Status Quo: From CPUs to Fragmented Accelerators Today AI has gone from being a CPU thing to an Nvidia GPU thing, but at the same time: - There's been an explosion of various accelerators from different companies; - Compute keeps expanding, from phones to laptops to data centers; - There are hundreds of startups; - **There is no single unified way to program all of this.** If you dig in, the best and most widely adopted solution is probably C++. ### On C++ Lattner says he's qualified to weigh in: he's written millions of lines of C++. His take: > "I don't think C++ is perfect. I think C++ lacks excellence." While the industry owes a great deal to C++, it compiles very slowly, its error messages are terrible, it's painful to work with, and there are many, many problems. ### The Problem with Python DSLs Focusing on the AI accelerator space, another common approach is Python DSLs. They're very popular and relatively cheap and easy to build, but the problems include: - They look like Python, but they aren't. - Many of them (using **Triton** as an example) aren't particularly good at fully exploiting accelerator performance — you rely on those "clever enough" compilers, and they usually don't work out. - When they fail, you end up having to look at MLIR dumps. **"As a compiler person, that's cool; as a person who cares about high-performance numerical computing, that's less cool."** - The toolchain that comes with these things ends up being pretty terrible as well. Mojo was built with an understanding of these systems, hoping to take a step forward. ### The Bigger Problem: Fragmentation Hardware vendors each build their own chips, mostly chasing Nvidia — for which they don't have CUDA: - **CUDA is cool** — it's C++-ish, runs extremely well on Nvidia, but is deliberately locked to their own architectures. - Even within their architecture, CUDA isn't exactly modern — **CUDA is 20 years old**. "Today we have tensors, today we do AI, we're not rendering triangles anymore." - Many other accelerators use **systolic arrays** and more advanced architectural features that don't even map well to something like CUDA. So what happens is: each hardware vendor builds its own software stack. Some stacks are better than others, but as software engineers, they're all different — for a community focused on acceleration and AI, there's no standard, no ability to unify on top of all of this. And these companies don't actually get along with each other; they don't want their software to run on someone else's chips. Incidentally, building such a software stack is quite hard. Mojo's entry point was: "Let's open this problem up, let's build that unified theory, let's solve these fundamental problems." ### The Limitations of Existing Languages Many programming languages in use today are quite old: - Lattner loves **Haskell**, but it wasn't built on top of things like ML, and wasn't designed for things like AI. - He built **Swift** — "a nice side project at Apple" — which went further than most, but it predates ML and was really designed for CPUs, baking in many different design points. - **Rust** is likewise a legendary, amazing, successful language. All of these are great, but Mojo's focus is: learning from this community's work and hard-won lessons, and taking the next step forward. ## Mojo's Basic Design Decisions After surveying all that excellent work, the core ideas that went into Mojo: 1. **Use Python syntax.** Mojo is a Python-style language because AI practitioners are largely there. But it isn't Python — it uses Python's syntax but is an entirely new language with a new compiler. The design looks like Python for familiarity, but doesn't inherit its implementation. 2. **Build on ML and accelerators** — this is the core reason for its existence. 3. **Take the next step in compiler design**, building a new compiler architecture (which this talk won't go too deep into). 4. **Unleash the full power of hardware.** There have been many attempts in the past to water down accelerators and make them look the same for the sake of unification, but you lose power that way. Especially in AI, inference serving, and data centers, people care about token economics and cost — performance is everything, and you have to squeeze maximum performance out of accelerators. 5. **Bring in the best ideas.** There's so much evolving in programming languages — Swift alone has been around for 15 years — bring in new techniques and genuinely learn from others' work. 6. **Recognize that it's expensive.** They've invested millions of dollars in R&D on Mojo, built a sizable engineering team, and actually put it into production. "If you're going to do it, do it right." ### Standing on the Shoulders of Giants Mojo introduces a whole batch of features, some of which we'll cover today: - **Linear types**: true linear types aren't something general-purpose languages typically support. - **Checked generics**: good error messages without needing instantiation. - **Strong ownership and exclusivity checking**: memory safety without a garbage collector. - **Compile-time computation**, along with many other modern language features. Doing this in a way that takes the best from each family to create something new — even though nothing in Mojo is entirely new. Lattner joked that he probably couldn't get an accepted academic paper out of Mojo, but that was never the goal; the goal is to build something useful. ## Zero-Cost Abstractions The idea behind zero-cost abstractions is that you can use library features and build code on top of other code without paying a penalty for extra function calls, wrapping, unwrapping, boxing, and so on. This is well known in languages like C++, Rust, and Swift, and Mojo pushes it further. The example is basically like `std::vector` in C++, but it's called **`list`**, since Python and Mojo use the name `list`: - It has a pointer, a length, and a capacity, so you can write very low-level code (using unsafe features in this example) and then expose a type-safe API on the outside; - `list` has an `append` method that takes a value; - There's `get_item` (again nodding to Python, enabling subscript access); - There's `length`, plus various other methods. In other words, Mojo takes Python's core syntax and the core ideas that make things like Python's operator overloading work, then introduces systems programming features. ## Expressing the Language Itself as a Library Lattner argues that if you make a language powerful enough, you should be able to express most of that language in libraries. This isn't new either — Haskell did it long ago, with `bool`, `maybe`, `otherwise` keywords and the like being part of the prelude. Mojo adopted this idea and went quite far: core types like `bool`, `int`, `tuple`, `string` — things many would place at a higher level — and Mojo builds `bool` into the standard library, which is fairly unusual for a language. Because it's open source, you can find the implementation: it's just a `struct` with some storage, values representing true and false, supporting negation, equality, and all the operations you'd want on a bool, working just like any other `struct`. ### Where's the Bottom of the Turtle? Zero-cost abstractions give you turtles, and you can stack turtles to build abstractions on top. But when you reach the bottom of that stack of turtles, where do you hit bedrock? In this example, the answer is **MLIR**. Mojo gives you full capability and complete access to compiler technologies like MLIR and LLVM: - You can use MLIR types directly, such as the low-level type `i1`; - You can use MLIR operations, attributes — all of these are fully enabled by Mojo; - This lets you build integers, booleans, pointers, and the like in a library, and it bottoms out at the IR. *(Note: The original transcript cuts off here; the content about Mojo's two subsystems and future directions is not included in the provided transcription.)* Source: [SPLASH'26] Mojo: Towards One Systems Language for All Hardware — https://www.youtube.com/watch?v=9-97SB5XJh4

Similar Articles

The Mojo language (by Modular, now Qualcomm) is now open-source

Hacker News Top

Mojo 1.0 has been fully open-sourced under an Apache 2.0 license, making the AI programming language accessible to developers worldwide. The announcement also includes the launch of Modular Cloud and expanded support for various hardware accelerators.

Mojo 1.0 Beta

Hacker News Top

Modular announces the Mojo 1.0 Beta, a high-performance programming language that combines Python's ease of use with the speed of compiled languages for AI and systems programming.