From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QJMnGaqfB2XByAAAG6o9tA:P1 (envelope-from ) for ; Mon, 18 Sep 2023 02:54:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QJMnGaqfB2XByAAAG6o9tA (envelope-from ) for ; Mon, 18 Sep 2023 02:54:02 +0200 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 467E159B84 for ; Mon, 18 Sep 2023 02:54:02 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=eFhNMhQd; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694998442; 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=RBTQcmKHxXBgt0gcTNvBaEMqVqb/BEabuF8ZvFVTVko=; b=JbO4pQ0HRhzwat4Bqtm0sVS7FexWULAS/GVLPpXbSmeWlJcXgs2KvGXIIyhcBKsH6rHdo1 Ut2/FurdA2/bjoFn1nhln8m6b4EPsSId4vBsQeOvJqO+j5/3Wp2gmv7UO4RK3NMO20/gjg 2IYG9+Na1II3rBjdaWL34sGlc+eD+1qu63RJzUORYnT+ZlQMSwEU2pjP89drdzKx5cQ3Wj lMZrSD3OISaVsZKbqfRKTC/IVJZ80qKmjQvPuaopvMBrDYQTipCYPaZ7mnXt6IA8ij9foW q9v+InVHB9ntL4LFmfeHEICLApRDJNeWEVqKQjEJr3/38JHKhtqI5Lx10jWleg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694998442; a=rsa-sha256; cv=none; b=roYYJ35HJ+gEy2IEbGH0Tw90cB10Qaj6UyweYmEV2BmLuQr2D/C/1VWKKTNrybfpUNmGw/ Mm6zqO2OYbqyM6A7tI6zzjfRy7fDhyfuwhNz47AcGZPl1ReS0wsopctOaddh8Tu0+wG00f sLem40FZ/5Vl1yy5gI/+EniBK7GV7+3T1KtyVbcetAlOefglH9HUSlECIrKde5kNHh+mdv 1UdRtSHfrsO6I3Dr7zeZu3QL2d9/SNrEPyJcsT1mvzJ4EN+1grZ8KeaEaZjHypp1rN21db hycd+D8+f8FvwMYGtmf28Bvffl2XELjBrKv4aL9kwKSttGvgWHDHfXLcNH1vMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=eFhNMhQd; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qi2WS-00055T-Qt; Sun, 17 Sep 2023 20:53:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qi2WR-00055F-Gp for guix-patches@gnu.org; Sun, 17 Sep 2023 20:53:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qi2WP-0002gB-Ul for guix-patches@gnu.org; Sun, 17 Sep 2023 20:53:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qi2WX-0002Cd-Qi for guix-patches@gnu.org; Sun, 17 Sep 2023 20:54:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65860] [PATCH 0/4] Resolve a circular module dependencies in embedded modules Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Sep 2023 00:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65860 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 65860@debbugs.gnu.org Received: via spool by 65860-submit@debbugs.gnu.org id=B65860.16949983928393 (code B ref 65860); Mon, 18 Sep 2023 00:54:01 +0000 Received: (at 65860) by debbugs.gnu.org; 18 Sep 2023 00:53:12 +0000 Received: from localhost ([127.0.0.1]:51691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qi2Vj-0002BF-JA for submit@debbugs.gnu.org; Sun, 17 Sep 2023 20:53:11 -0400 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:46092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qi2Vh-0002B3-8M for 65860@debbugs.gnu.org; Sun, 17 Sep 2023 20:53:10 -0400 Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-64cca551ae2so24564666d6.0 for <65860@debbugs.gnu.org>; Sun, 17 Sep 2023 17:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694998375; x=1695603175; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=RBTQcmKHxXBgt0gcTNvBaEMqVqb/BEabuF8ZvFVTVko=; b=eFhNMhQdtCbxIc7Nggzo5tllyMt2ilCDycuuUM8/zXQZJ3ytrVYCBpe3GZcMpWMJMK WoQwaPwXJMMXjgKhTvGyum1mAGejsus7GNLE6p5tD1I925Wa9OqCTA1HMZHO4Evc/Xc3 ClhZ8zifXTZJ3rblCaZOcbypikDyejVmJTo23MWB4fxHu5G5aNdW2ijRb8smBJiKPJwZ uUeKl0ecq7jGUY9Rhft9PxNM/4hbCdJkZCHcNhnGE/Ly1lqxC6KPUfrJnHRTeIrbgNRJ D0WEDE80Q+AAPEkYgEWXcNKGTlByja5usqOjUJYVCVZ+ZcLC8z8/RNb3ds/h99E+2JKv Rzxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694998375; x=1695603175; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RBTQcmKHxXBgt0gcTNvBaEMqVqb/BEabuF8ZvFVTVko=; b=BJcNLzMR+qCGcWCLPttk7UP+XXV9BH32FWAXsyGGs+vxtejpgCYvrMjBesesuVvIDK 1T16K+TVq+mCdN+6EmTJqIua52p5RY7BPPZ3v105VmuZakkq/zS9dMOdy5F/e4FAXsMa XR7AdbdhRdzjqyj67hO04bEnwWCtbb/GUsmrNFFJ9KJyyUGZ4yH40duFme3wqv6Y982P mTbL8FB43Xpv3xaE/iwsbwFg0VQvb8dEUFgAMfKnn38QPB+Vo0sdjhIektGVd9uUAi4y 9Zbh4QQdCTwUdKA0bf5SB6+FV6wu9LEldJ53URjknoixwtTWwxoHHBLxXqK6cJYIel+8 tTSg== X-Gm-Message-State: AOJu0YxH/JEWxlxt5Z2VmFTXJqYg1TKR4GbS1+86Biijb1gLGG8ZUr6e ybZqVOxaFwMjD1t/64EAOWOJefK23GE= X-Google-Smtp-Source: AGHT+IH8jvYB6N7OlBZ42b+EbItuL5bZPVFLJwc5YJsEO7ibgCFYSlEwDoT6XF83o0vKccJt8kp/nQ== X-Received: by 2002:ad4:5012:0:b0:64f:6199:a8e with SMTP id s18-20020ad45012000000b0064f61990a8emr7449334qvo.23.1694998375490; Sun, 17 Sep 2023 17:52:55 -0700 (PDT) Received: from hurd (dsl-10-149-131.b2b2c.ca. [72.10.149.131]) by smtp.gmail.com with ESMTPSA id y9-20020a0cd989000000b0063d2a70dff5sm3056635qvj.72.2023.09.17.17.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 17:52:54 -0700 (PDT) From: Maxim Cournoyer References: <87r0n1kedj.fsf_-_@gnu.org> <8734zhv49z.fsf@gmail.com> <87o7i5glwr.fsf@gnu.org> Date: Sun, 17 Sep 2023 20:52:53 -0400 In-Reply-To: <87o7i5glwr.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 14 Sep 2023 11:10:44 +0200") Message-ID: <877coo715m.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 5.74 X-Spam-Score: 5.74 X-Migadu-Queue-Id: 467E159B84 X-Migadu-Scanner: mx0.migadu.com X-TUID: cZO4bqevKmxm Hi Ludovic, Ludovic Court=C3=A8s writes: [...] > I agree that this needs to be addressed. I wondered whether/how hard we > should search for a different solution. OK. I think the current situation needs to be resolved ASAP, but longer term I'm definitely willing to revisit our strategy when it comes to cross compiler toolchains. [...] > BTW, another issue with the package-returning procedures: they return a > fresh package object at each call, which defeats caching. I think you > should be able to observe it with: > > GUIX_PROFILING=3Dobject-cache guix build axoloti-runtime -d --no-grafts > > The effect will be more acute on the build farms since they compute > derivations for everything that depends on these toolchains. > > The solution would be to make those procedures memoizing, with =E2=80=98m= lambda=E2=80=99 > or similar. I haven't tried measuring the impact, but I've use mlambda in the v2 just sent; thanks for the suggesting it! --=20 Thanks, Maxim