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 ms11 with LMTPS id HC5oEsaUWmCMNgAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 01:24:22 +0000 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 cKL9DcaUWmD0JwAAbx9fmQ (envelope-from ) for ; Wed, 24 Mar 2021 01:24:22 +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 CC68411A84 for ; Wed, 24 Mar 2021 02:24:21 +0100 (CET) Received: from localhost ([::1]:50020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOsFw-0002J0-No for larch@yhetil.org; Tue, 23 Mar 2021 21:24:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOsFj-0002Hk-4m for guix-devel@gnu.org; Tue, 23 Mar 2021 21:24:07 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:44689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOsFg-00059g-IK for guix-devel@gnu.org; Tue, 23 Mar 2021 21:24:06 -0400 Received: by mail-wr1-x42c.google.com with SMTP id c8so9833241wrq.11 for ; Tue, 23 Mar 2021 18:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=t0jn580i3wt9DqZbLvsoPYr4eoCH1u5OFV5t3paCkkA=; b=rpcxGWBRPYrKXGENNfE+FvVh85RfKNO7hiM2cvWeH9cznDD3l27feD6LChcj60NS5T fYheYV1L0Hr3dC4ECQBg79b49Rurrg9Y471h3bBZJpzVMFZEdhKkjrkmifSya9WReDZB OeA7oXWECTUawcvKGqnAd9q+sTz1zb4cxumvsVCwEcbQ+RnZNdrTiKgQBYEWrs/YWzmZ m1+anWOkCEPLjVJedlz5BTHKcH3LVYuPbI3v8MYEwpmHC0Yr98Qk/vsShRcTsyHS7gBC BgtWfztb1izq7kd7EwKTrMVaW+SWaXsabWlMvRcrZDH7wx7S31nQxwaoaDskQxoWeaoE 6pKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=t0jn580i3wt9DqZbLvsoPYr4eoCH1u5OFV5t3paCkkA=; b=UwNbEmGSd5UR+FFpFvp9wxSZJ8Zt8dWBvNO5iRhCrv1Sji6Jpx7EyFTnQOe22TdfYE /kG3j/RWPazOHfSQBRps6l1yr1vGmvaB8jPNaBU+nEVJHihYg/UUGXyMUW4J/rNk3l54 4MFhlV4JNlLcPBAFYTPthI5b4lpwz3Txm5slr++5Ntp1+2ItYEPFtoGE42oE0XPqv6eV vicpv36RZL3fMM7zn8j513ZPWld5Q7bm7Zk3oznV1O1gZEpT9ZxyAxWDmHQBD0hh8+5m HnuCmmqsUjxR4IbCB7f66rJ25lZDY25sLTQkb/tIS2FnM/D0v9KTfc6Mb8Pg308X5QKa mJjw== X-Gm-Message-State: AOAM5329jh2lPHEH25Vqc02KZrooz29eE0o8+nmvcvRMW54yYFl9nPZo o5G+19k291bF8lZRa3ioqlE= X-Google-Smtp-Source: ABdhPJw0DsjYmSQB0oq2UbYA6Un/yHilgYBV5/dge1rA2GN8AhZJRwsWCBxxtphfFK6JKRTutnOWZQ== X-Received: by 2002:adf:8b5b:: with SMTP id v27mr345174wra.153.1616549042672; Tue, 23 Mar 2021 18:24:02 -0700 (PDT) Received: from lili ([88.126.110.68]) by smtp.gmail.com with ESMTPSA id g5sm806530wrq.30.2021.03.23.18.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 18:24:02 -0700 (PDT) From: zimoun To: Guix Devel , =?utf-8?Q?Nicol=C3=B2?= Balzarotti Subject: Julia precompiled twice? Date: Wed, 24 Mar 2021 02:15:33 +0100 Message-ID: <86h7l1ic7e.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616549062; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=t0jn580i3wt9DqZbLvsoPYr4eoCH1u5OFV5t3paCkkA=; b=BQtQCLOIcO5b0XcMXRLkFQMTqgHU1DzTFs0K7F5sKi/6RC9h+ZEUyQLNDxZGHEaUKeRIvd TAa3IbQoWLkXtsFv1RZzfK4bC/SRWoONzKjmWeZwUdUwfmS/At3lY1yaWo34OhqxRf9ur+ OFKwGA7g32RCAG3rYVKDxJ12SicvubybIIzz81J3jxtTkqfUnNejKslLknfhh3UCuADFmd o+Q6lqxUsqOOCGOmFEAhmmwm0WV0sGDZ2BAWGrbFNF3uKekD/bbV800p/oMIc52in6lvp3 kUs5wWNHqNEF3yRODKza756U+BAj47wlpyJ9zcg4zAyZjmwg4+iraOUcO7odRw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616549062; a=rsa-sha256; cv=none; b=AWZc1PhMTAjWuFzNm+8Svl/XeqUS+VNvF58D/z5ySzAHgQBl9o/06o4skWrV8Dqt9+gxG+ abFfZceKYYR5jOGnwJ952NGZ+9Ok/vEE4EFaTW70zNHR5L2fVqZwIC/Oe082U8gdugivj5 01hDaLpkyJPveMoUN2bBrK2MZSsnaqX63xENm+RSEYYEcjj9ZXDXAVWGbxuQykhx6JenuE uZrqqWBY4D8QJv2d/AGo8WCYQOSK7q69MHnTluEZMZhY+cqUCqW1d/l2WDIDfIeTrAYk1h X9sVib6x5mOz9XDEsbv+QO7BRfiFu3yAdOuu5pmrFKiSC5yl90Vm6AVxyQ0ayw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=rpcxGWBR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=rpcxGWBR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: CC68411A84 X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: lFGZf3BxGExC Hi, The (guix build julia-build-system) contains this: --8<---------------cut here---------------start------------->8--- ;; Actual precompilation: (invoke-julia ;; When using Julia as a user, Julia writes precompile cache to the fi= rst ;; entry of the DEPOT_PATH list (by default, the home dir). We want to ;; write it to the store, so let's push the store path as the first ;; element of DEPOT_PATH. Once the cache file exists, this hack is not ;; needed anymore (like in the check phase). If the user install new ;; packages, those will be installed and precompiled in the home dir. (string-append "pushfirst!(DEPOT_PATH, pop!(DEPOT_PATH)); using " pack= age))) --8<---------------cut here---------------end--------------->8--- i.e., after the =E2=80=99check=E2=80=99 phase, the Julia files are precompi= led=E2=80=A6 --8<---------------cut here---------------start------------->8--- $ guix build julia-adapt --no-grafts --check [=E2=80=A6] phase `check' succeeded after 15.1 seconds starting phase `precompile' phase `precompile' succeeded after 1.5 seconds [=E2=80=A6] --8<---------------cut here---------------end--------------->8--- =E2=80=A6but then at the first =E2=80=99using =E2=80=99, it is recompi= led again: --8<---------------cut here---------------start------------->8--- $ guix environment --ad-hoc julia julia-adapt -- julia _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.5.3 (2020-11-09) _/ |\__'_|_|_|\__'_| |=20=20 |__/ | julia> using Adapt [ Info: Precompiling Adapt [79e6a3ab-5dfb-504d-930d-738a2a938a0e] julia>=20 --8<---------------cut here---------------end--------------->8--- Note that it is not then recompiled because the precompiled cache is contained in =E2=80=9C$HOME/.julia/compiled=E2=80=9D; created by the REPL c= all. The question is: is it possible to precompile at build-time? And distribute via substitutes these precompiled files? Especially regarding the current non-reproducibility status [1,2] of Julia in general. Or what is the purpose of this precompilation at build time? 1: 2: Cheers, simon