From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4FXMEazI2maQ7QAAqHPOHw:P1 (envelope-from ) for ; Fri, 06 Sep 2024 09:17:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4FXMEazI2maQ7QAAqHPOHw (envelope-from ) for ; Fri, 06 Sep 2024 11:17:32 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=YXHBxMQb; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725614252; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QwBTmqTPeKpO+QH2hZinPiYxEYdoExl9UOpnfTTRt4I=; b=iwcpu64KXIzCnmuVJbk+x8hAEeHs8f+k2P9t6P2FbFdjyQDMgLr0dd17xbStRnnhxGgbv7 3+YKsu45s6bF/17z+Jwe60vnXUwPXx4KN1DNvg1DqbAm9B1w0BundImFE3X7kqPhu+a/4/ /6egB1qRVrm0H5AVTnBpJ9dB5ptF2hjsG6U5B+qr1lJIRdmzpMHYHGWWvPw85xO0K96MFu GwZCBAdNn7xIb84B7LnkBr4cerkaBEJE+wZ74cZejQJsqhVvkWddvL7OtNvtyrNlILCbYs TLMpd3nrhzoV3KkyCppM7wkbDnBjVMJiLaS1zGHeTbzBannXmCPlRfPtkdDang== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725614252; a=rsa-sha256; cv=none; b=UHuGmXndOxz5iZ9SsNz9o6tYN1ThuzIH/H8IavSvni2fhaYiwyeoog2p6atOVx1LzF7vsE QkNP1u2jNwGM7ZsW7fY2KS5KuF3/TDfhxFjZV2DFMKCkGprnFgicC8Ek/RKHmNm1fe64B0 ThFVeD4FghZU75OCjoP8cDwWk7cO1Lb7B+3UyKoKKgjMnx1tjaz5gNQfF+Q1wBsHyLkTFu Di+oit+hKW4gh9ZumTc8wTM3Q3fGLfYOvtTIoHJhgma0XWpGfw609PouZrRhyxrm6pDWrO T2Q4wQcCtRypUMZMbMHPI1br6yf4Wi51K94mvmAUevW9dFgXsF2ZUXAVGazo2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=YXHBxMQb; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 01C7D62907 for ; Fri, 6 Sep 2024 11:17:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smV5b-0006XI-Lo; Fri, 06 Sep 2024 05:17:11 -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 1smV5a-0006X3-FB for guix-devel@gnu.org; Fri, 06 Sep 2024 05:17:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smV5a-0003eD-3q; Fri, 06 Sep 2024 05:17:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=QwBTmqTPeKpO+QH2hZinPiYxEYdoExl9UOpnfTTRt4I=; b=YXHBxMQbLiEgq8JTibUS NnT+U+tw1zV1U3qDiG3TtrXwFP+omKnVS6dt4SLnL1iADbBvJQ6ks6Lq5Z6HahUiMT0lToh0LztqC rLRkWPVHSzL7pg6qQHFpL6WIHWkzhhgghAmwb6TiT1hrUsxJhv/s2CjEou56+OPlO5zZLEQDDPkKM YQPqyL6m178+DR4go83Y0TbeXFCGxCe1x9xgRDdUKOZsD0ICb1VtjibPUlFHd8H34sxhAfJCo957P cJos7ivbziRDtwe4CQJsHburo8E8r3rp1fYYThaCvJN/Xuk0OWZry0Fsn/+7js/VfX0YT6hh8MMVm zLtcRpN6zobOSw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Sergio Pastor =?utf-8?Q?P=C3=A9rez?= Cc: guix-devel@gnu.org Subject: Re: `map-derivation' is too slow for meaningful usage In-Reply-To: ("Sergio Pastor =?utf-8?Q?P=C3=A9rez=22's?= message of "Sun, 01 Sep 2024 23:11:51 +0200") References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 21 Fructidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de =?utf-8?Q?l'=C3=89glantier?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 06 Sep 2024 11:17:08 +0200 Message-ID: <87o75116qz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Queue-Id: 01C7D62907 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -11.22 X-Spam-Score: -11.22 X-TUID: MMAlN+D/Bunh Hi Sergio, Sergio Pastor P=C3=A9rez skribis: > Today I've spent some time understanding the issue with the > `map-derivation` procedure[1]. I've submitted a fix to the issue I > previously opened. > > As I describe in the answer, the procedure seems too slow for any > meaningful usage; specially what I was describing in this thread[2]. > > What do you think? I haven=E2=80=99t taken the time to read that earlier thread and the patch = you submitted yet, sorry. =E2=80=98map-derivation=E2=80=99 as you noticed is not used anywhere so far= and remains kind of an experiment. It predates package rewriting and package transformations. The idea was to test the feasibility of a sledgehammer approach to dependency rewriting; from what you write, I gather there=E2=80= =99s room for improvement. I prefer package transformations because they work at a higher level, which make them easier to use. But I=E2=80=99m also well aware that there are circumstances where they=E2= =80=99re not really applicable, such as when trying to build a variant of an entire operating system. I=E2=80=99m not sure whether operating at the derivation level is the right approach, so your tests here are much welcome. Perhaps we could try and address those performance issues, and then see if we could come up maybe with a =E2=80=9Cderivation transformation=E2=80= =9D framework to make it more approachable? Thanks, Ludo=E2=80=99.