No video

Chris Lattner: Compilers, LLVM, Swift, TPU, and ML Accelerators | Lex Fridman Podcast #21

  Рет қаралды 169,573

Lex Fridman

Lex Fridman

Күн бұрын

Пікірлер: 185
@lexfridman
@lexfridman 5 жыл бұрын
I really enjoyed this conversation with Chris. We could've easily talked for many more hours. Compiling code down across levels of abstraction is one of the most fundamental and fascinating aspects of what computers do, and he is one of the top experts in the world in this process, its rigorous science and it's messy beautiful art. Here's the high-level outline: 0:00 - Introduction 1:30 - First program, BASIC, Pascal, C 4:20 - Compilers, LLVM, CLang 37:30 - Apple - LLVM, Objective-C, Swift 45:30 - Google - Swift, Swift for TensorFlow, compilers, Colab 57:32 - TPU & TensorFlow, hardware/software co-design 1:00:30 - MLIR (Multi-Level Intermediate Representation) framework 1:02:40 - Open sourcing of TensorFlow 1:05:10 - Tesla - transition from HW1 to HW2 1:07:24 - Elon Musk and time at Tesla 1:08:45 - Working hard 1:10:40 - Dragons
@aidenstill7179
@aidenstill7179 5 жыл бұрын
Great video. Please answer me. What do I need to know to build a deep learning library? tell me the courses and books
@thehorse1sbrown
@thehorse1sbrown 5 жыл бұрын
This guy is brilliant! I wish the interview was longer.
@afriedli
@afriedli 5 жыл бұрын
@@aidenstill7179 Type "lex fridman deep learning" in the KZfaq search field and it will pull up his series of MIT lectures on the topic, in which you will find much useful information and many pointers to further information. You might also like to visit ai.google/tools/ and www.tensorflow.org
@georget5874
@georget5874 5 жыл бұрын
There's a guy called Dr Michael Levin who works at Tufts, who did a talk on bioelectric computation outside the nervous system, he touched on a few things that might relate to AI. I'd love to hear an interview with him, his facebook talk was one of the most interesting I've seen on youtube... this one was also fascinating by the way. *kzfaq.info/get/bejne/iNB0ZMR90pq4mJs.html
@waystilos
@waystilos 5 жыл бұрын
This was awesome. The questions and answers were all on point. Please have a part 2 one day.
@AlpGuneysel
@AlpGuneysel 5 жыл бұрын
wow, i wouldn't expect Chris to be such humble, down-to-earth and loveable person. I could watch this all day. Thanks Lex.
@KimP0612
@KimP0612 9 ай бұрын
Visual Basic??
@lazertroll702
@lazertroll702 3 ай бұрын
He said for google choosing to keep ml proprietary and secret, that google makes the world better 😂😂
@ryanjohnson2844
@ryanjohnson2844 3 ай бұрын
Out of all the things he said all you could think about was “wow he’s so humble” 💀
@aga1nstall0dds
@aga1nstall0dds Ай бұрын
​@@ryanjohnson2844don't underestimate humility
@user-nt2rz4ll9b
@user-nt2rz4ll9b 4 күн бұрын
😅
@whiteF0x9091
@whiteF0x9091 5 жыл бұрын
Lex is becoming a professional in introductions 👏👏👏
@ravindrasharma85
@ravindrasharma85 2 жыл бұрын
Ì
@shengxu6331
@shengxu6331 3 жыл бұрын
I wish I had a professor like Chris Lattner in all my CS courses. If Chris finds some time in the future he really should open an online course in Compilers or Language design.
@domaincontroller
@domaincontroller 2 жыл бұрын
01:29 first program basic, pascal, turbopascal...02:28 C/C++ 02:48 straight to the machine 03:02 C 04:45 what is even a compiler used for ? 06:57 C parser, front-end, clang 07:06 middle part, the optimizer 07:09 a late part, hardware specific 07:17 LLVM trying to standarsize these middle and last parts 15:57 C++ is a very complicated programming language, 1400 pages in the specs 16:53 gcc 17:20 clang, push forward on better user interface, compile time better, want to make new tools available 18:04 C++ and the front-end piece is complicated, syntax trees 18:46 AST, control flow graph
@AnitShrestha
@AnitShrestha 5 жыл бұрын
I can literally feel the love for code from Chris. Really good conversation on compiler and other hidden/hard subjects. Thank you Lex and Chris.
@BiancaAguglia
@BiancaAguglia 5 жыл бұрын
Chris Lattner has a gift for taking complex concepts and **compiling** them down to something non-geeks like me can understand. 😊 Another great interview, Lex.
@nineth944
@nineth944 5 жыл бұрын
Indeed. The ability to explain complex concepts clearly and in a beautiful way is often a sign of the depth and breadth of one's understanding and experience.
@Hexanitrobenzene
@Hexanitrobenzene 3 жыл бұрын
@paz y amor I agree. Maybe also distilling.
@muneshchauhan
@muneshchauhan 5 жыл бұрын
A great talk on compilers by Chris. Thanks Lex for bringing this talk accessible to all. Would be interested to know if someone can define a learning path for LLVM compilers from a beginner level to advanced.
@KonflictYT
@KonflictYT 3 жыл бұрын
I enjoy how thorough chris is when defining the concepts he brings up. He is clearly someone who cares to have a deep understanding of the things he knows.
@fortifyyourdata2971
@fortifyyourdata2971 5 жыл бұрын
This is the kind of content the internet needs more of. Thanks Lex!
@sai4007
@sai4007 5 жыл бұрын
Lex, thanks for all the hard work needed to deliver podcasts of top-notch quality. You have helped see a glimmer into the minds of these amazing researchers and engineers. Your questions are very enjoyable, not diluted showing the level of research you have undertaken before the interview. In the Goodfellow podcast, I learnt abstract view of how some new areas like differential privacy is evolving, or challenges are currently, which I wouldn't have with the rate of current research paper publications. Maybe you can continue this series (or create a new one) into exploring various areas machine learning ? For someone who lacks direct access to good mentors in ml, podcasts like yours are heaven sent.
@00jknight
@00jknight 5 жыл бұрын
Lex, thank you so much for starting this podcast. These are real amazing people and their inner lives are not well documented in the collective human archive.
@kestergascoyne6924
@kestergascoyne6924 5 жыл бұрын
Amazing Lex!!! Your podcast is INCREDIBLE!!! You are truly doing a service for the world!!!!
@OkiemPiotra
@OkiemPiotra 5 жыл бұрын
Great convo. I wish Chris divulged more on how Tesla is approaching ML and what are the specific benefits of the vertically integrated hardware/software stack for self driving ;)
@smartwolf9045
@smartwolf9045 3 жыл бұрын
I hope you'll never stop posting podcasts as it's a fantastic resource
@binihalex8097
@binihalex8097 4 жыл бұрын
Bow to the Master of swift. I just started a class on mobile app dev. The professor showed us this episode... a good way to start
@charlesbisbee3014
@charlesbisbee3014 3 жыл бұрын
I can't think of a more engaging podcast to listen to. This was absolutely awesome!
@RamonSmits
@RamonSmits 5 жыл бұрын
Turbo Pascal with inline assembly!
@DrunkenUFOPilot
@DrunkenUFOPilot 2 жыл бұрын
It was great except for the few odd quirks that would cause trouble in larger projects.
@nineth944
@nineth944 5 жыл бұрын
I really like the demeanor of the interviewer - great job!
@yetanotherchannelyac1434
@yetanotherchannelyac1434 3 жыл бұрын
Good interaction. Chris was really polite 😅 and precise in his answers.
@artemisfowl9002
@artemisfowl9002 3 жыл бұрын
so this is the guy responsible for me landing a £85k job, honestly, learning the swift language was such a breeze having come over from C#, i was blown away with how easily understandable the syntax and compilation are , code is so bloody easy to write, no need to import separate libraries for string handling or input/output functionalities, the ternary conditional operator evaluates true/false expressions with quick returns on value, not sure if python has mutable collections but with swift even when you assign an array, a set or dictionary to a constant the collection is still mutable! one of its best features is ease in readability where a compound case can also be written over multiple lines, lets not even get into how you can define anything from a simple utility function with a single unnamed parameter to a complex function with expressive parameter names and different parameter functions. i do not see myself ever straying away from this language
@n00bstude
@n00bstude 5 жыл бұрын
Swift is a beautiful language. Great hearing Chris' design perspective
@AghaKhan9
@AghaKhan9 5 жыл бұрын
You are my role model for a teacher and instructor sir. Thank you very much.
@AkshayAradhya
@AkshayAradhya Жыл бұрын
47:35 Progressive Disclosure of Complexity. My favorite new term. I love this concept and now there is a phrase for it that I can use.
@kenn850
@kenn850 4 жыл бұрын
Thanks for the interview, learnt so much from it.
@karanbirchahal3268
@karanbirchahal3268 5 жыл бұрын
Wow any hour never seemed to pass so fast. Chris Lattner is my idol !
@FamilyWinn
@FamilyWinn 5 жыл бұрын
Lex, I love your videos. Yet over an hour long!! I better get college credit for this much time spent.
@goldfish8196
@goldfish8196 4 жыл бұрын
What a great interview. Really incredible. Thank you so much for sharing it.
@xchromehearxt8838
@xchromehearxt8838 5 жыл бұрын
I wish I could comprehend what these great minds are talking about... I have no knowledge of programming, I just watch this channel because I want to keep up wit AI and Lex is the best person to follow for that. Thanks for the very informative content.
@ethiesm1
@ethiesm1 4 жыл бұрын
Lattner & Keller= LEGENDS
@mohitgarg2925
@mohitgarg2925 3 жыл бұрын
Just amazing. Thank you so much for all these amazing interviews Lex! As a computer engineer and tech enthusiast, they really help me understand how these cutting-edge technologies were developed by these amazing people.
@frodobaggins3974
@frodobaggins3974 4 жыл бұрын
One of the few people who still speak fluent Assembler.
@pankajmistryin
@pankajmistryin 5 жыл бұрын
thank you for this podcast, gave me historical perspective of all things LLVM. Absolutely awesome!!!
@urvashimota07
@urvashimota07 4 жыл бұрын
I am thrilled to join an organization where Chris is working. Looking forward to work with Chris.. Great conversation!
@MrTubber44
@MrTubber44 5 жыл бұрын
Lex, absolutely excellent conversation. Watching a second time to take notes. Awesome! Thanks.
@cyndy3873
@cyndy3873 5 жыл бұрын
Cant get over how great this interview is!
@yash1152
@yash1152 2 жыл бұрын
16:14 syntax: how letters are arranged, symantics : how it behaves (C++ being complicated language) 21:15 neural network graph 24:15 trying to optimise across time 24:23 the RISC era ... 25:39 resources: running time, memory use, code size in embedded space 27:10 JAVA brought together good things like JIT compilation, garbage collection, portable code, memory safety, dynamic dispatch execution model
@SergioArroyoSailing
@SergioArroyoSailing 5 жыл бұрын
dude you have such amazing guests , thanks for sharing ! :)
@jonesconrad1
@jonesconrad1 5 жыл бұрын
GCC is still default on a lot of linux distros in part due to the kernel being developed with GCC, there are efforts to compile with clang but last time I checked the kernel has some very GCC specific bits in it.
@galdutro
@galdutro 2 жыл бұрын
I think today, the biggest issue is actually glibc
@supersnowva6717
@supersnowva6717 5 жыл бұрын
Great conversation as always Lex! Much appreciated!
@dmitrym3757
@dmitrym3757 2 жыл бұрын
This is such a cozy office. What a view!
@TylerDiamond808
@TylerDiamond808 Жыл бұрын
I think most people that have had the chance to code something then improve on it to reach the same outcome but in a more efficient and simple way understand the love of an elegant solution to solve a complex problem
@fgabrieltomas
@fgabrieltomas 2 жыл бұрын
one of the best players at Duke ever!
@RonSheely
@RonSheely 3 жыл бұрын
Thank you both.
@krishnaviyer6946
@krishnaviyer6946 5 жыл бұрын
Lex, can you get a conversation done with Jeff Dean? I think that would be wonderful. His background with neural nets back in the '90s which he parked for the here and now automation at Google, followed by his work in the past few years to pick the ML gauntlet and run at breakneck speed, make it available at scale etc. would be wonderful to learn from.
@allurbase
@allurbase 5 жыл бұрын
Hey Lex, it would be great if you uploaded this to Soundcloud too, youtube doesn't allow background playback on mobile. Keep awesome!
@allurbase
@allurbase 5 жыл бұрын
@@skierpage yeah its a premium feature, but i found a workaround by changing into desktop mode in the browser
@Rafayak
@Rafayak 4 жыл бұрын
He would have been the perfect guy to ask about Temple OS
@hadiwall
@hadiwall 4 жыл бұрын
Man.. rip terry, he could’ve been lex most honored guest
@Rafayak
@Rafayak 4 жыл бұрын
@@hadiwall oh crap! Yeah! To this day I'm surprised by the breadth of Terry's work on Temple OS, regardless of how much he mentally regressed, the man was a once-in-life-time kinda genius
@JosephDelgadillo
@JosephDelgadillo 5 жыл бұрын
Who else was hoping for more spicy Tesla drama 🤔
@ekbastu
@ekbastu 4 жыл бұрын
What happened there?
@reoire843
@reoire843 3 жыл бұрын
ekbastu, Exactly........
@VoltageLP
@VoltageLP 3 жыл бұрын
Lex always looks and sounds baked af
@DustinGunnells
@DustinGunnells 2 жыл бұрын
Vastly Informative! Good Stuff!
@TheRealStructurer
@TheRealStructurer 2 жыл бұрын
I have done some Objective C and Swift programming and it's. nice to hear the history behind it. Now doing some C++ for microcontrollers and boy do I miss some Swift features like memory handling!
@7447744774477447
@7447744774477447 2 жыл бұрын
Chris Lattner is going to be a great grandfather.
@JumpingCow
@JumpingCow 2 жыл бұрын
Great interview! I learned so much.
@rudya.hernandez7238
@rudya.hernandez7238 Жыл бұрын
Awesome interview, thanks
@atillacodesstuff1223
@atillacodesstuff1223 Жыл бұрын
Computer design is so damn complicated and fascinating.. I'm a (intermediate-level) Python programmer sitting on top of god knows how many abstraction layers, and very grateful for it, but I love hearing about the depth from time to time :P
@chyldstudios
@chyldstudios 5 жыл бұрын
Another great interview! Thanks Lex
@kamilziemian995
@kamilziemian995 3 жыл бұрын
Incredible talk.
@rikelmens
@rikelmens 5 жыл бұрын
Thanks Lex and Chris!
@sourPollo
@sourPollo 2 жыл бұрын
Great interview.
@deeplearningpartnership
@deeplearningpartnership 5 жыл бұрын
Thanks Lex.
@dendritedigital2430
@dendritedigital2430 4 жыл бұрын
Hi Chris and Lex, Got my ALU accelerated for a 64 bit unit from 164 ns down to 5 ns. Continuing to develop on FPGAs not easy on Macs. Thinking of unloading my antiques.
@dennis_johnson
@dennis_johnson 3 жыл бұрын
Haha I’m using the Dragon book this semester for compiler design!
@godblessamerica793
@godblessamerica793 5 жыл бұрын
Thanks Lex!
@thenoorer
@thenoorer 5 жыл бұрын
why the introduction gives a vibe of the twilight zone series
@reoire843
@reoire843 3 жыл бұрын
He should start all of his videos with, “Submitted for your approval…“
@dciug
@dciug 5 жыл бұрын
Lex, I think the dataset is big enough for you to automatically generate the introductions.
@user-ng8rl3jb1i
@user-ng8rl3jb1i 2 жыл бұрын
you both have appropriate voices for radio lol
@akilanselvacoumar4753
@akilanselvacoumar4753 3 жыл бұрын
Amazing podcast !!!
@dnavas7719
@dnavas7719 5 жыл бұрын
Awesome interview. Thanks a lot. Any plans on interviewing Ben Goertzel?
@ivangetta
@ivangetta 5 жыл бұрын
also, android os platform code can no longer be compiled by gcc: clang allowed c++ programers to have fun and write templates with embedding level that gcc refuses to compile.
@mustafasabur
@mustafasabur 5 жыл бұрын
Lex, Love u man! Thanks for doing this!!
@colinmaharaj
@colinmaharaj 5 жыл бұрын
Wish I could work with guys like this. I have no degree but I have a good understanding of C/C++/ASM/Java/JS...Parallel programming/Threading etc..
@Bunji2k6
@Bunji2k6 5 жыл бұрын
What a great smile.
@JameyKirby
@JameyKirby 3 жыл бұрын
Duff's Device en.wikipedia.org/wiki/Duff%27s_device
@0xOrganix
@0xOrganix 5 жыл бұрын
Gracias.
@pskocik
@pskocik 4 жыл бұрын
On this topic of compilers, I hope Lex also gets to talk with Yacc.
@Schcarraffone
@Schcarraffone 2 жыл бұрын
he will, if he is not attacked by a bison inbetween....
@albertwang5974
@albertwang5974 5 жыл бұрын
What's compiler? compiler is a translator to do the job translate human language or high level computer language to language of computer can understand and run.
@sidjoosin6549
@sidjoosin6549 5 жыл бұрын
great question from interviewer -- 'What makes prog. language complicated?'. As soon as the most errors in most languages made because of syntax, missunderstanding mechanics of language behavior or particular commands/libraries -- but not in pure logic -- what makes them complex? People. Thats why it's simplier to solve problem in Assembly, rather than C++. How we get there? Because solving logic problems is about of abstracting logic actions, not data itself, like sum(x,y), sqrt(x) etc.. -- we don't have one method for summing cars and another for summing donkeys, and result of sum is irrelevant to enviroment, if 2 + 4 = 9 after the rain because of moist -- this function should be purified.
@michel92777
@michel92777 Жыл бұрын
What a nice, lovely guy. Also a genius.
@Magical3589
@Magical3589 2 жыл бұрын
Noob question.. been listening to the podcast in order and this one I'm finding particularly difficult since I'm new to the information/ what they are talking about. Anyone know of other references and info I might find to better understand the topic and then come back to this talk?
@alexandrearnold7546
@alexandrearnold7546 3 жыл бұрын
//notes 28:33 How did JVM change the compilation pipeline?
@originalideas9617
@originalideas9617 5 жыл бұрын
lex + yacc = compiler
@SaifUlIslam-db1nu
@SaifUlIslam-db1nu 4 жыл бұрын
I made a note of the some points, not all, as a gist which you can see here so that it's easier to remember and look back on the details: gist.github.com/Rubix982/cbca0ddcc197bf0d32c9dfd9854c21c5 . Hope it helps.
@bbjjooddhh
@bbjjooddhh Жыл бұрын
"It's rigorous science and messy beautiful art."
@Creativecells
@Creativecells 2 жыл бұрын
Thanks
@ilovepickles7427
@ilovepickles7427 5 жыл бұрын
AnyChrisLattner
@bgoodwin91006
@bgoodwin91006 5 жыл бұрын
next step is to compile flow charts.
@grapy83
@grapy83 3 жыл бұрын
This channel is more like a nerd gold mine. An accurate one for that too.
@adelinaquijano1083
@adelinaquijano1083 Жыл бұрын
lots of learn
@sagetmaster4
@sagetmaster4 5 жыл бұрын
Don't know any of these acronyms LEEROOOOOOOYYYYYYY JENNKINNNNNNNS!
@user-bj8ev5rk8e
@user-bj8ev5rk8e Ай бұрын
When you are interviewing Jeff dean?
@adelinaquijano1083
@adelinaquijano1083 Жыл бұрын
I'm a hardworking trust is important
@yash1152
@yash1152 2 жыл бұрын
1:37 umh, i recognise him. ain't he same as the person behind the company promoting RISC-V. It was named smth like Start V if i recall correct. I saw his interview regarding same with Lex himself.
@justinbeam4233
@justinbeam4233 10 ай бұрын
Its murr from impractical jokers
@richardlittlewood4367
@richardlittlewood4367 Жыл бұрын
The tree is moving again, Please put another background in. it is distracting.
@DanielJayy
@DanielJayy Жыл бұрын
Mans really said is an AST like a neural network. As a CS PhD.
@dejabu24
@dejabu24 2 жыл бұрын
I learned objective c like in 2 weeks , is not really that hard, Apple made that language to make it more accessible to web developers or people coming from Python, I don’t like Swift’s syntax but it was a smart move to do that
@user-dr5nt2is7f
@user-dr5nt2is7f 4 ай бұрын
18:52 58:04
@TABWA6
@TABWA6 Жыл бұрын
Lexxie and I wife wendy Fridman would like to give thanks for congratulations on the birth of our new babies .🎉🎉🎉🎉😂😂😂😂❤❤❤❤😢😢😢😢😊😊😊😊
@jonesconrad1
@jonesconrad1 3 жыл бұрын
Answer to Lex's question about the complication of C++ I would say it's templates, remove templates from the language and it would be drastically simpler.
@adelinaquijano1083
@adelinaquijano1083 Жыл бұрын
I'm hardworking never change direction
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 43 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 14 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 52 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 24 МЛН
Rajat Monga: TensorFlow | Lex Fridman Podcast #22
1:10:58
Lex Fridman
Рет қаралды 38 М.
Python vs Swift | Prime Reacts
19:44
ThePrimeTime
Рет қаралды 74 М.
Swift Concurrency Manifesto | Chris Lattner and Lex Fridman
10:59
Mojo🔥: a deep dive on ownership with Chris Lattner
48:50
I made a Compiler in 25 Days - Here is what I learned
40:59
Alex The Dev
Рет қаралды 54 М.
Chris Voss: FBI Hostage Negotiator | Lex Fridman Podcast #364
2:10:17
Lex Fridman
Рет қаралды 1,7 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 43 МЛН