From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QNTdJhZxEmJQgAEAgWs5BA (envelope-from ) for ; Sun, 20 Feb 2022 17:49:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UACfHxZxEmLsLwEAG6o9tA (envelope-from ) for ; Sun, 20 Feb 2022 17:49:26 +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 11EBA3565E for ; Sun, 20 Feb 2022 17:49:26 +0100 (CET) Received: from localhost ([::1]:41244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLpOn-0006KE-26 for larch@yhetil.org; Sun, 20 Feb 2022 11:49:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLpOQ-0006I6-1i for guix-patches@gnu.org; Sun, 20 Feb 2022 11:49:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLpOP-0007zi-Nn for guix-patches@gnu.org; Sun, 20 Feb 2022 11:49:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLpOP-0007n3-I8 for guix-patches@gnu.org; Sun, 20 Feb 2022 11:49:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v3 09/15] gnu: Add racket-vm-cgc. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Feb 2022 16:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53878 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath Cc: 53878@debbugs.gnu.org Received: via spool by 53878-submit@debbugs.gnu.org id=B53878.164537569529892 (code B ref 53878); Sun, 20 Feb 2022 16:49:01 +0000 Received: (at 53878) by debbugs.gnu.org; 20 Feb 2022 16:48:15 +0000 Received: from localhost ([127.0.0.1]:33622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLpNf-0007m3-CM for submit@debbugs.gnu.org; Sun, 20 Feb 2022 11:48:15 -0500 Received: from mail-ej1-f66.google.com ([209.85.218.66]:33436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLpNd-0007lr-Ev for 53878@debbugs.gnu.org; Sun, 20 Feb 2022 11:48:14 -0500 Received: by mail-ej1-f66.google.com with SMTP id vz16so27283087ejb.0 for <53878@debbugs.gnu.org>; Sun, 20 Feb 2022 08:48:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=m7JdUyR5s59ePg5zSq/94bqd6LSYR1YiK7wyhjd5P1k=; b=LJhLhkOlAwAeZ3TLBDDRGl9C2MktiZU7bHOu4iHJiVOB70A77uYB8kaJ9mX9iqDa9X psksxPxyEG+verLwx1vsUKtShWT0VCwuJz0gy27rbfYhPJMUZPAqCcds/M7i3ZfPNCsh S3sxZA/dQirHSJb2OAjQao062ia6jZpF6DiOA60XyREaVKVKeqR2bj8pOsfDudaIifuX 6B2ewrwbTgEmEIU2udo3kbisB1TM5tJEsI0gpg8X7xE6jTZCKeHTTxt/rFNMwuuh3ZyL CqV/aKCVU63suVH5suJDq4cKu+eINrXlsp0fc30Kb0CiB84wXJjuvjH2cPzl5x+vrT6p clyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=m7JdUyR5s59ePg5zSq/94bqd6LSYR1YiK7wyhjd5P1k=; b=3+s/iUCTQjClE4T1SSidq1ZH3hOnCVFyiJ1oD3C2mraR5bE+VDrVsTUkryA/USNEGy TDQc40LxWxvAxpQrJubKOVjaVeoZQpGYrXMGlxsCM4AwbnEg3KDZg6MMb9db2615aM87 FXi9+GR5LcvARMT9egFmAdYg0hXix1knnuFIr4wkPCCqRPs5OIvGX3/Ivby4mvUWmNpL Ljt+M1DcpwJsKjXAlNxisT3VOQRSFgfK0kwBFcKjGFf84oVMhB3Eoy5C1bi11Nf8L661 uIIBrcv2UFTcTA8G6rbWuZdWaNsuGglrmH5xGhW7/CxuWbQLijT3LrNm0J3mk92ItLaz cwcA== X-Gm-Message-State: AOAM533XU9WnlNy5SoTn6NkgLrQ4PaxSb0kGgZkU0Pk39ri7YVYKFs67 rGMkfUFtOV/U8EBSDGvtsUo= X-Google-Smtp-Source: ABdhPJx+K8AxhE3+fWsvrmrlk6ej04n3MiRwqyzCcePi3H3ZEyMwZAswcbamX98DxpBgOQISOtey+g== X-Received: by 2002:a17:906:bcda:b0:6b8:6809:59fa with SMTP id lw26-20020a170906bcda00b006b8680959famr13024752ejb.359.1645375687296; Sun, 20 Feb 2022 08:48:07 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id k20sm919335ejx.152.2022.02.20.08.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 08:48:06 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Sun, 20 Feb 2022 17:48:01 +0100 In-Reply-To: <1853902.IiyMIqa0Cy@bastet> References: <20220208151316.1897345-1-philip@philipmcgrath.com> <2223439.vW7IG60toP@bastet> <1853902.IiyMIqa0Cy@bastet> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645375766; 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=m7JdUyR5s59ePg5zSq/94bqd6LSYR1YiK7wyhjd5P1k=; b=tTga9Kgch0rPxc0BiK80GYm2OCNL8q1Su3xGQf+oImt8Q8aID+kSrRT1TJ3tbPqb69Bqp0 aSYSC51PY9iCqAIOin4NxElWN0+RLby6e9TmyH3Qv8SxQEnQhqtvP58Qu8OZ0dC0671K2n xCXWceCcnYvMoDFurpGjy3gEbAyfkNCe5HuUEo+WZcuhlI5jPYAGxdUM0zxJDrTa65SeNF 89ZCTcryZmOQufUZEGwxnpGN0q1Tu+dT3mFDZE8Aax4jpCK7ZzqanR8A+iPfAc9DSpUWTu Mre/dbQSYyTH8Wgd71aSEFJYvY5UuVRlQYfa7XRnk5+J2nM0xCon7QAY8O6CbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645375766; a=rsa-sha256; cv=none; b=YcYePheFsZcSRcNbrtZCX0aTidNSY6NWI1HrknZkWX/iCTqnxWjpFD/Rgvxbc0FCVwtww8 qnvuus/JvYOzDgXBg3Usy8N8n8s+BpETi305lZYD+AAmsovHIhTymmXJQh2blLsnM2b6/G s5W8DlyHTl1bwtWGdQwS2vBYaNQC3YlqdZWmWnxcmDlJBHQ/zdc8NYH0QCq98gQcT2cQPx OPgqAqv9tBW5c2W6O3jMXMCnKjMmoyJeB4W0MLjvJMisZCW/0UyVnnHJzQJj06Xa0NzGMp gP7hKkpoyQkLdpR3VDFuCYdYXfwrhbc/bGyp4BYoya+W7jpukf8G4WeSLgzChg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LJhLhkOl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LJhLhkOl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 11EBA3565E X-Spam-Score: -3.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: iSzcM9MhqM4r Am Sonntag, dem 20.02.2022 um 09:09 -0500 schrieb Philip McGrath: > Hi, > > On Sunday, February 20, 2022 4:03:26 AM EST Liliana Marie Prikler > wrote: > > So here's my suggestion: > > > > Inside chez-and-racket-bootstrap, define (make-) functions > > for > > the following: > > - chez-bootstrap-bootfiles, chez-for-racket-bootstrap-bootfiles: > >   Taking version and origin. > > - racket-vm-cgc: Taking version and origin. > > - racket-vm-bc: Taking racket-vm-cgc. > > - racket-vm-cs: Taking racket-vm-bc. > > > > Inside chez, define chez-scheme, as well as non-bootstrapped > > versions of stex et al. Also define make-chez-scheme-for-racket, > > taking version and origin as parameter.  Finally, define chez- > > scheme-for-system, which uses (resolve-interface '(gnu packages > > racket)) to get racket's version and > > origin. > > > > Inside racket, define %racket-version, %racket-origin, racket- > > minimal > > and racket.  It'd also be good if you made local definitions > > (define racket-vm-cgc (make-racket-vm-cgc %racket-version %racket- > > origin)) > > (define racket-vm-bc (make-racket-vm-bc racket-vm-cgc)) > > ... > > in this file. > > My understanding—which is not very good!—is that this would have the > same problem we do currently. It would be analogous to my example > from : Well, for one this claim is both verifiable and falsifiable by way of implementation. For another, I don't really see the issue however. Since those bindings would be local to racket.scm and not used anywhere else, I don't think there is a cycle to be found anywhere. > > > But  Ludo’'s examples show that's wrong: those uses of `chez > > scheme` are in what the "expansion contexts" model would call > > "expression contexts". > > > > Instead, I think rule № 2 prohibits any reference to a variable > > imported from another (gnu packages ...) module that will be > > evaluated when the (gnu packages ...) modules are—visited? > > instantiated? [2][3]—IDK when exactly, but, for practical purposes, > > any variable reference that is not underneath a lambda abstraction. > > > > If that's right, IIUC, it would mean that: > > > >     (define chez-scheme-for-racket > >       (make-chez-scheme-for-racket ...)) > > > > would also be prohibited. > > > > On the other hand, uses of `(racket-vm-for-system)` and `(chez- > > scheme-for-system)` in an `imports` field should still be fine, > > thanks to the implicit thunks. > The reference to `make-chez-scheme-for-racket` or `make-racket-vm-cs` > or any such procedure defined in "chez-and-racket-bootstrap.scm" > would be evaluated when "racket.scm" is instantiated—or whenever > precisely it is that causes the problem. I don't think that'd be a problem since make-chez-scheme-for-racket is itself a function. If it still is, one pair of brackets makes it not so. This is a well-explored technique of resolving chains, used for example in our build system code. chez-and-racket-bootstrap.scm should imo not be imported anywhere but chez.scm and racket.scm, so it by itself can not form a cycle. Only chez.scm and racket.scm can, but there are ways of making those well-formed. See (standard-packages) in guix/build-system/gnu.scm pointing to (gnu packages commencement) or (default-python) in guix/build- system/python.scm for pointers. Cheers