From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kCzcEbIZPmLhBQAAgWs5BA (envelope-from ) for ; Fri, 25 Mar 2022 20:36:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yDIjD7IZPmLavQAA9RJhRA (envelope-from ) for ; Fri, 25 Mar 2022 20:36:18 +0100 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 05B76B65B for ; Fri, 25 Mar 2022 20:36:18 +0100 (CET) Received: from localhost ([::1]:37094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXpjN-0005AV-7P for larch@yhetil.org; Fri, 25 Mar 2022 15:36:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXphC-0001Pm-Ew for guix-patches@gnu.org; Fri, 25 Mar 2022 15:34:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXphC-0005Gr-68 for guix-patches@gnu.org; Fri, 25 Mar 2022 15:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXphB-000142-Tu for guix-patches@gnu.org; Fri, 25 Mar 2022 15:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54539] [PATCH 0/6] Start breaking up import cycles Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Mar 2022 19:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: Liliana Marie Prikler , 54539@debbugs.gnu.org Received: via spool by 54539-submit@debbugs.gnu.org id=B54539.16482368284069 (code B ref 54539); Fri, 25 Mar 2022 19:34:01 +0000 Received: (at 54539) by debbugs.gnu.org; 25 Mar 2022 19:33:48 +0000 Received: from localhost ([127.0.0.1]:52512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXpgy-00013Y-9s for submit@debbugs.gnu.org; Fri, 25 Mar 2022 15:33:48 -0400 Received: from mail-io1-f53.google.com ([209.85.166.53]:38905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXpgw-00013M-Ne for 54539@debbugs.gnu.org; Fri, 25 Mar 2022 15:33:47 -0400 Received: by mail-io1-f53.google.com with SMTP id 9so6906837iou.5 for <54539@debbugs.gnu.org>; Fri, 25 Mar 2022 12:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RyTw1JtvAk+zyGCI37VlFhnyPLd61RmUvEdSdGj0dYg=; b=h8ljCD4YTr3C9zH6PJh74AAHGBehx9owlX4cAO7y1OB12RGHZWQrLkzPfwVDr/m4mT 81Stw7pp6atlTAyAS64m7pPBRGUYTObjkQQ7K8el/7DfbPp428eMQm0v1wjCgymwcIir tkxudbg5ZQ2vEHzpaiSOtdiYBItWh1Ua1mLc4L3kuc2OLLbF0zFkSsD4TYfQDsEv6gsp SUKbWsZZskx2NgX7DXIcNBx7KPQ191iovJ4AhiTZvbi1WNT95zqSr/CnWIrAKs4cbqI3 YJKsnO6vdXf9ux6SwPnN7ixur7LOJaKanM33Zqqyc9Ps444jU3FIMGvHFYNsLDac3kdb sIcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RyTw1JtvAk+zyGCI37VlFhnyPLd61RmUvEdSdGj0dYg=; b=buHUBtVeROGwOrZZXMkT3FYVGIr9A6lPMu1Nnbm3SfdY0/cVK32z/S4GoCr/I0V9fl LpfDmg7XufYzzkBRHnEcMBVfO7InsgHFa6VeAwg5LbmAxRd85I1euOQggK1L5H02BS8u Jiwf1SBZhMEUPT0bqeOTBAa5fZsRiA/Cp5mQufWLfdTt5RnUnaFwz8rPocuLfxK5MGO1 1Ip4NfpsEGmGxlyMbmTEXIbs+M+u64K4+EglPvW6zN0UhzRU2EiZIjB+wxjAW1d87PrI HGE3UfxOu5G2d/MGUlEBCmfBHUopAaQffrvkAJKs2+ORKyLYRsz5LupvEDYahr37PPG9 MJsA== X-Gm-Message-State: AOAM5317lnOGB8SOkv3kNxlHg/0PcjWDPsX3fRFjJ/o9CIluCgX91cKs 8Y5dKCgFAcaIt9clHnRGFoDbOmBMsDchhSM83GI= X-Google-Smtp-Source: ABdhPJz2Szln+eHZIbLjr+iOgvimhe9XEOUgDWSu+TTOkyFfP4DPK9bUwy2KeF3s8Ts494n+sgf2KDVsyLsa9M2pyWE= X-Received: by 2002:a05:6638:531:b0:317:af7d:d934 with SMTP id j17-20020a056638053100b00317af7dd934mr6385750jar.307.1648236820861; Fri, 25 Mar 2022 12:33:40 -0700 (PDT) MIME-Version: 1.0 References: <5a87d6f772ff7424cb6fccea7c45276bef7797aa.camel@telenet.be> <5ab234b577c15dd50c36aaf427cce593404b52dc.camel@ist.tugraz.at> <2b5a3af9bd4ea9ec79ad9f9636ed344a51ba7a81.camel@telenet.be> <84da9090d9dee87855ee4f5b2f5442ad919ea032.camel@ist.tugraz.at> In-Reply-To: From: zimoun Date: Fri, 25 Mar 2022 20:33:28 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648236978; 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: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=RyTw1JtvAk+zyGCI37VlFhnyPLd61RmUvEdSdGj0dYg=; b=kOeo0Y+b/9sbVQ7SAgZql2zldCSiYl1EEk5ugig4vLEvohB8DHFXzEPEViSauuFIlu74Gd z1rNrM0Vurui2m5QpYL5hngExXQSSgeY8MPqconbBhdmMXhEAYW7cYef0+L0c0f+UovPnK 94q+2HkT3ddrFDAAaBJEd7KVh76VlfjssBh+PtMyMDUBBOSQzmnwoxLRfCH+jphZKDciF8 PcUkj+O8jM95iQUo6MLU+LG7wrHWHB9n17K/HUWvk0tlyq6AvWezqLkv7dendJ4XQet9uJ iZswTkSjhH2WT9yBTNsrgR2pcaU4kt5UVETwXLnzf9ydxpzMJ5aJx4cbv8UcwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648236978; a=rsa-sha256; cv=none; b=Qr9vlptEi/Erz0+DYfz0ik7aguf70rYHy6lNtcOyyEkY5Yx+ayMcWLPCiO5pMjvEbxQzd+ GJLePqwgzwJIVo9IswWewkUHdiq66NKgscisNNoySBZXVZ3a3sAlTAIbtd5St9aLHH+71Y t7kiK6rSUDJQhVf7v6ZbzL23jho34G9ckLfj2+7o+DXyUkpb7Vm1gTQU2IrwpwK1miUV11 D3AsVWQ33UQU9SmZb1xLOH+3IdUKq3fVR6fnUzZnuKskYd8wSFXpRj1lT82D9XHPMhWzjQ p4MM2HRl7skkQLge3IUBAY7/BZBFb1drIyRcq3mPRloDuWT1NSNadPsS8DNmFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=h8ljCD4Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.12 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=h8ljCD4Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 05B76B65B X-Spam-Score: 5.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: pc+HxgxHn19N Hi Maxime, On Fri, 25 Mar 2022 at 18:46, Maxime Devos wrote: > zimoun schreef op vr 25-03-2022 om 18:05 [+0100]: > > To be honest, I am not sure to understand the aim of reorganizing the > > modules... I mean, to me, the only important metrics is the > > performance of the end-user. If there is no performance improvement > > when cutting cycle, then it appears to me pointless to cut cycles. :-) > > FWIW, there are three goals here: > > * Allowing writing stuff like > > (use-modules (gnu packages ncurses)) > (package > (name "some-terminal-app") > [...] > ;; Work-around the =E2=80=98search path of dependencies not propaga= ted=E2=80=99 bug. > (native-search-paths (package-native-search-paths ncurses))) > > without getting 'unbound variable' errors. > Alternatively, the search-path-specification could be defined in, > say, (guix search-paths) next to $PATH but that proposal seems > to have been rejected. > > * Making "compute-guix-derivation" faster by reducing the number of > (uncompiled!) package module files it needs to load. > > * Eventually making the =E2=80=98incremental compilation=E2=80=99 by fi= ne-grained derivations > proposal from the =E2=80=98Faster "guix pull" by incremental compilat= ion and > non-circular modules?=E2=80=99 thread [0] feasible. Thanks for the detailed and clear explanations. It was my initial understanding that cutting cycles can improve the performances, and IMHO, timings are required for comparing apple to apple; as I tried to explain [1]. Then the thread have let me the impression that the performance improvement was not the aim -- thanks for clarifying. 1: > (*) FWIW, on my machine, "guix show guix" takes 1.6s. To be precise, "guix show guix" could be drastically improved by adapting the already existing package.cache, i.e., resume the lengthy work of . :-) However, such cache would be useless for "guix show -L path/to/others foo" where performance can be really poor; especially on spinning hard disk. Well, thanks for working on that by trying to tackle the cycle of modules. Cheers, simon