Тёмный

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

Lex Fridman
Подписаться 4 млн
Просмотров 164 тыс.
50% 1

Наука

Опубликовано:

 

12 май 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 181   
@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 RU-vid 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. *ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RjD1aLm4Thg.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 5 месяцев назад
Visual Basic??
@lazertroll702
@lazertroll702 5 часов назад
He said for google choosing to keep ml proprietary and secret, that google makes the world better 😂😂
@whiteF0x9091
@whiteF0x9091 5 лет назад
Lex is becoming a professional in introductions 👏👏👏
@ravindrasharma85
@ravindrasharma85 Год назад
Ì
@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 Год назад
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
@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.
@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.
@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.
@sai4007
@sai4007 4 года назад
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.
@fortifyyourdata2971
@fortifyyourdata2971 5 лет назад
This is the kind of content the internet needs more of. Thanks Lex!
@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.
@charlesbisbee3014
@charlesbisbee3014 3 года назад
I can't think of a more engaging podcast to listen to. This was absolutely awesome!
@goldfish8196
@goldfish8196 4 года назад
What a great interview. Really incredible. Thank you so much for sharing it.
@MrTubber44
@MrTubber44 5 лет назад
Lex, absolutely excellent conversation. Watching a second time to take notes. Awesome! Thanks.
@yetanotherchannelyac1434
@yetanotherchannelyac1434 3 года назад
Good interaction. Chris was really polite 😅 and precise in his answers.
@AghaKhan9
@AghaKhan9 5 лет назад
You are my role model for a teacher and instructor sir. Thank you very much.
@kestergascoyne6924
@kestergascoyne6924 5 лет назад
Amazing Lex!!! Your podcast is INCREDIBLE!!! You are truly doing a service for the world!!!!
@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.
@pankajmistryin
@pankajmistryin 5 лет назад
thank you for this podcast, gave me historical perspective of all things LLVM. Absolutely awesome!!!
@smartwolf9045
@smartwolf9045 2 года назад
I hope you'll never stop posting podcasts as it's a fantastic resource
@kenn850
@kenn850 4 года назад
Thanks for the interview, learnt so much from it.
@supersnowva6717
@supersnowva6717 5 лет назад
Great conversation as always Lex! Much appreciated!
@nineth944
@nineth944 5 лет назад
I really like the demeanor of the interviewer - great job!
@cyndy3873
@cyndy3873 5 лет назад
Cant get over how great this interview is!
@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 ;)
@SergioArroyoSailing
@SergioArroyoSailing 5 лет назад
dude you have such amazing guests , thanks for sharing ! :)
@poggchampion
@poggchampion 4 года назад
Swift is a beautiful language. Great hearing Chris' design perspective
@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.
@karanbirchahal3268
@karanbirchahal3268 4 года назад
Wow any hour never seemed to pass so fast. Chris Lattner is my idol !
@FamilyWinn
@FamilyWinn 4 года назад
Lex, I love your videos. Yet over an hour long!! I better get college credit for this much time spent.
@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
@JumpingCow
@JumpingCow 2 года назад
Great interview! I learned so much.
@chyldstudios
@chyldstudios 5 лет назад
Another great interview! Thanks Lex
@RonSheely
@RonSheely 3 года назад
Thank you both.
@rikelmens
@rikelmens 5 лет назад
Thanks Lex and Chris!
@rudya.hernandez7238
@rudya.hernandez7238 Год назад
Awesome interview, thanks
@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!
@mustafasabur
@mustafasabur 5 лет назад
Lex, Love u man! Thanks for doing this!!
@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
@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.
@DustinGunnells
@DustinGunnells 2 года назад
Vastly Informative! Good Stuff!
@sourPollo
@sourPollo 2 года назад
Great interview.
@kamilziemian995
@kamilziemian995 3 года назад
Incredible talk.
@akilanselvacoumar4753
@akilanselvacoumar4753 3 года назад
Amazing podcast !!!
@ethiesm1
@ethiesm1 4 года назад
Lattner & Keller= LEGENDS
@dmitrym3757
@dmitrym3757 Год назад
This is such a cozy office. What a view!
@dnavas7719
@dnavas7719 5 лет назад
Awesome interview. Thanks a lot. Any plans on interviewing Ben Goertzel?
@godblessamerica793
@godblessamerica793 5 лет назад
Thanks Lex!
@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.
@deeplearningpartnership
@deeplearningpartnership 5 лет назад
Thanks Lex.
@urvashimota07
@urvashimota07 4 года назад
I am thrilled to join an organization where Chris is working. Looking forward to work with Chris.. Great conversation!
@dennis_johnson
@dennis_johnson 3 года назад
Haha I’m using the Dragon book this semester for compiler design!
@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.
@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.
@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
@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..
@frodobaggins3974
@frodobaggins3974 3 года назад
One of the few people who still speak fluent Assembler.
@yash1152
@yash1152 Год назад
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
@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
@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
@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?
@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.
@TylerDiamond808
@TylerDiamond808 11 месяцев назад
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
@0xOrganix
@0xOrganix 5 лет назад
Gracias.
@Bunji2k6
@Bunji2k6 5 лет назад
What a great smile.
@VoltageLP
@VoltageLP 3 года назад
Lex always looks and sounds baked af
@user-ng8rl3jb1i
@user-ng8rl3jb1i 2 года назад
you both have appropriate voices for radio lol
@alexandrearnold7546
@alexandrearnold7546 2 года назад
//notes 28:33 How did JVM change the compilation pipeline?
@dciug
@dciug 5 лет назад
Lex, I think the dataset is big enough for you to automatically generate the introductions.
@fgabrieltomas
@fgabrieltomas Год назад
one of the best players at Duke ever!
@michel92777
@michel92777 8 месяцев назад
What a nice, lovely guy. Also a genius.
@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.
@adelinaquijano1083
@adelinaquijano1083 Год назад
lots of learn
@Creativecells
@Creativecells Год назад
Thanks
@Rafayak
@Rafayak 4 года назад
He would have been the perfect guy to ask about Temple OS
@hadiwall
@hadiwall 3 года назад
Man.. rip terry, he could’ve been lex most honored guest
@Rafayak
@Rafayak 3 года назад
@@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
@ilovepickles7427
@ilovepickles7427 5 лет назад
AnyChrisLattner
@movement2contact
@movement2contact 5 лет назад
Okay, now just to figure out how I use *this* to get out of my minimum salary job loop... :3
@pskocik
@pskocik 3 года назад
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....
@JameyKirby
@JameyKirby 3 года назад
Duff's Device en.wikipedia.org/wiki/Duff%27s_device
@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.
@7447744774477447
@7447744774477447 2 года назад
Chris Lattner is going to be a great grandfather.
@thenoorer
@thenoorer 4 года назад
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…“
@yash1152
@yash1152 Год назад
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.
@JosephDelgadillo
@JosephDelgadillo 5 лет назад
Who else was hoping for more spicy Tesla drama 🤔
@ekbastu
@ekbastu 4 года назад
What happened there?
@reoire843
@reoire843 3 года назад
ekbastu, Exactly........
@bgoodwin91006
@bgoodwin91006 5 лет назад
next step is to compile flow charts.
@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.
@sagetmaster4
@sagetmaster4 5 лет назад
Don't know any of these acronyms LEEROOOOOOOYYYYYYY JENNKINNNNNNNS!
@Kideqx
@Kideqx 5 лет назад
nice!
@originalideas9617
@originalideas9617 4 года назад
lex + yacc = compiler
@grapy83
@grapy83 3 года назад
This channel is more like a nerd gold mine. An accurate one for that too.
@bbjjooddhh
@bbjjooddhh 9 месяцев назад
"It's rigorous science and messy beautiful art."
@riccardo-964
@riccardo-964 10 месяцев назад
Beautiful
@DanielJayy
@DanielJayy Год назад
Mans really said is an AST like a neural network. As a CS PhD.
@justinbeam4233
@justinbeam4233 6 месяцев назад
Its murr from impractical jokers
@yash1152
@yash1152 Год назад
10:30 > _"in some cases, google effectively owns clang now, bcz it cares so much about C++ & the evolution"_ ... and now google is working on Carbon language as a modern day successor to CPP
@user-dr5nt2is7f
@user-dr5nt2is7f 16 дней назад
18:52 58:04
@adelinaquijano1083
@adelinaquijano1083 Год назад
I'm a hardworking trust is important
@dejabu24
@dejabu24 Год назад
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
@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.
Далее
Surprise Gifts #couplegoals
00:21
Просмотров 20 млн
host ALL your AI locally
24:20
Просмотров 187 тыс.
Just In Time (JIT) Compilers - Computerphile
10:41
Просмотров 254 тыс.
Python vs Swift | Chris Lattner and Lex Fridman
11:16
Просмотров 146 тыс.
LLVM in 100 Seconds
2:36
Просмотров 814 тыс.