From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KOraJrp7bmVxlwAAG6o9tA:P1 (envelope-from ) for ; Tue, 05 Dec 2023 02:24:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KOraJrp7bmVxlwAAG6o9tA (envelope-from ) for ; Tue, 05 Dec 2023 02:24:10 +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 43E4C5AB69 for ; Tue, 5 Dec 2023 02:24:10 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="VXrMj/yu"; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701739450; 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=x2Qeztmu/hVVUmcA9xYl0Vk2MRclwzNjOukWj7IIJU0=; b=scJLNnvoXZQ5rqPEwB1tqYzfJKo97mhKgoCJj9rI6cX+D9VKqaDAp7NQPU3y13J3RPKS9U LgLZcPOe5a+Dg+Qaw2Ny8MbKKIfCEFra98GKtQ68YEUehl3SvNBCJRV/RisQUML189M1k4 +A9QVEtFenEdpdwnvEEOw0SzHpHOrL0AGpjfuJi4bdfQ5pNOLulQ86ZS5ONN8OFuxIRJZ3 xY+CaAazfeE2woTbYNUxhPVPTQEDy5fZiDJyC3ZUZynG6CnBlAe/4s/pbT3OsDP1CqdCw0 PJ2Xa8YIaExv1+T4jfkAMBRhZz0neEn23KFyMucsDJ1SrJkoRauYTGBHgH1dQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="VXrMj/yu"; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701739450; a=rsa-sha256; cv=none; b=Z9VrkeURi3EwVXUAigmh8RBJQ7wicZl+kk05j/LqqGvVNPqbAhkyKXEgYj+bXEOQ8GZAQL VjM8kksL0BGGP5Yyi+3LaiBTy0pTwO38O/tBMzen07Ii3rTzWE2ktjf1zZsNgRhgzljCTP 6eLmTB+elGmp2sZeDNcaJrbhnDTCmXrsDVdiQ4IoVh5DXvJuRsGcYbCOSgt4bysi4dhKGR 52y8Zw949mJaomW2voVNvv2Th5FMLMQTUM39xVDRaNLUtlKX3srEYUGnrC/59mOc4RNnvp SvqrPouWqCy4cEtriTFHpeoRbhB1Be+zhWWd9EL9lF8VcABakPqr1P0AG68x8g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAKA0-0004lD-8c; Mon, 04 Dec 2023 20:23:40 -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 1rAK9y-0004l0-RE for guix-devel@gnu.org; Mon, 04 Dec 2023 20:23:38 -0500 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAK9x-0002jD-8x for guix-devel@gnu.org; Mon, 04 Dec 2023 20:23:38 -0500 Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-423e77aa09cso40606661cf.1 for ; Mon, 04 Dec 2023 17:23:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701739415; x=1702344215; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=x2Qeztmu/hVVUmcA9xYl0Vk2MRclwzNjOukWj7IIJU0=; b=VXrMj/yuAuunWHysusra9Q5rNu7kFDjvEOHa0pu6xiuu8INmkPuhIO5fBKYfV4nOhE Sr6fB/f7KH7Nwe9+PeDai8u7v1LiE2YR65lcdsqW89svNroiWTsxOEBaEG0pwP3SZhwW FD+VAuC9qyZ8kHIgymHb3LAk2nXL6IzKVEcmGtiJUFOb6eGA9rOQJWOFu0ChJP27mu1+ Y3qPgMnis10GMwbmCBLHPiooyHUCg5QBHqS46E4dqKn2fKA+/a+uUfh/77XYVq7OSpnG l01kRZjqnpV5RRhltG5zP0Tkew/FVYqSxS4ityU2DTCmBCRMFQ1U7mOLSSQbVzOJUWB+ fezQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701739415; x=1702344215; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=x2Qeztmu/hVVUmcA9xYl0Vk2MRclwzNjOukWj7IIJU0=; b=gK6zNoE+rmOZc5uYSl2/WHfpIsfw0baMcoACf7YSo4VRp0iCJMe9KcJvN4PSIadtqz JoXHslUT02xWdpEeDQ5EYc1BjYt7zAxZnd1N9kKvhK7movTWq9mxNRJkif1xjt+y6VZn WY8Je/Znr+pcgueFfZg7fusl397VDBU+fqnm1wyrXsrknsBMDZPLkv1L3G90+cbETHnk /PM+PoP72t4MmtpqzNyAGVmc0BR1KqgRVpik88GAWfFynSsdZyK88sSh2u1QIlgegEIS y9v4/YoQeghK6qxuOil1VVCr1nK6CPRH7GbhZZCJ5fiB6BP9B6iF3wIfFoXvFISWPLyX VbGQ== X-Gm-Message-State: AOJu0YxKcZJ6ugMunJWlAV62zTz9i+MJgk3hV1RTCS5/O7G63gQLwlD/ feKDB0zOn2Zo9sKsyI/B8RzbpVgLHIChOQ== X-Google-Smtp-Source: AGHT+IHzsI4zxov5Tc1PZFJAbH1hNz7qAgX/v1yDULjUreq+w3+ih+DDlT50KzPCv8Bdj6owM47jLQ== X-Received: by 2002:a05:6214:849:b0:67a:c302:ba31 with SMTP id dg9-20020a056214084900b0067ac302ba31mr501820qvb.75.1701739415585; Mon, 04 Dec 2023 17:23:35 -0800 (PST) Received: from hurd (dsl-141-198.b2b2c.ca. [66.158.141.198]) by smtp.gmail.com with ESMTPSA id g16-20020a0caad0000000b0067a33133420sm4108983qvb.110.2023.12.04.17.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 17:23:35 -0800 (PST) From: Maxim Cournoyer To: Bruno Victal Cc: Efraim Flashner , guix-devel@gnu.org Subject: Re: Divvying up service definitions In-Reply-To: (Bruno Victal's message of "Tue, 28 Nov 2023 20:29:43 +0000") References: <878r7skrpx.fsf@makinata.eu> <87pm0lk15w.fsf@gmail.com> Date: Mon, 04 Dec 2023 20:23:33 -0500 Message-ID: <87plzlo31m.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x836.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, 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-Queue-Id: 43E4C5AB69 X-Spam-Score: -8.26 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.26 X-TUID: TuocsU3jjy/I Hi Bruno, Bruno Victal writes: > Hi Efraim, > > On 2023-11-09 07:15, Efraim Flashner wrote: >> I assume the define-maybe's aren't public, so I'd guess that shouldn't >> cause a problem as long as they aren't exported. > > They're not public but they override definitions within the same file > if more than one (define-maybe foo) is present (e.g. when (prefix bar-) > is used) > >> Or moving the define-maybes to the top of the file and reusing them >> between services. Is that a possibility? > > Due to their non-hygienic nature and the (prefix foo-) argument this > can't work. IMO we should look into replacing this define-maybe business > with something like SRFI-189 (by integrating it into Guile). Haven't given much thought to the idea, but I've recently tried my hand at adding new SRFIs to Guile, and developed some tooling such as a 'snarfi' script to aid with converting its HTML spec to Texinfo doc; you'll find the result at: and the script at . I hope these are useful in your (or someone's) quest to add SRFI 189 or others. -- Thanks, Maxim