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 they do the very logical thing of keeping the memory representation of all objects the same.

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

So all objects have a header.

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

They have payload data.

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

And what this means is that every time you pass around an object, you're passing around a pointer to the data.

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

Well, this has overhead.

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

It turns out that modern computers don't like chasing pointers very much and things like this.

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

It means that you have to allocate the data.

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

It means you have to reference count it, which is another way that Python uses to keep track of memory.

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

And so this has a lot of overhead.

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

And so if you say, okay, let's try to get that out of the heap, out of a box, out of an indirection, and into the registers.

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

Mm-hmm.

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

That's another 10x.

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

Yep.

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

And if you look at, you know, people complain about the Python GIL.

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

This is one of the things that hurts parallelism.

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

That's because of the reference counting.

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 the GIL and reference counting are very tightly intertwined in Python.

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

It's not the only thing, but it's very tightly intertwined.

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

And so then you lean into this and you say, okay, cool.