From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 aCqRJyHheGIyggEAbAwnHQ (envelope-from ) for ; Mon, 09 May 2022 11:38:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KF2tJyHheGK2MwEA9RJhRA (envelope-from ) for ; Mon, 09 May 2022 11:38:41 +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 1EA623D837 for ; Mon, 9 May 2022 11:38:41 +0200 (CEST) Received: from localhost ([::1]:40284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnzqi-0002YF-5L for larch@yhetil.org; Mon, 09 May 2022 05:38:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnzp8-0001Zr-Up for guix-patches@gnu.org; Mon, 09 May 2022 05:37:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnzp8-0002VL-L4 for guix-patches@gnu.org; Mon, 09 May 2022 05:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnzp8-0002gv-Ha for guix-patches@gnu.org; Mon, 09 May 2022 05:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported systems. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 May 2022 09:37:02 +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.165208899710256 (code B ref 55248); Mon, 09 May 2022 09:37:02 +0000 Received: (at 55248) by debbugs.gnu.org; 9 May 2022 09:36:37 +0000 Received: from localhost ([127.0.0.1]:56109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnzoi-0002fL-Sq for submit@debbugs.gnu.org; Mon, 09 May 2022 05:36:37 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:33365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnzoh-0002f2-43 for 55248@debbugs.gnu.org; Mon, 09 May 2022 05:36:36 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Kxbdz6WgGz3xWR; Mon, 9 May 2022 11:36:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1652088984; bh=PZUhdxxv1iJMUk3R79p+D7+5WaPXQQ5pFAhrvFxLpEs=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=gjdqYU5usT8TZMOeL7WizDdTC3WxLBITd5g5RQDzZv+gQeMSszC7S5zedky48OzSL AK7b/qLIXicokk1tZcgFHt7X049V0JB/hhWKXAD9ILN1uVePSFI4Pl8ORQgkWA5D+E Qx9UKL6QDnSrYWW3YnCB1vhj2m+ZQ9MiEmSqqPdw= Message-ID: <77ff7763a7c87424e7195e9f8624dbdd2a26193c.camel@ist.tugraz.at> From: Liliana Marie Prikler Date: Mon, 09 May 2022 11:36:23 +0200 In-Reply-To: <7e8f385e-d2b5-6f38-fe4b-030748519574@philipmcgrath.com> References: <1328772b3ccb2d3909f8bca6fe14659e04434e3e.1652075689.git.philip@philipmcgrath.com> <1e7cf69aa12c81effaf2eb1ceff0997faca1cab2.camel@ist.tugraz.at> <7e8f385e-d2b5-6f38-fe4b-030748519574@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=1652089121; 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=PZUhdxxv1iJMUk3R79p+D7+5WaPXQQ5pFAhrvFxLpEs=; b=RVTepKvQ9MSBRoJc7LuAHFqHSlK8CnfhelG8WdkrKeBXu2yvbcqmQRquTGu9bMGEl7avfe YgE84t6eTw8+7xM89LTYZKyCyjF/4IqVyGr7RjVxguIWGjXIU2Y9sc2ChABH/TDuBDAFqM iVtORldkL4qB5u8CJL1tSXZlVYxLK7gz1IsY+nIuepPYYjtn+Dh5FuNFBAh8dwJX3ZKHUy +r+d+c5ri7yrib/AtTMIV/wA2EDs8Ct20uWIGfZnNmOwycIBcNYxLLid8fge5Sf5bMnO4Z wUYZ5aOH+kb4n8yl1s0tWvK1P6AIoExBMe3r8/tN6OAij14OZWu05KdIlORH6Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652089121; a=rsa-sha256; cv=none; b=HIsbF4DhDYXWr6fs7s+1IkWPWVBDq8jnJgnqvDB2bia9C3CARKNe4WfYCsUk0ct/eViDsb bGvZbf40J0XRBC4i5NVlEiJZIId+TXx+AN0tr24DSBWnA4eUUp8Kd+jFlDPYVpmWXFRljl MUaxbC3v40wBmF71XlEczrmijuaWGrxwqdPGjFbdA9VDNimJsNoJwd6NVFQhdFk5vmBo76 10RBbOUAm8XnabMcQlzGQyhOKNqJ+ag9AVr5QHlg5ZdqbG5TM8X3beKVrhKGCwMF77pEMz hnJ6zWmvgbi8R/RY9HarDl5UsejwOpgaty9dTboP6em28fWf6Ek6up1b689dAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=gjdqYU5u; 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.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=gjdqYU5u; 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: 1EA623D837 X-Spam-Score: 7.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: jlxScRIM728e Hi, Am Montag, dem 09.05.2022 um 03:55 -0400 schrieb Philip McGrath: > Concretely, there are no other uses in Guix. > > I do not know a robust, correct way to use > 'nix-system->chez-machine'---certainly not without it growing many > additional features, like maybe computing endianness for pbarch > backends when we are able to build them. For example, if we continued > using it as we did in 'stex', you couldn't build a package graph for > nonthreaded Chez simply by applying a package transformation to > remove '--threads' from its '#:configure-flags', because that would > change the machine type without updating the uses of 'nix-system- > >chez-machine'. True, you would have to change the machine type, but I think I already noted that we might want to use this machine type as a distinguishing factor in packages built on top of chez (and later chez-build-system perhaps). You could do this the other way round by deriving flags from the given machine-type, e.g. stex for threaded chez machine is given -- threads, otherwise it's not. Since we have named symbols for these features, we could have a "package-with-chez-features" or similar transformer. Being able to specify this machine is a strength, not a weakness. > The presence of an entry in '%chez-features-table' explicitly means > that 'chez-scheme-for-racket' can generate native code. That is not explicit at all. There might be an explicit comment stating so somewhere, but in terms of actual code, it's super implicit. > The idea is that the "portable bytecode" backends should work, > including thread support, on any system with a reasonably capable C > compiler. The idea. In practice, what racket deems reasonably capable can change over time and might result in them dropping some architectures currently supported. What do you do then? > There are no other "features" that vary among systems for > 'chez-scheme-for-racket'. It doesn't rely on pre-built bootfiles for > bootstrapping. Since the initial fork at the beginning of 2017, when > support for new systems has been added, native threads have been > supported immediately. Racket regularly merges all changes from > upstream Chez (which has not added any supported systems during that > time---not even the systems added already in Racket's variant).  I'd still make "supported-by-racket" or however else you decide to name that feature an explicit part of that table rather than an implicit one, or use a separate "table" for platforms supported by racket. Note that none of the racket-vm packages appear to currently carry supported-systems, which seems dubious. > These conditions are documented in the comments on '%chez-features- > table'.  See above. Cheers