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

Guido van Rossum

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

Appearances Over Time

Podcast Appearances

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And so we can generate an add integer instruction, but we can still have a fallback that says,

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

oh, if somehow the code at runtime provided something else, maybe it provided two decimal numbers, we can still use that generic add operation as a fallback, but we're not there.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

There are third-party libraries that are in that business.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

It seems like a tricky thing.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Well, what we actually do is, and I think this is a fairly unique feature in Python, the type hints can be introspected at runtime.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

So while the program is running,

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

They mean Python is a very introspectable language.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

You can look at a variable and ask yourself, what is the type of this variable?

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And if that variable happens to refer to a function, you can ask, what are the arguments to the function?

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And nowadays, you can also ask, what are the type annotations for the function?

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

They're mostly associated with the function object, not with each individual variable, but you can sort of map from the arguments to the variables.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And that's what a third-party library can help with.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Exactly.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And the problem with that is that all that extra runtime type checking...

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

is going to slow your code down instead of speed it up.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And in most cases, doing it...

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

statically before you ship your code to production is more efficient than doing it at runtime piecemeal.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Yeah.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Well, so MyPi was started by a Finnish developer, Jukka Letuselo.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

So many cool things out of Finland, I got to say.