From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4Ar0AjNwVmPMUwEAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 13:00:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sPXpATNwVmPZ2wAAG6o9tA (envelope-from ) for ; Mon, 24 Oct 2022 13:00:03 +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 BFD0BAC51 for ; Mon, 24 Oct 2022 13:00:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omtFU-00050I-8y; Mon, 24 Oct 2022 04:55: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 1omtFD-0004ye-US for guix-devel@gnu.org; Mon, 24 Oct 2022 04:55:39 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omtFC-0002Nv-Az for guix-devel@gnu.org; Mon, 24 Oct 2022 04:55:39 -0400 Received: by mail-wr1-x429.google.com with SMTP id bk15so14976858wrb.13 for ; Mon, 24 Oct 2022 01:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=76RlRQvW30QqWuVKb+7WYPO8/mm0k+9nUELRJdPT6cg=; b=GIDTeVgzcSH/h+hWx4nc1zDrTK6qk2SaAhDv+7ntpgR6P2EXECtV/ftdcCStmzZdGT LqcqDOcpbzGsgLOk8Lry50+y1tFp1OEuZ+6kTGFNLmnbXLoe/pKppNejO71DZVYlINfd u4mXXX53XtTdjc57BK+DANDRu1kFQzwueVblTw1cafbTSbTN1yWDdmfKiaQYN17YMF34 WC5ItSTSZQgLp2o9uFItrNr6ICt5w/LwIe82cXg8uZ0yvtuTU6yFdHpSyLKenArNr+yb eWqcQ0rItHebxHXv6hdQxUaJULrcHhmhf8b1el1xHKoLH9jY+63KuyEiyHm7V3idc74o vnkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=76RlRQvW30QqWuVKb+7WYPO8/mm0k+9nUELRJdPT6cg=; b=rsVIaGGAu1zSjEOf82vS2OVoV7OuXCKd6dd3ZPqUCpF3nXsl5e2LCMKJ+aGFEJaaA2 3ROyWR/zCt5LROt7JhonDtriIwy6Z8fDRkB7K1h6hgCKz2XQihe9M6vmNf0HX44DAo7x o3QtV9G07eOtMkg0KKmSGH77pVuhfo6aS5wodj5nZ0aAmd2BCQVBJ2HAnfHUt2RcYxGj Y7emjLOOL6sfgE47K0IdgziAH+tJfXHeav9jxCI8zi+dF6E9Zr07lq5EvEgj24wjFOym oL6KwoGpUtwW37xOYteN8tpQCFhsw8cLe896khwO1aGHt6zub7chLwXBeqlqsN5HyNt5 Ia5w== X-Gm-Message-State: ACrzQf1RutHl+ZrM7pvmtrIijWGetESISAh3XOacvKg2noBHu56Pv5uA RswhfxUABYQBB3UQqGUcD5z1eXSTgWY= X-Google-Smtp-Source: AMsMyM663TaGG4Azb9akwmw8IhRCfGHkMx/Y7yhgVeTMYiJ6TPnbXEh6gtNGNnothSwZZ3N4iPU6lA== X-Received: by 2002:a05:6000:2aa:b0:231:ac4f:196d with SMTP id l10-20020a05600002aa00b00231ac4f196dmr19726817wry.121.1666601734964; Mon, 24 Oct 2022 01:55:34 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id k5-20020a5d6d45000000b0022e57e66824sm30431940wri.99.2022.10.24.01.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 01:55:34 -0700 (PDT) From: zimoun To: Felix Lechner , guix-devel@gnu.org Subject: Re: Pinning package inputs using inferiors? In-Reply-To: References: <87czam9nxq.fsf@beadling.co.uk> <86r0z11psa.fsf@gmail.com> <87czakdgw5.fsf@beadling.co.uk> Date: Mon, 24 Oct 2022 10:06:11 +0200 Message-ID: <87lep5ir2k.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::429; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x429.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.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-devel" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666609202; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=76RlRQvW30QqWuVKb+7WYPO8/mm0k+9nUELRJdPT6cg=; b=n0mxURUDvO44U3vcn3O0KH2462C2RjNP3R7dekneTyeeHOJ/WbzlOgAv6GFvcBAygMbj7U n1G2Mp+MNUPgWSHzaHaWPNK3goCeQt+G7Zi/hndKsa/Hh3+nTWCmsh+q3zajZFP84OGxcP kRfIP56ZxY7dSp0fQkEQ44KL/gzhkraZYY2FEvuow3/YbM3qWGkIrPT3SNLbgb4/BmB3q6 gGFahUMc7PP19XcW2jfki8Wq/M0mLN6RNNvffdZ8kqGHyjb8fd+lPO+IAxttejTCtT7LAX qF4FfRF/jl6mFEWmPQAfSF2jjOHoRU0FIUUiY0FjDuYOkSYZjDF/5WqwfEvChg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666609202; a=rsa-sha256; cv=none; b=jPHqQ9w309fDThqUzIHJv+xspG5doaZBqZUPRLaQjKuDGLhQxF/SoVzo9/cEq2zllAdVPz rOh0AL/uxflJ/AfXQ/AnmT6zBkw1CzI3JA5chGE8WLoieINvrPiu+LRMrSg6ckBIgpY09s B5vWXsEOFGL0mDjRvJGtTex9l3MOUVCukY4EdXimEdnGZQVSmHSe4foa3FpjqVkSM3hNFJ 2d/6voZQBIwqqte4pDTnz3yn3GOZL7jG0FvWtYQOcR4QCGPboP0jiJQ1RmNgwe538kKBrr iuUd4UdW8U9HxYjY/HhhjDc78Ll8Ao20oxQXx1RfHETc0H4dWB75UgnTwhtcjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GIDTeVgz; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GIDTeVgz; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: BFD0BAC51 X-Spam-Score: -3.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: 51w/WUfYObQB Hi, On sam., 22 oct. 2022 at 22:58, Felix Lechner via "Development of GNU Guix = and the GNU System distribution." wrote: > While I am relatively new to functional package management, I find it > inconsistent that inputs in Guix are provided by variables. What do you mean by =C2=AB variables =C2=BB? > I believe the inputs should be provided by functions that deliver the > most suitable version of a package. For most packages, that is the > most recent version unless pinned. What do you mean by =C2=AB inputs =C2=BB? Currently, the =E2=80=9Cnew=E2=80=9D style refers to symbol as inputs which= points to other package definitions. A package definition somehow defines a function to build a package. At this level, it is hard to have a precise meaning of =C2=AB suitable version of a package=C2=BB, IMHO. At the CLI level, packages are referred by their name field and the most recent version is used by default; unless a specific version as =E2=80=99@1.2.3=E2=80=99 is appended to the name. > A package definition would be the list of available versions rather > than just one version. What do you build? Do you build the matrix of all the combinations? The hard task of a package manager is to provide a set of packages at their appropriated versions that works well all together. Aside some specific cases where the compatibility across version is guarantee, I miss how a mutli-version definition could work in practise. Package transformation is somehow a way to implement package definition for several versions. It allows to rewrite the function definition (package) but in the same time to keep under control the combinations. Cheers, simon