Fireship · @fireship

Carbon Lang… The C++ killer?

Uploaded July 22, 2022 · Length 3:27

Carbon Lang… The C++ killer?

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.

  1. 0:01

    it is july 22nd 2022 and you're watching

  2. 0:04

    the code report the programming

  3. 0:05

    languages that people love to hate are

  4. 0:07

    disappearing quickly microsoft killed

  5. 0:09

    javascript with typescript apple killed

  6. 0:11

    objective c with swift jetbrains killed

  7. 0:13

    java with kotlin and now google is

  8. 0:15

    stepping up to the plate for the biggest

  9. 0:16

    challenge of all c plus plus it just

  10. 0:18

    announced a new experimental language

  11. 0:20

    called carbon which is designed to match

  12. 0:22

    the performance of c plus with llvm

  13. 0:24

    while being able to interrupt with

  14. 0:26

    existing c plus plus code bases that's a

  15. 0:28

    big deal because c plus plus is by far

  16. 0:30

    the most prolific language when it comes

  17. 0:32

    to building high performance low level

  18. 0:34

    systems c plus has been around since

  19. 0:35

    1983 and it's accumulated a lot of

  20. 0:38

    technical debt in the process the

  21. 0:39

    creator of c plus plus once said quote

  22. 0:41

    within c plus plus there is a much

  23. 0:43

    smaller and cleaner language struggling

  24. 0:45

    to get out the problem with making c

  25. 0:47

    plus better today is that it's such an

  26. 0:48

    important language for so many code

  27. 0:50

    bases that it needs to focus more on

  28. 0:52

    standardization as opposed to evolving

  29. 0:54

    the design to what modern developers

  30. 0:55

    want it's really hard to change and

  31. 0:57

    establish technology this sucks change

  32. 0:59

    it

  33. 1:00

    like when python 2 went to python 3 the

  34. 1:02

    changes weren't that extreme but it's

  35. 1:04

    still very painful for anybody wanting

  36. 1:05

    to migrate a code base and also all the

  37. 1:07

    content on the web and stack overflow

  38. 1:09

    becomes stale one could argue it's

  39. 1:11

    actually a good thing that c plus

  40. 1:12

    doesn't try to change too aggressively

  41. 1:14

    carbon is designed to be a successor

  42. 1:16

    language for c plus plus which is no

  43. 1:18

    small undertaking but google is no

  44. 1:19

    stranger to creating programming

  45. 1:21

    languages it gave us go and dart which

  46. 1:23

    are both very well liked in the industry

  47. 1:25

    at this point carbon doesn't have a good

  48. 1:26

    logo or mascot but i'm sure it will get

  49. 1:28

    one eventually you might also be

  50. 1:30

    wondering why not just use a modern

  51. 1:31

    memory safe language like rust first of

  52. 1:33

    all not all c plus developers actually

  53. 1:36

    like rust but more importantly carbon is

  54. 1:38

    designed for easy adoption by existing c

  55. 1:40

    plus code bases and developers it has

  56. 1:42

    bi-directional interoperability with c

  57. 1:44

    plus which means you can use existing c

  58. 1:46

    plus plus libraries and carbon

  59. 1:47

    seamlessly or vice versa now i've only

  60. 1:50

    been coding for about 12 years which

  61. 1:51

    isn't nearly enough time to learn c plus

  62. 1:53

    plus but let's take a look at some code

  63. 1:55

    anyway to run carbon at this point

  64. 1:56

    you'll need to install google's build

  65. 1:58

    tool bazel as well as llvm to build it