Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Blog 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

Okay.

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

So that means you put a lot of time into compatibility and it means that you get locked into decisions of the past and

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

even if they may not have been a good thing, right?

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

Now, systems programmers typically like to control things, right?

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

And they wanna make sure that, you know, not in all cases, of course, and even systems programmers are not one thing, right?

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

But often you want predictability.

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

And so one of the things that Python has, for example, as you know, is that if you define a variable, you just say x equals four.

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

I have a variable named x.

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

Now I say some long name equals 17.

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

Print out some long name.

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

Oops, but I typoed it.

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

Well, the compiler, the Python compiler doesn't know, in all cases, what you're defining and what you're using.

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

And did you typo the use of it or the definition?

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

And so for people coming from type languages, again, I'm not saying they're right or wrong, but that drives them crazy because they want the compiler to tell them, you typoed the name of this thing.

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

And so what FN does is it turns on, as you say, it's a strict mode.

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

And so it says, okay, well, you have to actually declare, intentionally declare your variables before you use them.

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

That gives you more predictability, more error checking and things like this, but you don't have to use it.

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

And this is a way that Mojo is both compatible, because DEFs work the same way that DEFs have always worked, but it provides a new alternative that gives you more control and allows certain kinds of people that have a different philosophy to be able to express that and get that.

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

It depends.

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

Again, it depends on your mentality, right?