Lightning Talk: How Fast Are Computers (in Human Terms)? - Matt Godbolt - C++ on Sea 2023

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

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

  • @brandon.duffany
    @brandon.duffany Год назад +52

    I love how as the access time got slower and slower, the talk got faster and faster 😂

    • @MattGodbolt
      @MattGodbolt Год назад +10

      I was running out of time!

    • @cefcephatus
      @cefcephatus Год назад +2

      As data access gets slower, we need smaller protocol overhead.

  • @sanderbos4243
    @sanderbos4243 Год назад +19

    Speedrunning a talk that compares the speed of computers to humans, I love it

  • @VincentZalzal
    @VincentZalzal Год назад +21

    Sad this talk had to be cut short, I would have enjoyed a slightly longer version!

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

      I think I saw an old, longer, talk about this a few years ago.

  • @TerjeMathisen
    @TerjeMathisen Год назад +9

    There's a commensurate list of the energy cost of all these operations: Getting a double variable from RAM is orders of magnitude more costly than squaring the 64-bit floating point value you just loaded.

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

      Makes sense really but it’s odd to think about that overall CPU power draw is just the sum of tiny amounts of energy lost each operation, and that the type of operation may impact power draw, rather than program’s utilization of resources.

  • @bsdooby
    @bsdooby Год назад +3

    Also listen to the podcast Two's Complement; they had an episode about that topic 😊

  • @Kwanzol
    @Kwanzol Год назад +3

    loved it!

  • @coder2k
    @coder2k Год назад +7

    Matt is the funniest guy! Great talk!

  • @SaHaRaSquad
    @SaHaRaSquad Год назад +5

    Huh, I knew division was slow but 20-100 cycles? That's insane. So that means if you need to do repeated divisions with the same divisor it's cheaper to calculate its inverse and then multiplying each time? Or can compilers already do that as optimization?

    • @MrKogarou
      @MrKogarou Год назад +2

      You'd be switching to float arithmetic which might mess up the modulo use-case. But for other applications your suggestion sounds interesting.

    • @MichaelPohoreski
      @MichaelPohoreski 11 месяцев назад

      Compilers have been implementing division using multiply by reciprocal for decades. Check out godbolt compiler explorer for details.

  • @skun406
    @skun406 Год назад +6

    Interesting perspective, too bad the presentation was cut short.

  • @criptych
    @criptych Год назад +7

    This talk was so long, I could've gone down to L3 cache and back.

  • @AK-vx4dy
    @AK-vx4dy Год назад

    Genius idea🤯

  • @asdanjer
    @asdanjer Год назад +2

    Most computers can't move on there own. So like 0 km/h. (That's about 0 miles per hour)

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

    So this talk is about 200 ns if an AI were to watch it.

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

    The main takeaway from this talk is, that humans are way too slow.