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

That's kind of a different thing.

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

We can go back to that if you want.

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

But typically, you just say, I have a def, and my def takes two parameters.

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

I'm going to call them a and b, and I don't have to write a type.

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

So that works.

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

is great, but what that does is that forces what's called a consistent representation.

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

So these things have to be a pointer to an object with the object header, and they all have to look the same.

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

And then when you dispatch a method, you go through all the same different paths, no matter what the receiver, whatever that type is.

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

So what Mojo does is it allows you to have more than one kind of type.

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

And so what it does is allows you to say, okay, cool, I have an object and objects behave like Python does.

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

And so it's fully dynamic and that's all great.

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

And for many things, classes, like that's all very powerful and very important.

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

But if you want to say, hey, it's an integer and it's 32 bits or 64 bits or whatever it is, or it's a floating point value,

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

and it's 64 bits.

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

Well, then the compiler can take that and it can use that to do way better optimization.

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

And it turns out, again, getting rid of the interactions, that's huge.

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

It means you can get better code completion because you have, because compiler knows what the type is.

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

And so it knows what operations work on it.

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

And so that's actually pretty huge.

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

And so what Mojo does is it allows you to progressively adopt types into your program.