'Fastware' - Andrei Alexandrescu [ ACCU 2016 ]

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 17

  • @areoh2005
    @areoh2005 5 років тому +6

    "They are like aliens, they are everywhere" this guy is hilarious

  • @Burbero89
    @Burbero89 8 років тому +5

    I am surprised no one pointed out multi-threading issues with sentinels. No one expect a concurrent call to find(range, el) to cause a data race, even if range is a non-const reference. I doubt that any introspection can ever get far enough to allow to use sentinels safely in multi-threaded applications.

    • @jerryandersson8772
      @jerryandersson8772 8 років тому +8

      Actually in D this is done in a fairly thread safe manner. Any variable in D which is shared between threads has to be marked with shared which in turn find and other functions then reject at compile-time.
      Shared is not perfect as it is now ( you basicly have to cast it away many times ) but I am looking forward to improvements of it.

  • @N....
    @N.... 8 років тому +10

    28:48 labeled break? Hopefully that's coming to C++, right? It's a bit awkward to use goto.

    • @paulfunigga
      @paulfunigga 8 років тому +7

      It does the same thing as goto.

    • @N....
      @N.... 8 років тому +5

      Paul Orekhov With goto, you have to label the statement after the loop and then explain to everyone why it's a valid use of goto. With labeled break and continue, you just label the loop and use it as self-documenting code.

    • @llothar68
      @llothar68 8 років тому +4

      There are lots of valid goto situations. The time when it was declared evil was when we had no programming in the small vs programming in the big model. Programming inside a function should never be a problem, even with gotos.

  • @gardencitykickstartapplica8942
    @gardencitykickstartapplica8942 6 років тому +3

    To some extent, optimization is to our industry what sexual intercourse is to teenagers. There’s a veil of awesomeness surrounding it; everybody thinks it’s cool, has an angle on it, and talks about it a great deal; yet in spite of ample folklore, few get to do it well, meaningfully, or at all.
    Improving the ordeals of teenage years being too large a project, the next best thing to do is teaching how to write fast code. So Andrei set out to write a book about it.
    This talk is a sneak preview into some of the book’s material.

  • @yupeiliu4383
    @yupeiliu4383 8 років тому +1

    Excellent!

  • @xenon0325
    @xenon0325 8 років тому +2

    for those interested, here is reddit discussion: www.reddit.com/r/programming/comments/4jlkhv/accu_2016_keynote_by_andrei_alexandrescu/

    • @N....
      @N.... 8 років тому +2

      Also www.reddit.com/r/cpp/comments/4jqg5z/andrei_alexandrescu_on_c_concepts/

  • @Elite7555
    @Elite7555 3 роки тому +1

    3:25 Actually, zebras are horses ;)

  • @QuentinUK
    @QuentinUK 8 років тому +1

    Hands up if you think this is not as funny as Stewart Lee.

    • @DanGroom
      @DanGroom 8 років тому +1

      Stewart Lee would totally do a joke about a guy turning up to a c++ conference and comparing concepts to a remote control toilet.

  • @mehify
    @mehify 7 років тому +8

    Too bad this talented guy works for an immoral company like facebook. In Germany, facebook hired a former stasi veteran (who during the DDR dictatorship systematically sent dissidents to their death) as head of moderating (i.e. censoring) facebook. Hope Alexei Alexandrescu considers working for a more moral company in the future.

    • @AdrianMNegreanu
      @AdrianMNegreanu 7 років тому +14

      meh1337ify he left facebook a couple of years ago

    • @sebastianb8705
      @sebastianb8705 7 років тому +5

      Ah, excellent, that's good news!