Тёмный

Bjarne Stroustrup: Simplification is the Key to Reliability and Efficiency in Code 

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

This is a clip from a conversation with Bjarne Stroustrup from Nov 2019. New full episodes are released once or twice a week and 1-2 new clips or a new non-podcast video is released on all other days. You can watch the full conversation here: • Bjarne Stroustrup: C++...
(more links below)
Podcast full episodes playlist:
• Lex Fridman Podcast
Podcasts clips playlist:
• Lex Fridman Podcast Clips
Podcast website:
lexfridman.com/ai
Podcast on Apple Podcasts (iTunes):
apple.co/2lwqZIr
Podcast on Spotify:
spoti.fi/2nEwCF8
Podcast RSS:
lexfridman.com/category/ai/feed/
Note: I select clips with insights from these much longer conversation with the hope of helping make these ideas more accessible and discoverable. Ultimately, this podcast is a small side hobby for me with the goal of sharing and discussing ideas. I did a poll and 92% of people either liked or loved the posting of daily clips, 2% were indifferent, and 6% hated it, some suggesting that I post them on a separate RU-vid channel. I hear the 6% and partially agree, so am torn about the whole thing. I tried creating a separate clips channel but the RU-vid algorithm makes it very difficult for that channel to grow. So for a little while, I'll keep posting clips on this channel. I ask for your patience and to see these clips as supporting the dissemination of knowledge contained in nuanced discussion. If you enjoy it, consider subscribing, sharing, and commenting.
Bjarne Stroustrup is the creator of C++, a programming language that after 34 years is still one of the most popular and powerful languages in the world. Its focus on fast, stable, robust code underlies many of the biggest systems in the world that we have come to rely on as a society. If you're watching this on RU-vid, many of the critical back-end component of RU-vid are written in C++. Same goes for Google, Facebook, Amazon, Twitter, most Microsoft applications, Adobe applications, most database systems, and most physical systems that operate in the real-world like cars, robots, rockets that launch us into space and one day will land us on Mars.
Subscribe to this RU-vid channel or connect on:
- Twitter: / lexfridman
- LinkedIn: / lexfridman
- Facebook: / lexfridman
- Instagram: / lexfridman
- Medium: / lexfridman
- Support on Patreon: / lexfridman

Наука

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

 

