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

So according to the Python spec, you can write pretty much anything in a type position.

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

And technically, you can write any expression.

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

Now, that's beautiful because you can extend it.

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

You can do cool things.

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

You can build your own tools.

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

You can build your own house linter or something like that.

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

But it's also a problem because any...

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

existing Python program may be using different tools and they have different interpretations.

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

And so if you adopt somebody's package into your ecosystem, try around the tool you prefer, it may throw out tons of weird errors and warnings and problems just because it's incompatible with how these things work.

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

Also because they're added late and they're not checked by the Python interpreter, it's always kind of more of a hint than it is a requirement.

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

Also, the CPython implementation can't use them for performance.

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

Yep, exactly.

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

And this all comes back to the design principle.

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

They're kind of hints.

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

The definition's a little bit murky.

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

It's unclear exactly the interpretation in a bunch of cases.

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

And so because of that, you can't actually, even if you want to, it's really difficult to use them to say, like, it is going to be an int, and if it's not, it's a problem, right?

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

A lot of code would break if you did that.

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

So, so in Mojo, right?

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

So you can still use those kinds of type annotations.