From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IFxWFIfZcmH5FgEAgWs5BA (envelope-from ) for ; Fri, 22 Oct 2021 17:32:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6EfoD4fZcmEnMwAAbx9fmQ (envelope-from ) for ; Fri, 22 Oct 2021 15:32:23 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C649E32923 for ; Fri, 22 Oct 2021 17:32:22 +0200 (CEST) Received: from localhost ([::1]:51454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdwWr-0005Kh-6C for larch@yhetil.org; Fri, 22 Oct 2021 11:32:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdwWY-0005Jx-Rb for bug-guix@gnu.org; Fri, 22 Oct 2021 11:32:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdwWY-0004ro-Ik for bug-guix@gnu.org; Fri, 22 Oct 2021 11:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdwWY-0004Yv-CO for bug-guix@gnu.org; Fri, 22 Oct 2021 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50672: nnpack is not reproducible Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 22 Oct 2021 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50672 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Received: via spool by 50672-submit@debbugs.gnu.org id=B50672.163491667917476 (code B ref 50672); Fri, 22 Oct 2021 15:32:02 +0000 Received: (at 50672) by debbugs.gnu.org; 22 Oct 2021 15:31:19 +0000 Received: from localhost ([127.0.0.1]:33647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdwVr-0004Xm-4r for submit@debbugs.gnu.org; Fri, 22 Oct 2021 11:31:19 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:48258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdwVn-0004XU-EC for 50672@debbugs.gnu.org; Fri, 22 Oct 2021 11:31:18 -0400 IronPort-HdrOrdr: A9a23:HRXCXqC5nwo1Ca3lHem555DYdb4zR+YMi2TDGXoddfU1SL38qynAppomPHPP4wr5HUtApTniAtjjfZq/z/5ICOAqVN+ftUvd11dAR7sP0WKN+Vfd8mHFh41g6Zs= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="397113127" Received: from unknown (HELO ribbon) ([193.50.110.110]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2021 17:31:08 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875yuwsxad.fsf@inria.fr> <87a6k6j6uu.fsf@gnu.org> <87tuiam5ni.fsf@gnu.org> <87ilylf3yn.fsf@inria.fr> Date: Fri, 22 Oct 2021 17:31:08 +0200 In-Reply-To: <87ilylf3yn.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 28 Sep 2021 11:24:00 +0200") Message-ID: <87pmrxt6tf.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 50672@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634916742; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=5GSp7kF0oMvUxefprtzdA9ZnNVllShTxPc8uZUkKEWg=; b=kiqPV6iQUKTZJ7+qiQaELjoYjmK/RvbBq5VWwJFZ2ERRBlSyJ8T1Msdcv0khYWjyVJ9m4Y ZAFXmorMwohC+xHHMqo9RhfOKfokzeUWqRN3PAagR91Z/sR4VqX3Jw3I7HT0WNnba3yxad mChThHW5LWA1DBCab+NjPF1PZVDbew/azApUWivOaPV3XOwHOTT8/apwWvYXK+E6lsyVU4 0jKKjqvaVwKIipPNdov82S1LafNvYfck6M5Y/9PnyOx+gO8RNspZKv4dKx7AnUJxbYutHF R9QGQ63hLc+9Qwr39sJzARhjPqPSOyKz/7v8Eoo6wkwBxjYpJV0ecBbfUiIgiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634916742; a=rsa-sha256; cv=none; b=HhgU3CaclLhN/lZsFU/g+Hd7/W0CniJkNW99DQqy9Y5RLcemdrbQqIkmmGH1xDbw346sgX wfiBCPdF6vbhp5LFhdBnBVnq/+parC2WaMYmvhEwCN8A2BPa54SOMp4VDIpPHzIaNRbiBC KDvZ0u4MUiMP3xUfI2oXTysQTfNfsYP/ETpcQs0492AIKj45qH3N8kBSiE8NUnXWLaC6ND Uk9hKpOj88tpKwBJJsF4jLyMqLuUubBlHd8tToD51pAbBnWoTaHyVzD9Ql3i+e3p2eCv1O 6J0hqqFqQv3Qy+q74eYdjihTpDgt5raMIodmCDLaZ3bBjFKnD6bSqu9xnS/9Cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: C649E32923 X-Spam-Score: -3.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: +WbPi7i2cX2y --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Ludovic Court=C3=A8s skribis: > No, I=E2=80=99ve retitled it. Now looking at PeachPy: > > https://github.com/Maratyszcza/PeachPy/issues/88 For the record, I tried the attached patch in an attempt to sort things as discussed in the issue above, but it doesn=E2=80=99t have the intended effect. There must be other unsorted dictionaries elsewhere. Suggestions welcome! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=python-peachpy-determinism.patch Content-Description: the patch Make PeachPy processes deterministic: https://github.com/Maratyszcza/PeachPy/issues/88 https://issues.guix.gnu.org/50672 diff --git a/peachpy/name.py b/peachpy/name.py index b6a03dc..c069fc2 100644 --- a/peachpy/name.py +++ b/peachpy/name.py @@ -95,6 +95,10 @@ class Namespace: self.prenames[scope_name.prename].add(scope) def assign_names(self): + # Step 0: sort the dictionary for deterministic output + self.prenames = dict(sorted(self.prenames.items(), + key=lambda item: "" if item[0] == None else item[0])) + # Step 1: assign names to symbols with prenames with no conflicts for prename in six.iterkeys(self.prenames): if prename is not None: --=-=-=--