Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Pricing

Chris Lattner

๐Ÿ‘ค Speaker
See mentions of this person in podcasts
2524 total appearances

Appearances Over Time

Podcast Appearances

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And then you can have everything that's great about Python, all the things you're talking about that you love, plus not be forced out of it when you do something a little bit more computationally intense or weird or hardware-y or whatever it is that you're doing.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

So Mojo, the complicated answer, does all the things.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

So it's interpreted, it's shit compiled, and it's statically compiled.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so this is for a variety of reasons.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

So one of the things that makes Python beautiful is that it's very dynamic.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And because it's dynamic, one of the things they added is that it has this powerful metaprogramming feature.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so if you look at something like PyTorch or TensorFlow or, I mean, even a simple use case, like you define a class that has the plus method, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

You can overload the dunder methods like dunder add, for example, and then the plus method works on your class.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so it has very nice and very expressive dynamic metaprogramming features.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

In Mojo, we want all those features come in.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

We don't want to break Python.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

We want it all to work.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

But the problem is you can't run those super dynamic features on an embedded processor or on a GPU.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

Or if you could, you probably don't want to just because of the performance.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so we entered this question of saying, OK, how do you get the power of this dynamic metaprogramming

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

into a language that has to be super efficient in specific cases.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so what we did was we said, okay, we'll take that interpreter.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

Python has an interpreter in it, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

Take that interpreter and allow it to run at compile time.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so now what you get is you get compile time metaprogramming.