From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id wM3aHvvYWWb6mQAAe85BDQ:P1 (envelope-from ) for ; Fri, 31 May 2024 16:04:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wM3aHvvYWWb6mQAAe85BDQ (envelope-from ) for ; Fri, 31 May 2024 16:04:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=DKsUbOfZ; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none; arc=pass ("zohomail.eu:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717164283; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rkKkWgtyvgpt90KvuRC/WkNQI2hygyMXwLX9l1KlYVE=; b=IG7O21q06V4GNBSxBm3sJWsvplhcpf3Z4sIVP9mUTxxTvx/+9DrTTc1u64yr/XPR7tqrYe VMuDgem/IgX4QQggD25n+E/Aw+2mwBo0VzHdEIhPrDF3zOdR3VGV2zoS+V/xgAXMJZq0Am hF9Wio0iRMdnW9smjN/C8eMdDhu0yoJkyr3orhrTnxEzAGA/0BJHrWGMgP5BuF5aq0j28c qF/MRmR2i5UAly6hBFo568OmIIFgGFbPLbD1mIMI4R/Fp2CALBSOsI+71HXKkZ1rIm1yPo J1sVSjlOMm1nW9LOjo7JG58NzvOoiugTIC1Iu/c/KFrNpYnq1fivPm71NRaNWg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=DKsUbOfZ; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none; arc=pass ("zohomail.eu:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1717164283; a=rsa-sha256; cv=pass; b=DQxH8zPkKas6k61Gl8nwirkK1RsnX9aXK8TSmtkRPKwxtuxmOD6AKdaKlHld9nW5XFPbRW 99l8BvDbLaDFUbmwfc1E0aWi4wlqKVuk4+CaM4WkgS4Mh6jv12litW1aIO0j1GsJ+WhzcK IdzlcsGUs6nzhPKPM9VFZ3tBPIvZZ/WNIMZZL0Z/ssRdKs/zfMiBlCgBcLK85FbIu+9m5e pPXZKjhATRTdgyDDfViO8NjCCr21Ngaj4tnbKrzev7aPGM3CrZXKkgfP+UvNubU159kZSu l9/ylSscIOAP1mLf5eF9kOHrzE2duW0pKTujQdkB/G7rlt2bqmBhYCRCeCTQHg== 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 5D007397BD for ; Fri, 31 May 2024 16:04:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sD2rX-0006yl-W9; Fri, 31 May 2024 10:04:08 -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 1sD2rV-0006yP-Gf for guix-devel@gnu.org; Fri, 31 May 2024 10:04:05 -0400 Received: from sender-op-o11.zoho.eu ([136.143.169.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sD2rS-0001w3-5l; Fri, 31 May 2024 10:04:05 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1717164233; cv=none; d=zohomail.eu; s=zohoarc; b=HnNAgvTnouKzkI9G0+Iqdu4wt+IlzgYe15Hz+w4gS4hG/9W6Bv8FJz8BJPjjcYQYNl5Zf+dm7THiA2PqMqsc/zEy6WsR2Waf9JYbrjo05GXMgKPjObEt0cjiyK2XvaBaBF6BaLt2NhMtFp7BAQht6KamuI9hsQ2qxZoSanVDhBM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1717164233; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=rkKkWgtyvgpt90KvuRC/WkNQI2hygyMXwLX9l1KlYVE=; b=DGydhAbiOFNcJz65ZqLOJb9mt4cREn+zCNV8b/2kUSXqqecV54AnhyZPdX0v9YU9Ut6JvS5yHbF8MGmY+0DetXUKWyYyQxHkz/arV0uxk/6ZJDFy2Z43whKUdNAznVuJCVk86HvbXQE20h7ibR1ZaQH4lLJQsu13EpURmCQGogI= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1717164233; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=rkKkWgtyvgpt90KvuRC/WkNQI2hygyMXwLX9l1KlYVE=; b=DKsUbOfZqHApw9QeNEwdJZw6Op7BJkhQTjjd1Z9O+Od/KElkDVeEMfoCRrpR27iv QyHlrVaMkq6TZXrPVsKgFdCIXcwy5XK6S2IYP+rx/oQylCDrr6EJiUh/srhsMjRUmw5 kF8Ubqbm3KQs7X2ba45vInC9GJMXXVk0bXM62H7YgH8tgxHmoCDP6gI7MoKePI3qOJB b8zPLVpVQE4reggquNqXNoJgvHVSRfAHkcNb0A4VKmioKaw/Rd3mcB383sp9O9xdFF2 QhAv15P0gHdy1g+pzrdUuWgl3Fpadar3RD3tnHsr1GWSIvtSv76AZz2UmG0JLKauBQw Q7UHg5ZbVA== Received: by mx.zoho.eu with SMTPS id 1717164229524676.1119742289468; Fri, 31 May 2024 16:03:49 +0200 (CEST) References: <874jb16993.fsf@rdklein.fr> <87r0e43do0.fsf@gnu.org> <87r0e44f4s.fsf@rdklein.fr> <87zfsr1nc6.fsf@jpoiret.xyz> User-agent: mu4e 1.10.2; emacs 28.2 From: Edouard Klein To: Josselin Poiret Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , guix-devel@gnu.org Subject: Re: Guix pull: avoiding "Computing Guix derivation" Date: Fri, 31 May 2024 16:02:04 +0200 In-reply-to: <87zfsr1nc6.fsf@jpoiret.xyz> Message-ID: <875xuunkn7.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.169.11; envelope-from=edou@rdklein.fr; helo=sender-op-o11.zoho.eu 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.04 X-Spam-Score: -8.04 X-Migadu-Queue-Id: 5D007397BD X-Migadu-Scanner: mx13.migadu.com X-TUID: at6mt9yalNLm Hi, Josselin Poiret writes: > [[PGP Signed Part:Undecided]] > Hi everyone, > > Edouard Klein writes: > >> I think my misunderstanding boils down to a bad mental model of how guix >> works. >> >> What I imagine the "Computing guix derivation" step to be is no >> different than building a package whose inputs are the channels' >> sources, guile, and the current guix, and whose output is the new guix. >> >> Simon and Richard pointed out that the combinatorial combination of all >> possible input combination makes this hard to substitute, but I don't >> understand how its result, once in the store, can't lead to a simple >> linking from the profile to the store, instead of re-running the >> "Computing guix derivation" step when guix pull is called with the same >> inputs. >> >> Surely my mental model is wrong somehow ? > > You might be interested in this thread [1], which tries to explain the > terrible performance of `guix pull`. > > [1] mid:87wmxe3vsa.fsf@jpoiret.xyz > https://yhetil.org/guix/87wmxe3vsa.fsf@jpoiret.xyz/ > I reread it, but I still don't understand why this step is not substitutable. It has a fixed set of input and it is a deterministic process. Unless I don't understand what is going on, which is probable, but I can't seem to find where I'm mistaken. > Best,