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 so if we can help heal that, now I'm not optimistic that all people will use Mojo and they'll stop using C++.

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

That's not my goal, right?

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

But if we can heal some of that, I think that'd be pretty cool.

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

So there are proposals for adding braces to Mojo.

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

Oh, interesting.

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

We tell them no.

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

Yeah, so one of the things that is useful, and it's not always required, but it's useful, is knowing whether something can change out from underneath you.

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

And so in Python, you have a pointer to an array.

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

And so you pass that pointer to an array around to things.

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

if you pass into a function, they may take that and scrolled away in some other data structure.

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

And so you get your array back and you go to use it.

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

And now somebody else is like putting stuff in your array.

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

How do you reason about that?

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

It gets to be very complicated, at least lots of bugs.

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

Right.

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

And so one of the things that, you know, again, this is not something Mojo forces on you, but something that Mojo enables is a thing called value semantics.

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

And what value semantics do is they take collections like arrays, like dictionaries, also tensors and strings and things like this that are much higher level and make them behave like proper values.

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

And so it makes it look like if you pass these things around, you get a logical copy of all the data.

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

And so if I pass you an array, it's your array.

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

You can go do what you want to it.