rust non-determinism

Bernhard M. Wiedemann bernhardout at lsmod.de
Sun Aug 4 17:02:26 UTC 2024



On 04/08/2024 18.42, John Gilmore wrote:
> "Bernhard M. Wiedemann via rb-general" wrote:
>> Via https://github.com/pop-os/launcher/issues/230
>> I finally found one big clue that points to rust's default of
>>   codegen-units = 16 as the cause.
> 
> Should the Rust documentation be improved with a patch pointing out that
> the default codegen-units setting mnakes the result not reproducible,
> (and how to fix it)?
> 
> And should a bug be filed against Rustc that their compiler defaults to
> irreproducible results, while its default should be reproducibility
> rather than slightly faster compiler runtimes?
> 
> (They could fix it by making reproducible symbols even when codegen-units
> is greater than 1, if they want both reproducibility and faster compiles.)

Yes, I can file a rust issue tomorrow.
I hope, it goes better than with sphinx, ghc and guile that only produce 
deterministic results without parallelism.

Ciao
Bernhard M.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.reproducible-builds.org/pipermail/rb-general/attachments/20240804/95cf179b/attachment.sig>


More information about the rb-general mailing list