• Dumhuvud
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    1
    ·
    2 months ago

    You jest, but you aren’t wrong. At least if we are talking about C, C++ or Rust. https://godbolt.org/z/oPPfdfcf5

    .NET compiler is weak when it comes to optimizing your code; I assume Go’s is as bad.

    • Yggstyle@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 months ago

      Technically yes… But I think he was more making the excuse for the gore “from the goresmith’s perspective.”

      And I’m not sure if the compiler in any language would change a random check function… The others are a possibility.