From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iKCXFw0P32ENuQAAgWs5BA (envelope-from ) for ; Wed, 12 Jan 2022 18:25:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eGxDFA0P32GnXwEAauVa8A (envelope-from ) for ; Wed, 12 Jan 2022 18:25:33 +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 1289921F33 for ; Wed, 12 Jan 2022 18:25:33 +0100 (CET) Received: from localhost ([::1]:41806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7hNL-0000tF-Sw for larch@yhetil.org; Wed, 12 Jan 2022 12:25:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7h8S-0004MR-6E for guix-devel@gnu.org; Wed, 12 Jan 2022 12:10:08 -0500 Received: from [2a02:1800:120:4::f00:13] (port=54440 helo=baptiste.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7h8P-0004k7-8Y for guix-devel@gnu.org; Wed, 12 Jan 2022 12:10:07 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id htA02600z4UW6Th01tA0oH; Wed, 12 Jan 2022 18:10:00 +0100 Message-ID: <94d412c429288b265a22aedd8eff3b3aa35b32e8.camel@telenet.be> Subject: Re: using an SRFI that is not available in Guile From: Maxime Devos To: Attila Lendvai , guix-devel Date: Wed, 12 Jan 2022 17:09:49 +0000 In-Reply-To: <6vmHCdZdAWsjqvLgmVNEZclQ-JbdRJLfGzLNphX3EbevcslD-_TkMuHA1MwIylOfbe3DkDXYCbx5WT_Q44sC1Qed5MsBUg2xxZKhUbChGGs=@lendvai.name> References: <6vmHCdZdAWsjqvLgmVNEZclQ-JbdRJLfGzLNphX3EbevcslD-_TkMuHA1MwIylOfbe3DkDXYCbx5WT_Q44sC1Qed5MsBUg2xxZKhUbChGGs=@lendvai.name> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-rrzdDXOPi7mlaNHB+rAR" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642007400; bh=I4fpbRaVRDmiQ/EqsNNxjMauYyMSlCsIEKaV9vDzJDw=; h=Subject:From:To:Date:In-Reply-To:References; b=GJkOp5DW4PvJF2NeBYXDILop/6oRgPfEizhiHImML7Qckt70rfW1jAT19+EqoTOWP T4gZc9SN/da/IGP8tn7GrdYakp5N8r/1Is9UdgHo85xG+tUmryo5P4LAOWvjETkTC+ gX0604kjYRKGVbcwzBMMubHQBp37ZqwafA6MBRKJBe+Ek58LVas3wUK+4pIvo/YMh3 uZxe5eAwAudrNPs/vK9f8A3I51o2gBtxSjjRVQ7CExjOXRvuSsW9XbDe9HmDHpyeHo GmwcOoBCA4d8EIgilu6hte4LpNvsRQf39EcoCDwotLtYnWgYzelf02ufi32vaFtggt WeXNF+QObYXGQ== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:120:4::f00:13 (failed) Received-SPF: pass client-ip=2a02:1800:120:4::f00:13; envelope-from=maximedevos@telenet.be; helo=baptiste.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" 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=1642008333; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I4fpbRaVRDmiQ/EqsNNxjMauYyMSlCsIEKaV9vDzJDw=; b=RKdjnprFoaKJyZNNxgHzMB+eXtoHmVE1LTOtxZPapRI+2Z4c7F/3mzJicPH6eZ8e0eup3u DZUePKgbDaZBGwHOB2hHYof1snoa3m+B09Hsr7TYim8DNtfuzKdw9HRne9dRYiXfp+21T/ XvcdnzQeXZu0vFDXqNCZIoZzmLbZOk2IlKPOqTCbArcAqMeRK4VaFDKnoDFTiVlFkpSW91 ZOHkI8F825nz5LQ4Db88ej/RCMh2Xz9Nxi+PeYzCLBpSXh+fp+4W83lVlBgWI+l8UXw8hS Wqgw7j+dr8SF28KqHCEO6VT6aPCnb1QSHKax2ifHURFDHWkPF+pzE3rAbge32Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642008333; a=rsa-sha256; cv=none; b=pidgRo5lYHgFRyMuAkOTsGUynZLInf1jNt5kQZ81c8xNtsm2BQFhSoTY8nlaFik2cG7tYs Z3ph4Y3MxCZ0K/VoxHe8A+ggF4CyvMQyeZlK3Gxu19/7oo8U0qt+pHR0gAjy1kvu3DTUQd m/Ie6mHGGKdysrr9FGWxuhGQTksn9sjGgRsbYgUM96+0CJm8lYQOvh8/odxcKXKNY3qzfu hY0eUpqf6VhbJdPrxw7x2bbo9P4vYpROe2LIUB8oebDdbRov19M6+StuGtfqdn4XtW3xjv L1XZsJ+OCmlUHHxe2ELJD9bA/qyB8fmU9GCFcItu/JQcfb7ozeT2mScH+6rF0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=GJkOp5DW; dmarc=pass (policy=none) header.from=telenet.be; 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: -9.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=GJkOp5DW; dmarc=pass (policy=none) header.from=telenet.be; 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: 1289921F33 X-Spam-Score: -9.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: eTHo4ex6ogdY --=-rrzdDXOPi7mlaNHB+rAR Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op wo 12-01-2022 om 16:46 [+0000]: > dear Guixers, >=20 > when working on the=C2=A0(gnu services configuration) module, i would lik= e > to use srfi-189, which is not available in Guile > (https://srfi.schemers.org/srfi-189/srfi-189.html). >=20 > is there any way to add it, or an already established custom for such > a situation? e.g. adding the .scm file to Guix, preferrably late in > the load order, until Guile catches up and shadows it with its own? Instead of bundling it in Guix (which would=C2=A0prevent Guix from being packaged in Guix, due to point 8 in (guix)Submitting Patches), how about making it a package available for anyone (not only Guix)? Have a look at the Guix packages guile-srfi-89/145/158/159/180. Basically, SRFIs can be implemented like any other module in Guile and don't have a special status in Guile (except for cond-expand and some special syntax for importing SRFI modules -- maybe in 'library', not sure where exactly). FWIW I don't think there is any need for Guile to ship an implementation for all SRFIs by itself when they can be implemented as separate libraries that can be installed with $FAVOURITE_PACKAGE_MANAGER. If at some point an implementation of the SRFI is moved into Guile, then the package definition of guile-srfi-NNN can be removed from Guix and guile-srfi-NNN can be removed from package inputs. Greetings, Maxime. --=-rrzdDXOPi7mlaNHB+rAR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYd8LXRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7l2QAP978Svz+fV9fw0UxiqogvCaRtuV k6nD8Fdwb65FcJdn1AD+I3GAgoVpDZgVt1AkyOvckTo5nsTkR7C6yGosJpIocAQ= =lm0f -----END PGP SIGNATURE----- --=-rrzdDXOPi7mlaNHB+rAR--