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

Ғылым және технология

cpponsea.uk/
---
Lightning Talk: How Fast Are Computers (in Human Terms)? - Matt Godbolt - C++ on Sea 2023
Testing audience's intuition about how fast modern computers are.
---
Slides: github.com/philsquared/cppons...
Sponsored by think-cell: www.think-cell.com/en/
---
Matt Godbolt
I'm a C++ developer who's passionate about the seemingly opposite goals of good, readable code and high performance code. I love taking the lid off and looking underneath, be it the compiler, the operating system, or even the silicon that runs everything.
By day I write software for quantitative trading company Aquatic. By night I hack on hobby projects ranging from emulating old computers in your browser to compiler exploration tools.
---
C++ on Sea is an annual C++ and coding conference, in Folkestone, in the UK.
- Annual C++ on Sea, C++ conference: cpponsea.uk/
- 2023 Program: cpponsea.uk/2023/schedule/
- Twitter: / cpponsea
---
KZread Videos Filmed, Edited & Optimised by Digital Medium: events.digital-medium.co.uk
#cpp​ #cpponsea​ #computerknowledge

Пікірлер: 22

  • @brandon.duffany
    @brandon.duffany8 ай бұрын

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

  • @MattGodbolt

    @MattGodbolt

    8 ай бұрын

    I was running out of time!

  • @cefcephatus

    @cefcephatus

    8 ай бұрын

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

  • @sanderbos4243
    @sanderbos42438 ай бұрын

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

  • @VincentZalzal
    @VincentZalzal8 ай бұрын

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

  • @EmmanuelMessulam

    @EmmanuelMessulam

    8 ай бұрын

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

  • @TerjeMathisen
    @TerjeMathisen8 ай бұрын

    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

    8 ай бұрын

    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.

  • @Kwanzol
    @Kwanzol8 ай бұрын

    loved it!

  • @bsdooby
    @bsdooby8 ай бұрын

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

  • @skun406
    @skun4068 ай бұрын

    Interesting perspective, too bad the presentation was cut short.

  • @coder2k
    @coder2k8 ай бұрын

    Matt is the funniest guy! Great talk!

  • @anon_y_mousse
    @anon_y_mousse8 ай бұрын

    Giving a funny and short talk, 5:26.

  • @criptych
    @criptych8 ай бұрын

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

  • @SaHaRaSquad
    @SaHaRaSquad8 ай бұрын

    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

    7 ай бұрын

    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

    7 ай бұрын

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

  • @AK-vx4dy
    @AK-vx4dy8 ай бұрын

    Genius idea🤯

  • @cefcephatus
    @cefcephatus8 ай бұрын

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

  • @asdanjer
    @asdanjer8 ай бұрын

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

  • @iUniversEi
    @iUniversEi8 ай бұрын

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

Келесі