From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id ILtVFZscDGaAOAEAqHPOHw:P1 (envelope-from ) for ; Tue, 02 Apr 2024 16:56:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id ILtVFZscDGaAOAEAqHPOHw (envelope-from ) for ; Tue, 02 Apr 2024 16:56:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b="zGgNNX/j"; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712069787; a=rsa-sha256; cv=none; b=Tm8f9i/uFD1udxj9PcmA2vvcfAt0GEozdbJphk6h/aqvryRlZ0LofOCD4hCd080OMUAdqN xP4Oy9O4Pt/slQYwjsVxWZVTtaiUX9TKa3sXgX1TLIM2fzuxGEXxXhVyCGs3iJXZe3majN eAi+/saoFN14kj6XPHmg0ZE31I3G7MlL6MrT2y4a/6G9ph2dkW09lVKJRrdpKriOt5mgoG hHiselXAGt5OIhKuAikCwJbF7GSK+u+FIhEcMVbTDmIqgJsD+frKBxTXU8+zXgPQ3LcXIw ucfzk/1o+E3cVa6WQdo+x8mqxh2pfq6ZGU4BQGn2gs/1pkEfDhF4R5xYh8IC5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b="zGgNNX/j"; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712069787; h=from:from:sender:sender:reply-to: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=6HONjSmMWk3bUqWjxqhZwagOQSZNaH3StLpEHNHdIGA=; b=ObUpaKqa/rkWb9VrQtUwbcFUXdNelUSNC5KgMihFgXmVY90y9yQ45it2tviQE/fJN3LcT5 uQa1t9XqbjcMpp51KZtHxrX2fMScu1MtYYQ0jgLv4DLc4xA1ulI649Lm6Y2gO3loTOkTcT mH7RO/l3D/VWYUDMLUQcmrinqUWmlK6axnLn7zrE+e6WTqIQwTiwvPTKv6N3eH9ZoDurmm LQv4CsDlTwXF0SFg1M5s7ikxdaxpk0et2R8a4/2Fr/9AyGi77+rwVLlry3kOnJltYV24gW bOUJ+x3GJ/dhNoS0O8wdPmCyYBGaiwsNuSKFDPq5zNzXCI/dHt+R7fdOREnQ2w== 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 1670D2037F for ; Tue, 2 Apr 2024 16:56:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrfYS-0001js-HD; Tue, 02 Apr 2024 10:56:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrfYO-0001jS-Hd for guix-patches@gnu.org; Tue, 02 Apr 2024 10:56:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrfYO-0007nB-9P for guix-patches@gnu.org; Tue, 02 Apr 2024 10:56:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrfYR-0002tY-Nz for guix-patches@gnu.org; Tue, 02 Apr 2024 10:56:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70065] [PATCH 4/6] gnu: chez-scheme: Update to 10.0.0. Resent-From: Skyler Ferris Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 02 Apr 2024 14:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70065 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath , 70065@debbugs.gnu.org Cc: Katherine Cox-Buday , Liliana Marie Prikler , Andrew Tropin Received: via spool by 70065-submit@debbugs.gnu.org id=B70065.171206972510886 (code B ref 70065); Tue, 02 Apr 2024 14:56:03 +0000 Received: (at 70065) by debbugs.gnu.org; 2 Apr 2024 14:55:25 +0000 Received: from localhost ([127.0.0.1]:54940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrfXo-0002pW-LA for submit@debbugs.gnu.org; Tue, 02 Apr 2024 10:55:25 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:39619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrfXl-0002oc-4s for 70065@debbugs.gnu.org; Tue, 02 Apr 2024 10:55:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1712069710; x=1712328910; bh=6HONjSmMWk3bUqWjxqhZwagOQSZNaH3StLpEHNHdIGA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=zGgNNX/j/FReTlVXGgVeVWa15dAVoN5OomvCe1ayAiOv5Trl4aW7LRurukkzwT4sO MtW/sMJINmd3qInBhAk1Wpe/RikcZcSjZPve2/iFN1EB0JpVbOI/GXoxHxTbOWN/YC 4D14nlwKH4d7rxQSZ1H7un2JxZvpxx6FUIvFCBSJqgy8SPwzpNWGFrh6Ox0ASdSBOE +F75fkvPmYQSud0roy2f+8Pn71T9tR9D/vnjsgTXHIXPNVBc68a2CAmw3fj5UKzOpC X9beVmLYSQpuZ0t1xMx3CWq0r63aFfvAorrPzYoGjkzy97r+s13qql5qNNoAG2bohh YuT0XEkW3QUKQ== Date: Tue, 02 Apr 2024 14:55:04 +0000 Message-ID: <9c25eacc-4c7b-4b8d-99cf-4435301ae9f4@protonmail.com> In-Reply-To: <4cef86be-421e-4010-939b-5640764fcf3e@philipmcgrath.com> References: <1f2ac17f-8095-41b7-a0c3-db6487d74aea@protonmail.com> <4cef86be-421e-4010-939b-5640764fcf3e@philipmcgrath.com> Feedback-ID: 40635331:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-to: Skyler Ferris X-ACL-Warn: , Skyler Ferris via Guix-patches From: Skyler Ferris via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.35 X-Migadu-Queue-Id: 1670D2037F X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.35 X-TUID: OViQK0PYJ1qX On 3/31/24 13:17, Philip McGrath wrote: >> The loko.scm file was not recompiled so it searched chez.scm for a >> variable named chez-scheme-for-system, which is now a syntax >> transformer. But compiled files have already completed the expansion >> phase, so this means that a syntax transformer is invalid. This will not >> cause a problem for `guix pull` because guix rebuilds itself from >> scratch when it gets updated. >> > > On 3/31/24 10:35, Skyler Ferris wrote: > > I haven't worked with define-deprecated before. It's a macro, and I k= now > > that the guile compiler misses recompiling macro dependencies sometim= es, > > so maybe it was a problem on my end with having mismatching build > > artifacts. > > Very interesting! I hadn't realized that problem with dependency > tracking existed: it might explain some issues I've struggled to > reproduce in the past. It's also given me several surprises about > Guile's implementation of phases: for one thing, apparently > (define-syntax x 42) expands to (define x (make-syntax-transformer 'x > 'macro 42)). I wouldn't have expected a macro to create a value that > would exist at runtime. Exists yes, but it (should not be) used/referenced at runtime. I'm going=20 to type some more details in case you are interested, but an important=20 disclaimer is that my understanding comes from reading documentation on=20 an as-needed basis and doing some work writing macros, but not a lot. I=20 haven't worked with the code that actually implements these things. I'm not sure how other schemes implement this, but Guile has a clearly=20 defined separation between "compile time" and "load time". Compilation=20 is when syntax transformers are used to modify source expressions into=20 the expanded form (in addition to other things, like lowering to=20 intermediate representations). This is discussed in the documentation=20 for eval-when (1). If I define that macro and then use it within the=20 same file, the place where it is used will not contain a reference to=20 the syntax transformer: it will already be expanded. If I write a new=20 file tomorrow which wants to use that macro, Guile will reference the=20 compiled version of the module. If the syntax transformer was not=20 present in the compiled module then the new file would break. Instead,=20 the syntax transformer still exists in the compiled version of the file=20 so that the new module can load it at expansion time. But again, once=20 the new file is compiled the reference to the macro will disappear. So=20 it exists at runtime, but it is only used when compiling code. For=20 compiled files, it is not used at runtime. The exception is that when=20 code is evaluated at the REPL, or if auto-compilation is disabled, there=20 is no practical difference between compile time and load time. I'm not entirely sure why the compiler doesn't see the dependency here.=20 The section on compilation (2) says "Guile does not yet do proper=20 dependency tracking" so I assume that it just hasn't been high priority=20 enough for anyone to fix it. There would be trade-offs in some cases. In=20 this case it is pretty easy to see that the file needs to be recompiled=20 because loko.go (the compiled version of the file) contains an explicit=20 reference to the macro, because it used to be a procedure. But if it was=20 a macro both before and after the change the reference would not be=20 there. We could add the list of macros used during compilation as=20 metadata to the file but I don't know how much bloat that would cause.=20 We could also reference the use-module forms in the original source, but=20 I'm not sure if those are typically available in the go files or if that=20 would also need to be tracked as additional metadata. (1) https://www.gnu.org/software/guile/manual/html_node/Eval-When.html (2) https://www.gnu.org/software/guile/manual/html_node/Compilation.html