From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iD+fB5VH+mOlBwAAbAwnHQ (envelope-from ) for ; Sat, 25 Feb 2023 18:38:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uAN+B5VH+mPlUAAAauVa8A (envelope-from ) for ; Sat, 25 Feb 2023 18:38:29 +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 D680214D for ; Sat, 25 Feb 2023 18:38:28 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Vp2htK7u; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677346708; a=rsa-sha256; cv=none; b=pOEgP1r4QpRd8Ncuf7qUMYpJvjjN/h8o3wstZC1BSQaYx1Z45AuIGhMLqrz16oAkLxz7b2 K73ANbU+n327E6mDTkj7hfdEme/VLmTWHdt9Gl4Hz4A3hX/w94nGZLCqcCBB/5j/iQOGel xrG0IUPY9HrO2lQ5WYii1c8PUN+emMzg56hpSSOi19GmPKOBQ5rFMLvasJrR8Zrv+ZDbCx 5HOA0QWeCFvMUy2yrSk7R+HthMpME2eyRVpN7NMDzIdZuvebAi0m3t7xr4HoV3KBxJ8Uae oggDDOTc7WKENbX5nrgtk4PoRNKurKfDc37aPc8fdyB6DNQuXlphg706HsQpuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Vp2htK7u; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677346708; 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=aS2kOqHbNDEiilFiTefwL1vO2LYXpV5otu3F3rZt5OE=; b=MQ0wES6lPEjfXcHvguzegYhi+s8AOEdJyCjYnmwBQD9oAJByHTS56A9vaTaIAVcM0IeZh5 Mi6hHGxAT9hKhftrhB0wkVEisPldOPbifmL1w915IdEABD/d0cxIJrWTOZ5nHRyGsUwC0O 0Mcpf6mA9rMR0qebGBpGPZ01ScbmUMC67pk4yTZoBK7EVmqrIfSBn47c8rvlmv6T9/WRgW Gfa0WQBrpVckg9aBMuNAgt4Aw+AMd6HHP3d5ezeXHCWsab1YIemleqcjIX2AVd79yhIuMA YG+U5GYUR9hMEWYyHuNcKi/pnnbGmTIIKKh1w5UMLC5c7aSnnxm9vBv6MQuCXQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVyUg-000318-Lr; Sat, 25 Feb 2023 12:37:58 -0500 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 1pVyUf-00030v-31 for guix-devel@gnu.org; Sat, 25 Feb 2023 12:37:57 -0500 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 1pVyUe-0007IZ-9a; Sat, 25 Feb 2023 12:37:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=aS2kOqHbNDEiilFiTefwL1vO2LYXpV5otu3F3rZt5OE=; b=Vp2htK7u44Hlx7dyf+tB NCsfDG3hdyKBgLtVuHryyM3logZj2Rbna8XxXdwY+JQG+mVUB0fJE2BDu0IoAiVhckoYKB86IF96c Ti36MDuZf7NHjLV9x9E+6SS05mN/GdttMyVo4qelChDHlsypHMqeQoC+jaOsptIs8wHtewCN0uIwT HerN8r3WfzsBFRJrgs0QHxgS9QP2LzWB0sWAapFqv6nXdAb/W5jqoYotVOmTRVO8iyA4qRE09MrFO ZvYzLup5FILXdcHQrbav1lJPJpIpG6VwBuoOE7hf/kD5CQYCPiBGyyEnq2FJdVzUGb7eouNG25ewd sExWIjvrG5goaw==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVyUb-0002DL-G9; Sat, 25 Feb 2023 12:37:56 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Bruno Victal Cc: guix-devel Subject: Re: Relocating some procedures into (guix utils) References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 7 =?utf-8?Q?Vent=C3=B4se?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de l'Alaterne 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: Sat, 25 Feb 2023 18:37:52 +0100 In-Reply-To: (Bruno Victal's message of "Sat, 21 Jan 2023 00:14:53 +0000") Message-ID: <87wn45y7bj.fsf@gnu.org> 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: 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: X-Migadu-Queue-Id: D680214D X-Spam-Score: -9.00 X-Migadu-Spam-Score: -9.00 X-Migadu-Scanner: scn0.migadu.com 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-TUID: Byx1Ly/O0ucI Hi, Bruno Victal skribis: > IMO there are some procedures (or even modules) that could be relocated i= nto (guix utils) as their utility is more general than what their module na= mes would suggest. > > Good candidates to relocate into (guix utils): > * (gnu home services utils) Hmm, not sure. > * list-of, interpose, alist?, list-of-string? from (gnu services configur= ation) I think it=E2=80=99s fine to keep them over there. :-) The rationale is that one Shouldn=E2=80=99t=E2=84=A2 be using things like = =E2=80=98alist?=E2=80=99 and =E2=80=98list-of-string?=E2=80=99 in =E2=80=9Creal code=E2=80=9D: they have= linear complexity (like =E2=80=98list?=E2=80=99), they might be ill-defined, and we don=E2=80=99t g= enerally write polymorphic code anyway. They *are* useful though as a limited form of contracts for =E2=80=98define-configuration=E2=80=99 fields, so it=E2=80=99s good to keep= them there. Taking a step back, my inclination is to keep things local, or even private, until/unless there=E2=80=99s clear evidence of (1) usefulness beyo= nd their initial place of birth, and (2) the interface is =E2=80=9Cclean=E2=80= =9D enough for them to be promoted. #2 is subjective, so it=E2=80=99s really on a case-by-case basis. My 2=C2=A2! Ludo=E2=80=99.