Bjarne Stroustrup on Learning More Than One Programming Language

The C++ creator discusses perspectives, machine architecture and abstraction.

BSBjarne StroustrupInvitado
Canal
Lex Fridman
Publicado
10 nov 2019
Vídeo
6:56
Lectura
1 min
Original
inglés
Abrir en YouTube
Al desplazarte, el vídeo se reduce a la esquina inferior derecha y sigue reproduciéndose. Los subtítulos siguen tu idioma de lectura.
Idioma de lecturaDisponible en 2 idiomas
Este artículo aún no está en español, así que se muestra el original en inglés.
RESUMEN

En 30 segundos

Stroustrup argues that a second language can change how programmers think and that clear abstractions can coexist with efficient code.

  1. 1The second languageThe number matters less than broadening perspective.
  2. 2Know the machineArchitecture can affect performance.
  3. 3Clear abstractionsReadable code can also optimize well.
  4. 4Different paradigmsFunctional and rapid-development languages offer different lessons.

Conclusiones

  1. Learn more than one programming language.
  2. Understand architecture when performance matters.
  3. Clear abstractions can help optimization.
TEXTO COMPLETO

Lee el texto editado por capítulos

Solo la transcripción
01

More than one language

Lex Fridman asks C++ creator Bjarne Stroustrup why programmers should learn several languages and what they can take from different traditions.

Lex Fridman asks C++ creator Bjarne Stroustrup why programmers should learn several languages and what they can take from different traditions.

Stroustrup recalls knowing many languages when he developed C++. He says languages were smaller then, and learning them did not always require mastering a large programming environment.

He stresses that the exact number is less important than knowing more than one language. As with learning a foreign language, a second programming language can reveal assumptions and broaden how one thinks.

02

Architecture and performance

Stroustrup says the second language is particularly valuable; after that, learning further languages can be easier. He also values understanding machine code and architecture.

Stroustrup says the second language is particularly valuable; after that, learning further languages can be easier. He also values understanding machine code and architecture.

He notes that performance can depend on architectural details such as caching. Understanding the machine can help programmers reason about high-performance code.

03

Abstraction and optimization

For modern C++, he argues that expressing ideas clearly can help both the programmer and the optimizer. Sometimes removing clever code produces a faster result.

For modern C++, he argues that expressing ideas clearly can help both the programmer and the optimizer. Sometimes removing clever code produces a faster result.

He recalls a Jason Turner presentation using a small Pong implementation to demonstrate changes in source abstractions and generated assembly.

In Stroustrup’s account, the source became clearer while the generated code became smaller. He uses this example to argue that useful abstractions and efficient output can coexist.

04

Other paradigms

Beyond machine code and C++, he recommends trying a functional language to learn precise expression and strong type systems, and a language suited to building something quickly, such as Python, Ruby or JavaScript.

Beyond machine code and C++, he recommends trying a functional language to learn precise expression and strong type systems, and a language suited to building something quickly, such as Python, Ruby or JavaScript.

Más de este canal

3 diapositivas3:34:27EN
Lex Fridman· 26 oct 2026Pódcast · 4 vocesAI, Mathematics, and the Meaning of a ProofInvitado: Steven Brunton, Ankur Moitra, Alex Kontorovich · Presenta: Lex FridmanLex Fridman and three mathematicians discuss recent AI-generated research, hard open problems and what human understanding contributes.MathematicsAI for scienceAI research+2
3:36:56EN
Lex Fridman· 16 sept 2026PódcastPsychiatry Has Never Found Its PenicillinPresenta: Lex FridmanHistorian Andrew Scull tells Lex Fridman why the field can ease symptoms, has never cured a major mental illness, and keeps paying for overconfidence with patients' lives.Mental HealthPublic HealthNeuroscience
5:15:51EN
Lex Fridman· 26 ago 2026Pódcast · 2 vocesDHH Did Not Write a Line of Omarchy QuattroInvitado: DHH · Presenta: Lex FridmanThirteen months after a skeptical conversation with Lex Fridman, the Rails creator describes how Opus 4.5, a swarm of coding agents, and a one-minute Linux installer ended his era of hand-chiseled Ruby.Agentes de programaciónVibe CodingIngeniería de agentes+3
3:12:58EN
Lex Fridman· 12 ago 2026Pódcast · 2 vocesOne Cold Shower, Twenty Champions: How Khabib Nurmagomedov Was ForgedInvitado: Khabib Nurmagomedov · Presenta: Lex FridmanIn a Makhachkala school gym, seventy men shared one shower, and the water was only cold.Martial ArtsCombat SportsCoaching+3
3:46:18EN
Lex Fridman· 28 jul 2026Pódcast · 2 vocesIf You Take Slavery Out of the Picture, There Is No Civil WarInvitado: Gary Gallagher · Presenta: Lex FridmanIn 1860, enslaved people were worth more than every railroad and factory in the United States combined.Political PhilosophyLeadershipHistory
3:51:47EN
Lex Fridman· 30 jun 2026Pódcast · 2 vocesForty-Six Percent of Emperors Were Overthrown. The Empire Lasted AnywayInvitado: Anthony Kaldellis · Presenta: Lex FridmanHistorian Anthony Kaldellis walks Lex Fridman through 2,200 years of Roman history and argues that what we call Byzantium was Rome itself.Political PhilosophyGeopoliticsLeadership