From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ODhoBNnFeGKWCAEAbAwnHQ (envelope-from ) for ; Mon, 09 May 2022 09:42:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SDVvBNnFeGL7RQAA9RJhRA (envelope-from ) for ; Mon, 09 May 2022 09:42:17 +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 9FE823AA81 for ; Mon, 9 May 2022 09:42:16 +0200 (CEST) Received: from localhost ([::1]:38068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nny23-0007ih-Pw for larch@yhetil.org; Mon, 09 May 2022 03:42:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nny1r-0007gL-SL for guix-patches@gnu.org; Mon, 09 May 2022 03:42:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nny1p-0002Ru-SJ for guix-patches@gnu.org; Mon, 09 May 2022 03:42:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nny1p-0005aZ-PP for guix-patches@gnu.org; Mon, 09 May 2022 03:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55248] [PATCH v3 7/9] gnu: chez-upstream-features-for-system: Improve implementation. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 May 2022 07:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55248 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath , 55248@debbugs.gnu.org Cc: Maxime Devos , Liliana Marie Prikler Received: via spool by 55248-submit@debbugs.gnu.org id=B55248.165208210221457 (code B ref 55248); Mon, 09 May 2022 07:42:01 +0000 Received: (at 55248) by debbugs.gnu.org; 9 May 2022 07:41:42 +0000 Received: from localhost ([127.0.0.1]:55895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nny1W-0005a1-6Z for submit@debbugs.gnu.org; Mon, 09 May 2022 03:41:42 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:16896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nny1T-0005Zp-Qm for 55248@debbugs.gnu.org; Mon, 09 May 2022 03:41:41 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4KxY5X1MH1z3wHl; Mon, 9 May 2022 09:41:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1652082096; bh=xW3m56I6hPfnzBWKBOwLWMLRpep7uKEw0d+j2lUrsBw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=US8Z77pkOodLnmwqJvGXunA8jO2lBbKUp95+DRaiMnfLX9eJptdKLRK1VzgS2mMOh OTI5G4siite5GfMowzT91wZ0rKMJjh+w9k+EkLDOv5otvjRo+GLeVY1sr2er9MDFjt /IxqmhN/rcpBJ22OInMrVzRF2wOdxdXuMCJv2afo= Message-ID: From: Liliana Marie Prikler Date: Mon, 09 May 2022 09:41:35 +0200 In-Reply-To: <2c0151f9-f8b3-bd0e-7023-b6d29b9f6df1@philipmcgrath.com> References: <2c0151f9-f8b3-bd0e-7023-b6d29b9f6df1@philipmcgrath.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652082136; 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: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=xW3m56I6hPfnzBWKBOwLWMLRpep7uKEw0d+j2lUrsBw=; b=X+851HMI3WDlobWWVog592AN/tiIo0m7TMdriIXUgYLo0zsBwEu3iJPpxTUeYsyMSM1Lbv 925BsHLjKw040z1bwFnvb7fVDhsb2bqLliD5+Fw/D8Fsfsg3Ju1DUpUh6g4IXoPKBtZ9Rt 2NWHa++mDlnpj+FIui5T2x48BQke56sJcKLDX1gDV6cHc6fh4r78yWhcGUMtEVSNTS1wxf agngI2dp1X/Whapr+JABg1DYE4ySICy0WxYQF6F/lld2D2fX+MWvYCN87ejvhXdOLYhKpA n3ZEb1TuE/GWn4fpYJXrltQwWL5YyJ0ileZ02HvJ3FWzhWmpY+F3uOvoi4wO/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652082136; a=rsa-sha256; cv=none; b=I7qnW6p2TWgDXFCsnVTvqFE216pCh1tLlYnlMWQlM+SU07fX7W7UC/wY4+P9McJ+zNIcYX PMxewEbYRdes8P1BTPGISjWK5WvzeOk14M+1Gp2XBSCbh7d07kop9IrX1Y+z5myloYVJkf y7lEV8bx565eumXhZfnwc1akohrDiSn4xUvLr0xWKuP6+CJp6AY2wLBgtSoA4YneZGvTt5 Ua+PR6TK6efpojeIH2sM4jphAz4fP4vaVfZJvGSxCUlo2DslmXYV97IlooBZVTRNdaRY39 PSW4hLyLBi96230ZDmRGGIUtBh5f4wSWmM5vQ0u22wfDI0Nluzq9Z0o+hO5waA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=US8Z77pk; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=US8Z77pk; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9FE823AA81 X-Spam-Score: 7.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7t+mMHHUaj7+ Am Montag, dem 09.05.2022 um 03:20 -0400 schrieb Philip McGrath: > On 5/9/22 02:21, Liliana Marie Prikler wrote: > > As far as I can see, we have a bijection between *supported nix > > systems* and chez-machines, with the *behaviour when looking up > > unsupported systems* being *undefined*. > I think a bijection happens to exist at the moment, but only by > accident.  Emphasis mine. Look more closely, it's a bijection + undefined, where undefined falls outside the realm of what should be reached outside of supported-system queries. In short, the specification for nix-system- >chez-machine is that for every *supported system* it returns the chez machine as a string. Otherwise, it may return a string or #f, we don't care. Thus, nix-system->chez-machine can serve as an upper bound for supported-system, but not as its implementation. > For example, while it isn't packaged for Guix, apparently > aarch64-w64-mingw32 is a thing. Racket's Chez Scheme only added > tarm64nt support as of this release, but had previously supported > aarch64 with other kernels and the NT kernel with other > architectures. If Guix had added that system before Racket's Chez > did, 'nix-system->chez-machine' would have known how to write it as > a Chez machine type, but nonetheless it wouldn't have had a native > code backend. That's irrelevant and not the purpose for having a conversion function. > We explicitly list the systems for which Racket's Chez has a native > code backend in '%chez-features-table', Do we really? > I think we should just use it, rather than try to be clever with > 'nix-system->chez-machine'. Well, that depends on what you're trying to use it for. Determining features? Sure. Determining system support? Okay. But that doesn't mean there's no valid use for nix-machine->chez-system – in particular I think you over-eagerly removed a valid one earlier. Cheers