From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gIARJQb9xmFhjwAAgWs5BA (envelope-from ) for ; Sat, 25 Dec 2021 12:14:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wD+8IAb9xmEqKQAAB5/wlQ (envelope-from ) for ; Sat, 25 Dec 2021 11:14:14 +0000 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 298CC3106 for ; Sat, 25 Dec 2021 12:14:14 +0100 (CET) Received: from localhost ([::1]:45050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1508-0001fW-Qe for larch@yhetil.org; Sat, 25 Dec 2021 06:14:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n14zz-0001f8-3X for bug-guix@gnu.org; Sat, 25 Dec 2021 06:14:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n14zy-0004Wp-Q4 for bug-guix@gnu.org; Sat, 25 Dec 2021 06:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n14zy-0008V1-Gu for bug-guix@gnu.org; Sat, 25 Dec 2021 06:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52749: G-expressions don't consistently preserve #nil Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 25 Dec 2021 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52749 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Philip McGrath , 52749@debbugs.gnu.org Received: via spool by 52749-submit@debbugs.gnu.org id=B52749.164043079932590 (code B ref 52749); Sat, 25 Dec 2021 11:14:02 +0000 Received: (at 52749) by debbugs.gnu.org; 25 Dec 2021 11:13:19 +0000 Received: from localhost ([127.0.0.1]:38553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n14zH-0008Ta-31 for submit@debbugs.gnu.org; Sat, 25 Dec 2021 06:13:19 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:44730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n14zF-0008TQ-12 for 52749@debbugs.gnu.org; Sat, 25 Dec 2021 06:13:18 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id abDE2600r4UW6Th01bDFMC; Sat, 25 Dec 2021 12:13:15 +0100 Message-ID: <637bb8909bd524ce239d66cc73d1e5ad43ce2ea9.camel@telenet.be> From: Maxime Devos Date: Sat, 25 Dec 2021 12:13:07 +0100 In-Reply-To: <6211bc6e48fa8f5dcf8711bba186812f3a5e52c4.camel@telenet.be> References: <23d2ac1d-737d-787c-5535-c816566461dd@philipmcgrath.com> <6211bc6e48fa8f5dcf8711bba186812f3a5e52c4.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-EUIZ8heLLU1oMrvohB8k" 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=r21; t=1640430795; bh=M+yDyNpZU8OtyDm9jeaqOI3tlN8msim5zqXR3MdNAtQ=; h=Subject:From:To:Date:In-Reply-To:References; b=JzqUXXG/a82v2xXBLq8m8/wSesDYUna7i0MSZcwrliU3hNhI841X7cboyfuUHTXl8 IF+h9Ts5l3vAJKU595k7qlztYtOCqUjv6qScwi0SHlercmRTbhCqBkOf8DqDdzGmQy mV7rc0hy7KW3RhZrlHFTjURBr8lsZVuqEL+4b1v7INEF+75p7srs1Sz3eQAB7m+Y1c 6KmYoZG63o7L0NJoTeMlr42TMGLfTiDG5skv/VbVkAZZ41G4nSdvs73HOmkPoJ7R1r 4KPpDQCr38vJsY7ok8amXgtLFBSw5B5r78BFiAUGO3dqrbHOWLYsSPqDTA26G6hTZd tF/pASXSe8S1A== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" 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=1640430854; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=M+yDyNpZU8OtyDm9jeaqOI3tlN8msim5zqXR3MdNAtQ=; b=Nk66uox2Iesdl37xLlybrzr2dcrfY9iDnmM4Cv/b0EJlVPBT+38URD7Q1lMNQvFVFr+Eo7 cmwYvVsiaIaM+5DBD1WIcqLzG1fIaI98+1wUE6A9o1PFYjd2vjqFfVCYJrre0PpZ+c4p29 WCbRL9YPeq+9Vi0JuPOAa4VF81bNVs2IE4c4zns9HkF4CCKSj8sKtlbqmSK1KSwArQDXCd 559UtUawE92NfG0yg6BNKd+q4H29Nj8/69KJanHE6Ee8G2Fsi+46do4tSeunB5YBxbenB1 OPzOpY0TkVLZBbkJ6Mvbkya0fjWLeGcpEVhUHMbJH5rlaKINf+vEYaEiS2z2hQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640430854; a=rsa-sha256; cv=none; b=UPspyNo/H2iN4MmgtAQe2n0zcay4XJTi9B0Z2fkGW5hK0mdxnVGJf7CaAnRQKlPrN7NTS4 NZYGp9/mVE6f3xp6DEP5u7ku5zNAqQxK2RhZ8pRhpg7dicfkoNBnbvN1zxA+oIH60okMwq W3BwJ6utCWL757a9drRZVL4hBESO8fEsst1U179x3dLtmYoL5f3lAKCIl//n0gGNibSYBc SEmHr3F5KMgdDfR7Rtakf6uvoLD/rvaAVgxoru5PTQwE70oWrXg+hsTv2zyWrDp2B7gw24 bIBicPFBnPE/loM/EQEeJSdkmXeAJ3T2ADFaXk73a39GIox0GJEYyrnBnv9Tvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="JzqUXXG/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="JzqUXXG/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 298CC3106 X-Spam-Score: -4.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: Sx+qISdAHZK2 --=-EUIZ8heLLU1oMrvohB8k Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Maxime Devos schreef op do 23-12-2021 om 06:59 [+0000]: > Philip McGrath schreef op wo 22-12-2021 om 23:25 [-0500]: > > G-expressions currently do not consistently preserve the distinction= =20 > > between #nil and '(), which causes trouble for programs that rely on= =20 > > that distinction. In particular, the issue affects programs that use= =20 > > (guix build json), because that library uses #nil to represent the JSON= =20 > > value `null', whereas it uses '() to represent an empty JSON array. >=20 > The constant #nil is only for elisp compatibility and not something > supposed to be used in Scheme code that isn't for Scheme/elisp > compatibility, so this seems more a bug in (guix build json) to me. That said, it would be less surprising if the #nil/() distinction is preserved by gexp->derivation and friends. This can be done by writing our own 'write' procedure. Downside: it might be less efficient than Guile's write which is implemented in C. Can be resolved by writing our own 'write' procedure in C. Greetings, Maxime. --=-EUIZ8heLLU1oMrvohB8k 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+4iGRcl7gUCYcb8wxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7n4eAQDc7rGRQG2dwYgOgzrwkVv0iUnv Wo1bt2wxpXEhr0FxrAD/V0TKSYgYTyCcFFMFNn7Mhan/QCa19bozyWYaunweOwo= =/Wmv -----END PGP SIGNATURE----- --=-EUIZ8heLLU1oMrvohB8k--