C++20: C++ at 40 - Bjarne Stroustrup - CppCon 2019

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии •

  • @casperes0912
    @casperes0912 5 лет назад +487

    I study CS at the same university Bjarne studied at. My lecturers know him personally. Hell, one of my professors once phoned him directly to ask a question about C++... Turned out it was a bug and 3 weeks later Bjarne phoned back "Fixed it"

    • @casperes0912
      @casperes0912 5 лет назад +46

      I believe it was fixed for the GNU compiler; No clue what Bjarne actually had his fingers in at that stage, but it's my guess

    • @JohnDlugosz
      @JohnDlugosz 5 лет назад +68

      I've always noted that a large part of the success of C++ is due to Bjarne's personal nurturing of the first generation of users.

    • @JadeWinters02
      @JadeWinters02 3 года назад +2

      Aarhus University || Cambridge

  • @Rocinante8
    @Rocinante8 5 лет назад +75

    "You want to compose your program from unique parts" so you don't have to solve bugs multiple times. Very succinct and memorable expression of this principle.

  • @AbbeyRoad69147
    @AbbeyRoad69147 5 лет назад +55

    YIKES!! He is far far FAR more practical than I imagined. So impressed!!

  • @arohChristian
    @arohChristian Год назад +1

    Incase you have not as a beginner cpp,
    Bjarne's programming and principles is really the best programming book you can ever get your hands on .
    He is a great teacher and very intellectual, though you can't expect less from a man that created a language like cpp 😊.
    But he pampers learners.

    • @patrickmaurer8002
      @patrickmaurer8002 3 месяца назад

      I am doing self-study. Just bought the 2024 version. It has been intense. But I am learning so much from his work. I have also contacted. I was happily surprised that he offered advice, he actually took time out to respond. That is awesome Bjarne!

  • @ryze2663
    @ryze2663 5 лет назад +195

    the man, the myth, the legend

  • @pierre-lucgagnon4137
    @pierre-lucgagnon4137 5 лет назад +126

    It's difficult to master C++, especially with its extreme added complexity of the last three decades (multiple inheritance, smart pointers, rvalue/movie semantics, template metaprogramming, concepts, etc.). It's also difficult to put all these ideas together in a professional setting. Bjarne convinces me that everything is there for a reason and is worth learning.

    • @NaumRusomarov
      @NaumRusomarov 5 лет назад +34

      use "advanced features" only when necessary. it's right there on the slides. :D

    • @Pianet
      @Pianet 5 лет назад +20

      C++ shouldn't be mastered unless you are interacting with a problem that requires it or you want scott meyers job. Pointers/Smart_Pointers/References/Move_semantics, Vectors/Arrays, and Classes/Structs are more than enough to deal with most problems. Once you have those down (meaning you understand what they mean in terms of hardware) learn only whats necessary to make your codebase more manageable.

    • @xtm8194
      @xtm8194 5 лет назад +25

      C++ was never for the faint of heart. They're working on it to make it simpler but the goal of C++ was always performance.
      "I'm not a great fan of garbage collection. I would like to put it out of business if I can." - Bjarne @32:27

    • @SrIgort
      @SrIgort 4 года назад +3

      @Ziggi Mon what's the most common problem with these people that make you think that they don't really know c++?

    • @Phroggster
      @Phroggster 4 года назад +8

      @@SrIgort There's a lot of people that understand the fundamentals of C++ (> hundreds of thousands), quite a bit fewer that understand the implications of those fundamentals (~tens of thousands), and only a select few (tens? hundreds?) that can layer those implications into a rapidly maintainable code base to achieve a predefined goal. All too often, those from the first or second group assert that they belong to the third, while those from the third (typically) assert that they have barely approached the second.

  • @thingsiplay
    @thingsiplay 3 года назад +8

    I am not a cpp programmer and still watch this because of B. Stroustrup.

  • @epicalien50
    @epicalien50 5 лет назад +43

    Ellis and Stroustrup's The Annotated C++ Reference Manual textbook that I purchased in 1990 is the best investment I have made to sustain a Computer Systems Engineering career for another 30 years. Dollar sign emoji.

    • @pimpthyride
      @pimpthyride 3 года назад

      It is a great book and makes a super interesting read.

  • @rajakrovvidi4984
    @rajakrovvidi4984 Год назад

    Thank you RUclips, CppCon and Mr. Stroustrup

  • @tjeanneret
    @tjeanneret 5 лет назад +38

    I love the ONION PRINCIPLE. I wish it could be applied by everybody, beginning with philosophers and politicians...

  • @hansvetter8653
    @hansvetter8653 3 года назад +4

    Back in the 1960ths. the Software Programming world was divided roughly into Cobol for the business, Fortran for engineering and Algol for Research. Today you'll find C++ everywhere ... ! ...
    I'd say that the C++ user community today is in a way simply too big to fail. In general there are only two possible pathes for the evolution of any programming language ... you either start from scratch like Ken Thompson did with GO or you focus on improvements in the space of backwards compatibility like Bjarne Stroustrup did and do with C++ ...
    I think both approaches have their plus & minus points of view, but can perfectly coexist harmonically side by side. Congrats to Bjarne Stroustrup and the C++ user community for this new release of C++20.
    It sounds really promising!

  • @Smiteforce
    @Smiteforce 2 года назад +1

    Bjarne's blue book, while focusing on c++11, is still a valuable book to read. He uses OO in a simple yet powerful way.

  • @evikone
    @evikone 4 месяца назад

    The language wars are always around, and CISA is going around telling people not to use C++, but I always find myself going back. C++ is still my favorite language.

  • @gyohngpersonal
    @gyohngpersonal 3 года назад +7

    How about adding convenient string manipulation functions that every other language has?

    • @JaapVersteegh
      @JaapVersteegh Год назад +1

      What string manipulation are you missing?

  • @censoredeveryday3320
    @censoredeveryday3320 3 месяца назад +1

    Bjarne starts his talk at 00:01:50. You're welcome.

  • @sephirostoy
    @sephirostoy 5 лет назад +18

    My wishlist for next standard:
    - UFCS or sort of: having the possibility to extend an existing closed class with new methods are the most common usage and is autocompletion friendly so a junior dev can see what methods are available.
    - Single statement lambda: something like: [] (a, b) => a < b expanded to something like [] (auto&& a, auto&& b) -> auto&& { return a < b; }.
    Just to make simple things simpler and less verbose.

    • @JohnDlugosz
      @JohnDlugosz 5 лет назад +2

      Your first point is handled, I think, by unified calling syntax. If obj.foo(x) is the same thing as foo(obj,x) then writing a non-member function can then be called as if it were a member. This has been discussed for many years but never voted in.

    • @p39483
      @p39483 3 года назад +1

      @@JohnDlugosz x.f() -> f(x) mirrors a[i] -> i[a] commutation. You can write x.f().g() instead of g(f(x)) and you can write i[a][b] instead of b[a[i]]. I think it's a good idea. Even removing the dot and making function calls commutative across ( like array access is across [ would eliminate a lot of nesting.

  • @fd2824
    @fd2824 2 года назад +9

    The more I learn, the dumber I feel.

    • @MikaelMurstam
      @MikaelMurstam 2 года назад +2

      That's the dunning Kruger effect

  • @crazyjose111
    @crazyjose111 5 лет назад +7

    Great insight, and inspirstion from the legend Bjarne himself! Great listen :)

  • @huangjun8576
    @huangjun8576 2 года назад

    Nice talk, for using c++ almost 12years, i know c++ is much bigger than i thought before, and it move fast, i 'm still learning c++11.

    • @CppCon
      @CppCon  2 года назад

      Thanks for sharing!

  • @janteubel7075
    @janteubel7075 5 лет назад +20

    I am the first! YES!!! :-) I love C++ :-) Thank you for uploading Bjarne's presentation!

  • @moderncpp
    @moderncpp 2 года назад +2

    Bjourne stroustrup is a giant

  • @ParadoxBassCube
    @ParadoxBassCube 5 лет назад +4

    1:01:39 shouldn't it be
    if (!pred(v)) co_yield v;
    ?

    • @鲍凯文
      @鲍凯文 5 лет назад +3

      very late reply, but just in case: the comment "Filter out (skip) !pred elements" could be rephrased as "Keep elements for which pred(elem) is true", which is what the code below it does. as an aside, `filter` in all languages (that i'm aware of) usually sticks with that convention.

  • @cevikmetalcovers
    @cevikmetalcovers 4 года назад +8

    35:11 Yesssss

  • @dk19888
    @dk19888 5 лет назад +3

    wow, so fast! thank you for posting the video!)

  • @marianobeltran7387
    @marianobeltran7387 5 лет назад +6

    you are awesome!!

  • @andy5003
    @andy5003 3 года назад +1

    i really look forwaard to the nekworking library not gonna lie

  • @desertshadow72
    @desertshadow72 2 года назад

    Does C++ have an equivalent to Python's conditional list comprehension?

  • @christianm4906
    @christianm4906 4 года назад +1

    Excellent talk.

  • @wettmarley
    @wettmarley 3 года назад +3

    Where are all the web developers who think they are great LOL

  • @gabrielporto7179
    @gabrielporto7179 5 лет назад +7

    Nice!

  • @cpptoronto8473
    @cpptoronto8473 5 лет назад +8

    Great talk!

  • @samljer
    @samljer 3 года назад +2

    C++ REALLLLY needs a proper library for GUI.
    .. I know what I just said... lol

    • @JohnWasinger
      @JohnWasinger 3 года назад +6

      Look into the QT GUI framework

    • @MikaelMurstam
      @MikaelMurstam 2 года назад +2

      That doesn't make any sense since a gui is platform specific and C++ is platform specific. So there can't be a general library

    • @censoredeveryday3320
      @censoredeveryday3320 3 месяца назад

      @@MikaelMurstam QT: Hold my beer

  • @0cramoi
    @0cramoi 3 года назад +14

    Bjarne says trans rights, nice!

  • @Kashifiqbal60
    @Kashifiqbal60 3 года назад +1

    Sir kindly teach me i will give you 100% of time for c++

  • @mprokgaming5854
    @mprokgaming5854 4 года назад

    Wow