From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#26583: 2.2.1 syntax objects are not comparable Date: Thu, 20 Apr 2017 22:52:59 +0200 Message-ID: <87pog6ls2c.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1492721652 7790 195.159.176.226 (20 Apr 2017 20:54:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2017 20:54:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: 26583@debbugs.gnu.org, wingo@igalia.com Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Apr 20 22:54:07 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1J5Z-0001s2-Sb for guile-bugs@m.gmane.org; Thu, 20 Apr 2017 22:54:05 +0200 Original-Received: from localhost ([::1]:55940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1J5f-0005Dj-QC for guile-bugs@m.gmane.org; Thu, 20 Apr 2017 16:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1J5Z-0005Dd-Or for bug-guile@gnu.org; Thu, 20 Apr 2017 16:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1J5W-0003PK-K4 for bug-guile@gnu.org; Thu, 20 Apr 2017 16:54:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32971) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1J5W-0003PE-GJ for bug-guile@gnu.org; Thu, 20 Apr 2017 16:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d1J5W-0000NS-A0 for bug-guile@gnu.org; Thu, 20 Apr 2017 16:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 20 Apr 2017 20:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26583 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org, Andy Wingo Original-Received: via spool by submit@debbugs.gnu.org id=B.14927216371436 (code B ref -1); Thu, 20 Apr 2017 20:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Apr 2017 20:53:57 +0000 Original-Received: from localhost ([127.0.0.1]:59403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1J5Q-0000N6-VM for submit@debbugs.gnu.org; Thu, 20 Apr 2017 16:53:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1J5P-0000Mq-6p for submit@debbugs.gnu.org; Thu, 20 Apr 2017 16:53:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1J5J-0003J2-6t for submit@debbugs.gnu.org; Thu, 20 Apr 2017 16:53:50 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43420) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d1J5J-0003Iw-4S for submit@debbugs.gnu.org; Thu, 20 Apr 2017 16:53:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1J5I-0005DQ-6p for bug-guile@gnu.org; Thu, 20 Apr 2017 16:53:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1J5F-0003HI-1J for bug-guile@gnu.org; Thu, 20 Apr 2017 16:53:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1J4Y-00030X-A5; Thu, 20 Apr 2017 16:53:02 -0400 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]:34902 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d1J4X-0006ec-MH; Thu, 20 Apr 2017 16:53:02 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?UTF-8?Q?Flor=C3=A9al?= an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8774 Archived-At: Hello, The =E2=80=9Cnew=E2=80=9D syntax objects in 2.2.1 cannot be compared with = =E2=80=98equal?=E2=80=99, unlike the =E2=80=9Cold=E2=80=9D ones, which were just vectors. It=E2=80=99s easy to fix in libguile, but was it intended? If not, I=E2=80= =99ll happily send a patch. Of course syntax objects were never officially comparable, but it turns out that the =E2=80=98gexp=E2=80=99 macro in (guix gexp) relies on that whe= n it rewrites the syntax tree. I tried to see if we could implement this macro differently, without doing an explicit tree traversal, possibly using syntax parameters for =E2=80=98ungexp=E2=80=99 & co. However, the difficulty is that the job of = this macro cannot be done in a single pass AFAICS. Thoughts? Ludo=E2=80=99.