Fireship · @fireship
Carbon Lang… The C++ killer?
Uploaded July 22, 2022 · Length 3:27
Summary
google's new experimental language carbon aims to replace c++ with improved performance and memory safety
- carbon language
- c++ alternative
- memory safety
- programming languages
- google projects
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:01
it is july 22nd 2022 and you're watching
- 0:04
the code report the programming
- 0:05
languages that people love to hate are
- 0:07
disappearing quickly microsoft killed
- 0:09
javascript with typescript apple killed
- 0:11
objective c with swift jetbrains killed
- 0:13
java with kotlin and now google is
- 0:15
stepping up to the plate for the biggest
- 0:16
challenge of all c plus plus it just
- 0:18
announced a new experimental language
- 0:20
called carbon which is designed to match
- 0:22
the performance of c plus with llvm
- 0:24
while being able to interrupt with
- 0:26
existing c plus plus code bases that's a
- 0:28
big deal because c plus plus is by far
- 0:30
the most prolific language when it comes
- 0:32
to building high performance low level
- 0:34
systems c plus has been around since
- 0:35
1983 and it's accumulated a lot of
- 0:38
technical debt in the process the
- 0:39
creator of c plus plus once said quote
- 0:41
within c plus plus there is a much
- 0:43
smaller and cleaner language struggling
- 0:45
to get out the problem with making c
- 0:47
plus better today is that it's such an
- 0:48
important language for so many code
- 0:50
bases that it needs to focus more on
- 0:52
standardization as opposed to evolving
- 0:54
the design to what modern developers
- 0:55
want it's really hard to change and
- 0:57
establish technology this sucks change
- 0:59
it
- 1:00
like when python 2 went to python 3 the
- 1:02
changes weren't that extreme but it's
- 1:04
still very painful for anybody wanting
- 1:05
to migrate a code base and also all the
- 1:07
content on the web and stack overflow
- 1:09
becomes stale one could argue it's
- 1:11
actually a good thing that c plus
- 1:12
doesn't try to change too aggressively
- 1:14
carbon is designed to be a successor
- 1:16
language for c plus plus which is no
- 1:18
small undertaking but google is no
- 1:19
stranger to creating programming
- 1:21
languages it gave us go and dart which
- 1:23
are both very well liked in the industry
- 1:25
at this point carbon doesn't have a good
- 1:26
logo or mascot but i'm sure it will get
- 1:28
one eventually you might also be
- 1:30
wondering why not just use a modern
- 1:31
memory safe language like rust first of
- 1:33
all not all c plus developers actually
- 1:36
like rust but more importantly carbon is
- 1:38
designed for easy adoption by existing c
- 1:40
plus code bases and developers it has
- 1:42
bi-directional interoperability with c
- 1:44
plus which means you can use existing c
- 1:46
plus plus libraries and carbon
- 1:47
seamlessly or vice versa now i've only
- 1:50
been coding for about 12 years which
- 1:51
isn't nearly enough time to learn c plus
- 1:53
plus but let's take a look at some code
- 1:55
anyway to run carbon at this point
- 1:56
you'll need to install google's build
- 1:58
tool bazel as well as llvm to build it


