• Doomsider@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    14 days ago

    Thanks for that explanation. Are you saying that if I rebuild the exact same code on the same machine I could get different results for a given compiler? I think this would render solutions like docker useless. Could you elaborate?

    • Sonalder@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      14 days ago

      Yes you can get a different result. Compilers are designed to be deterministic, but a build is more than the compiler. Usually the bytes differ but the behavior is identical.

      Docker is far from being reproducible!

      It works on my machine ≠ reproducible. But reproducible will make it works on your machine.

      Using a compiler does not guarantee you to get byte-perfect output each time, especially not on different machines.