2026-10-17 07:15 UTC
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?
Replies (1)
-
@sonalder@lemmy.ml 2026-10-17 07:20
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.