Understanding Microarchitecture

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 29

  • @sebas42etgtyht
    @sebas42etgtyht 5 місяців тому +4

    My favourite Channel on youtube!, thank you, love your content!

  • @Urien_n
    @Urien_n 5 місяців тому +2

    Incredible knowledge here from Casey. Thanks for the video!

  • @rasmushansen2391
    @rasmushansen2391 5 місяців тому +1

    Such a great video.
    Thank you so much for sharing information in such an informative way.

  • @sasuke2910
    @sasuke2910 5 місяців тому +15

    You should put "Casey Muratori" in your description or on screen so it appears when you search that term.

    • @OffByOneSecurity
      @OffByOneSecurity  5 місяців тому +2

      I'm glad you noticed! I had all of that in there and it disappeared. Added it back now. Thanks!

  • @Backup1982
    @Backup1982 5 місяців тому +1

    thanks Casey!

  • @antondevey
    @antondevey 5 місяців тому +2

    Starts properly at 4:29

  • @Muskar2
    @Muskar2 5 місяців тому +1

    @FelipeNorrisLee "In an ideal world would we need branch prediction? Are there algorithms that can only run efficiently through branch prediction?" I'm not a security person, and I've only done performance-aware programming for a few years now, so I don't have the experience to say anything conclusively. But I think I know enough to suggest that only a very small branch predictor would be needed at worst. What you can do instead of branching is masking, like you do on the GPU. On the CPU side, a similar concept is also sometimes called branchless programming. I have very limited experience with it, but I believe branchless programming typically refers to scalar code, and the optimal thing would be if virtually all code was vectorized/SIMD. In fairly performant code, I typically only use scalar code for loop controls or for other setup that is not the meat of the application. Today, simple loop controls (like an index in a for-loop or a while-is-non-zero) become effectively free, because they run parallel to the SIMD and is extremely easy for the branch predictor (because it'll never miss during the hot loop), and I would guess that there could be algorithms where that ability would still be great to keep. Regardless though, the CPU's job is to be general-purpose, so I would be very surprised if we ever saw the branch predictor going away, even if we got a software revolution that made most programmers much more performance-aware.

  • @ChristIsBreath
    @ChristIsBreath 5 місяців тому +1

    Removing comments hey?

    • @ChristIsBreath
      @ChristIsBreath 5 місяців тому +1

      I was gonna keep it nice but here's ur constructive criticism. I love Casey, but you bored me to death with this video. You may as well repost @ThePrimeTimeagen.
      You're talking to a guy with 30 years of mastery and you say "wow awesome, so here's this question from one of my viewers" you talked mostly about how you needed X premium and then let Casey handle everything else?

    • @ChristIsBreath
      @ChristIsBreath 5 місяців тому

      ua-cam.com/video/xCBrtopAG80/v-deo.html

    • @GeorgeTsiros
      @GeorgeTsiros 5 місяців тому +3

      @@ChristIsBreath "and then let Casey handle everything else" I fail to see the problem.

    • @philogex
      @philogex 5 місяців тому +1

      ​@@ChristIsBreathi was honestly just about to argue with you, but i don't think my opinion will matter to you. nobody is forcing you to watch and your feedback wasn't very nice. it's not his job to teach us. the people he brings on are the experts

    • @sasuke2910
      @sasuke2910 5 місяців тому

      @@ChristIsBreath You're right that the interviewer should have been more prepared and came with some specific technical questions. But I still learned a few things.

  • @S0L4RW4V3
    @S0L4RW4V3 5 місяців тому +1

    LOL me beating you to the punch, @ (ua-cam.com/video/IXiPWa9RWgc/v-deo.html) "No, this is great".10/10 content peepz, truly #31337 individuals, for real for real

    • @S0L4RW4V3
      @S0L4RW4V3 5 місяців тому

      And thankyou