9 ноя 2019

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@lexfridman
@lexfridman 4 года назад
This is a clip from a conversation with Bjarne Stroustrup from Nov 2019. New full episodes are released once or twice a week and 1-2 new clips or a new non-podcast video is released on all other days. If you enjoy it, subscribe, comment, and share. You can watch the full conversation here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uTxRF5ag27A.html (more links below) Podcast full episodes playlist: ru-vid.com/group/PLrAXtmErZgOdP_8GztsuKi9nrraNbKKp4 Podcasts clips playlist: ru-vid.com/group/PLrAXtmErZgOeciFP3CBCIEElOJeitOr41 Podcast website: lexfridman.com/ai Podcast on Apple Podcasts (iTunes): apple.co/2lwqZIr Podcast on Spotify: spoti.fi/2nEwCF8 Podcast RSS: lexfridman.com/category/ai/feed/
@erikprantare696
@erikprantare696 3 года назад
Many people in the comments seem to misunderstand what is being said. C++ is complicated to allow you to write simple code. While the C language is simpler, this simplicity offloads the complexity onto the actual code being written. What Bjarne talks about is giving the programmer the /ability/ to write simpler code. And that ability is dependent on complicated language features.
@Nichiyoobiko
@Nichiyoobiko Год назад
Just because it's being said doesn't mean it's true. When you have to look up every other std:: feature when reading code and check and second guess everything you do because there may already be a solution in std:: then this is everything but simple.
@DevlogBill
@DevlogBill Год назад
Watching this video made me realize how brilliant this man is. He gave a perspective on how C++ is meant to be used, very insightful.
@ccgb92
@ccgb92 4 года назад
5:27++ Goosebumps! So true omg :/ Loved this interview! Thank you Lex!!
@TNothingFree
@TNothingFree 3 года назад
Bjarne is remarkable and anyone who wants to be better should start listening to his ideas. I don't agree with everything but his experience backs up lots of basic concepts such as simplicitly.
@laughingvampire7555
@laughingvampire7555 11 месяцев назад
great saying from the author of one of the most complicated programming languages ever made, and one of the languages that least features has to avoid any system from crashing. This is another man responsible for trillions of dollars of money lost. Any program in Erlang is far more stable than its equivalent in C++ and I talk about Erlang because Erlang actually gives you tools for fault tolerance and those tools are enough redundancy to achieve the 9 nines.
@abhishekranjan3941
@abhishekranjan3941 3 года назад
I think he was born with that hairstyle.
@matpoliquin
@matpoliquin 4 года назад
That's what I love about the Quake 3 and Doom 3 source code, simplicity, makes coding much more enjoyable as well
@mavhunter8753
@mavhunter8753 3 года назад
Is that sarcasm?
@matpoliquin
@matpoliquin 3 года назад
@@mavhunter8753 Not sarcasm, relative to other high profile cutting edge games, I find the code to be clean, simple and consistent in general (relative to the high complexity of problems it solves).
@XenolVlatriX
@XenolVlatriX 3 года назад
were the source code leaked?
@matpoliquin
@matpoliquin 3 года назад
@@XenolVlatriX Not leaked, official source code a few years after game release
@DrZbo
@DrZbo 3 года назад
Lex please ask all these guys who created these super fast low/mid level languages what they think about python and its advantages and disadvantages! I actually think Bjarne would be a fan of it in many uses for its reliance on systems that are already cheap, secure, stable.
@snooks5607
@snooks5607 3 года назад
as a tools and data sciences language sure it's great for that, I just don't want it running where runtime environment is not guaranteed over time. oddly enough for webservices I trust javascript more than python nowadays, just due to larger and more active community in that sector
@VulcanV6
@VulcanV6 Год назад
Brake pedals on regular passenger cars are actually mechanically connected to the hydraulic braking system, so he's just wrong to say the only connection is to the car's ECU. It's correct to say of the accelerator pedal on modern cars, but not the brake pedal. For braking, the ECU plays a major role in ABS modulation and nowadays even the newer electronic parking brakes. But not the simple hydraulic pressure transferred from the brake pedals to the calipers on disc brakes or the wheel cylinders on drum brakes.
@EFChartley
@EFChartley 4 года назад
Time for the next generation of computer pioneers to come through! 🇺🇸 Hats off to Bjarne though
@ccgb92
@ccgb92 4 года назад
Next generation of social justice warriors infiltrating*
@tonyktng22
@tonyktng22 3 года назад
Boeing 737 MAX engineers should view this over and over again
@GiorgioPagnoni
@GiorgioPagnoni Год назад
What's with that striped tie Lex
@jflow5601
@jflow5601 4 года назад
OOD/OOP is the only way to go for a complex system. Boeing, take note.
@zerberus1097
@zerberus1097 3 года назад
Linus Torvalds: *Hold my beer*
@ChristopherGray00
@ChristopherGray00 3 года назад
that's not true, it's certainly not the only way, linux and the wine project are extremely complex and are soley written in C (wine is C89 standard might i add) but OOP is probably the most preferable way on large scale projects.
@MisterFanwank
@MisterFanwank 3 года назад
OOP is how you take a simple system and turn it into a complex system.
@philippefutureboy7348
@philippefutureboy7348 3 года назад
I mean... OOP makes systems a lot more complex than what they could really be. Any system is but a directed graph of tasks transforming data that is piped from input devices to output devices. Looking at systems this way can make it easy to picture the whole thing as a set of left to right pipelines of information. OOP transforms this natural flow of information into a mess of entities that talk to each other with no clear uniform direction. And that without even talking about state management and more dangerously, mutability. Inheritance makes the whole thing worse by hiding functionality up the inheritance chain and making inherited and overridden behaviour intermingled and difficult to make sense of. Composition almost always improve clarity and reduces complexity over inheritance.
@ChristopherGray00
@ChristopherGray00 3 года назад
@@philippefutureboy7348 i think you're mistaking the ability for bad design via over complexity with object oriented programming Also i disagree, hierarchy and inheritance is quite good on a large scale, not only for the sake of abstraction and streamlining, but also computational efficiency, this is not true on a small scale, (and C beats C++ on small projects for this reason) but OOP languages do not force you to make everything a hierarchy, OOP just allows another vector of badly designed code, but it doesn't mean it is bad in of itself because of that.
@MisterFanwank
@MisterFanwank 3 года назад
If simplicity is the key to reliability and efficiency, then why is C++ such a complicated disaster?
@erikprantare696
@erikprantare696 3 года назад
It is complex to allow you to write simple code.
@jirehag5140
@jirehag5140 Год назад
@@erikprantare696 That's so brilliant to put it.
@johnwick3321
@johnwick3321 3 года назад
Says the guy who made the most complex programming language ever.
@yiyoascen
@yiyoascen 3 года назад
That has to be Erlang
@user-oj3pg4vy1k
@user-oj3pg4vy1k 3 года назад
@Fine Wine i'd say python to learn the general programming concepts without worrying about syntax too much. After that, java/c/c++ are good to learn, since they are a bit more difficult and don't abstract stuff away like python does.
@llamasarus1
@llamasarus1 3 года назад
Thank you, garbage collectors
@mavhunter8753
@mavhunter8753 4 года назад
I know he's not talking about simplicity... -_-
@Turissss
@Turissss 4 года назад
?
@purplep3466
@purplep3466 3 года назад
simple doesn't always mean easy
@mavhunter8753
@mavhunter8753 3 года назад
@@purplep3466 I never said simple means easy. Bjarne admits himself that C++ is complex: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-JBjjnqG0BP8.html. He says "C++'s problem is the complexity part we haven't been able to clean it up."
@mavhunter8753
@mavhunter8753 3 года назад
@@Turissss C++ is so huge, and bloated the C++ steering committee say themselves that you should just learn a subset of C++ instead of the whole thing; unlike C.
@halostnight7557
@halostnight7557 Год назад
@@mavhunter8753 It's because of the backwards compatibility, most important code is written in c++ and no one is gonna re-write it every fucking time a new version comes out, "python 3 is here, lets re-write everything that was ever written in python again"
@budiardjo6610
@budiardjo6610 Год назад
simplicity opinionated i think
@mavhunter8753
@mavhunter8753 4 года назад
"Simplicity" huh? This is rich coming from the guy who created C++...
@halostnight7557
@halostnight7557 Год назад
ye, coming from a guy who reached more in one life time than your entire fucking family tree in 1000 years
Далее
Mama Bear Helps Babies Across Road
00:30
Просмотров 1,1 млн
Full Interview With the Creator of C++
23:30
Просмотров 38 тыс.
Delivering Safe C++ - Bjarne Stroustrup - CppCon 2023
1:29:16
Elliptic Curves - Computerphile
8:42
Просмотров 538 тыс.
Bjarne Stroustrup: C++ | Lex Fridman Podcast #48
1:47:13
#miniphone
0:16
Просмотров 3,5 млн
Купил iPhone 15. Первые эмоции!
0:58