<p dir="ltr">I agree Loïc, but native code is in another chunk named with a mnemo of architecture. <br>
So a same code, compiled native or not will create Beam files with different checksum anyway.<br>
It is a hard problem to solve, with also the constraints to try to keep backward compatibility... Actually I m not sure it is possible to achieve this, or code part have to be in another independent file. This break compatibility... </p>
<p dir="ltr">"Envoyé depuis mon mobile " Eric</p>
<br><br>---- Loïc Hoguin a écrit ----<br><br>If you don't have hash(file1) = hash(file2) that means the usual tooling <br>doesn't work as well as it could: packages will do file changes that <br>don't change the program, rsync will do similar with syncs, and so on.<br><br>It's also a bit dubious to require Erlang to verify that the Erlang <br>files (including the compiler itself) were compiled as expected.<br><br>On 04/08/2016 02:11 PM, Éric Pailleau wrote:<br>> Hi,<br>> Beam files are separated in different chunks.<br>> All dynamic information should be placed in a separate chunck Mho.<br>> And sha1sum of code part, or checksum of its canonical abstract code<br>> maybe available in a chunk, existing or new one.<br>> This could allow to know that a beam, even without the same checksum on<br>> the file globally, run the same code than another Beam file, and so be<br>> able to do some Nix like distribution.<br>><br>> Compiler version allow to estimate what Erlang version compiled the<br>> beam. This is something to keep I think.<br>><br>> Regards<br>><br>> "Envoyé depuis mon mobile " Eric<br>><br>><br>><br>> ---- Matthias Rieber a écrit ----<br>><br>> On Fri, 8 Apr 2016, Björn Gustavsson wrote:<br>><br>> > As long as anyone can remember, the compilation time has been included<br>> > in BEAM files (and can be retrieved using module_info()).<br>> ><br>> > As far as I know, the inclusion of the time has only caused problems.<br>> > I can't remember that anyone has found any use for the compilation<br>> > time.<br>> ><br>> > So if we decide to remove the compilation time by default in OTP 19...<br>> ><br>> > ... would it cause any problem for someone in some workflow?<br>><br>> I couldn't resist:<br>><br>> <a href="https://xkcd.com/1172">https://xkcd.com/1172</a>/<br>><br>> Matthias<br>><br>> _______________________________________________<br>> erlang-questions mailing list<br>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a> <mailto:<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>><br>> <a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br>><br>><br>> _______________________________________________<br>> erlang-questions mailing list<br>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> <a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br>><br><br>-- <br>Loïc Hoguin<br><a href="http://ninenines.eu">http://ninenines.eu</a><br>Author of The Erlanger Playbook,<br>A book about software development using Erlang<br>