Mojo Lang - Tomorrow's High Performance Python? (with Chris Lattner)

Channel:Developer Voices · Length:1:24:38 · Published:2024-05-01 · Views:63842

Watch on YouTube

Summary

Developer Voices interviews Chris Lattner about Mojo, a Python-compatible language aimed at CPU/GPU performance built on LLVM and MLIR. It covers performance features, the type system and why Mojo uses Python syntax.

Why HN recommends it

Pointed to as a general-purpose interview on Mojo's goals and design from its creator.

Here's an interview with Chris Lattner discussing Mojo in much more generalized terms — HN, 2024

Programming language design · Python, Ruby & scripting languages · Compilers, interpreters & program analysis

Subtitles (excerpt)

Could Python become a high-performance parallel programming language? That seems unlikely. I mean, there are some fundamental architectural reasons why that feels like a bigger shift than Python 2 to Python 3, and that was a big enough shift already. But I raised the question so that I can flip it on its head. Could a high-performance parallel programming language become Python? That to me seems more reasonable. Start with a low-level, compiler-level language. Do your performance work. Figure out those parts. And then when you build up into user space and choose a syntax, why not Python? Now that broadly is the approach taken by the new language Mojo and its creator, Chris Latner. If you've not heard of Chris, I'm certain you've heard of his work. He created LLVM. He created Clang, the other big C C++ compiler. He created Swift, the language of shiny Apple products everywhere. He has serious form in language design, and he's one of the few people I know that actually could run the gauntlet from Python syntax all the way down to CPU and GPU and back. And he has some really interesting ideas for his latest language, like "Let's do Python but bring in a gradual type system. Let's make parallelization a

On Hacker News

Some more generalized information to get started with: MLIR was spearheaded by the same person who created LLVM, to add additional features that Google needed to build compilers for its in-house hardware AI accelerators. Mojo is a new language that takes advantage of the new features enabled by MLIR, in the same way that Swift took advantage of the features previously enabled by LLVM. Here's an i… — GeekyBear, 2024-06
From Docs, [LINK] "This is 100% compatible because we use the CPython runtime without modification for full compatibility with existing Python libraries." At this point you need to either explain your objection, or just admit you are a troll. You haven't actually at any point in this exchange offered any actual argument beyond 'duh, you're wrong'. I'd be ok if you actually pointed to something li… — FrustratedMonky, 2025-09
Andrej Karpathy karpathy is a magician! But being the coolest kid on the block with pure C/CUDA implementation is not enough [LINK] Studying a baby Llama 2 model source code in pure Mojo is the next level [LINK] [LINK] Mojo Lang - Tomorrow's High Performance Python? (with Chris Lattner) [VIDEO] Andrej Karpathy and Chris Lattner collab is on my wishlist ;) — adeptima, 2024-05

Related videos