From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.comp.gnu.guix.devel,gmane.lisp.guile.user Subject: Re: [bootstrappable] Re: Can Guile be bootstrapped from source without psyntax-pp.scm? Date: Mon, 15 Mar 2021 18:09:48 +0100 Message-ID: <87zgz4cpib.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1893"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: guix-devel@gnu.org, guile-user@gnu.org, bootstrappable@freelists.org To: Michael Schierl Original-X-From: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Mon Mar 15 18:21:03 2021 Return-path: Envelope-to: gcggd-guix-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lLqtq-0000LJ-NP for gcggd-guix-devel@m.gmane-mx.org; Mon, 15 Mar 2021 18:21:02 +0100 Original-Received: from localhost ([::1]:58886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLqtp-0004PN-ON for gcggd-guix-devel@m.gmane-mx.org; Mon, 15 Mar 2021 13:21:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLqj2-0004tb-A5; Mon, 15 Mar 2021 13:09:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47210) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLqj0-0003Bq-IC; Mon, 15 Mar 2021 13:09:51 -0400 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=46576 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lLqiz-0004zX-Nk; Mon, 15 Mar 2021 13:09:50 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 =?utf-8?Q?Vent=C3=B4se?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=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-pc-linux-gnu In-Reply-To: (Michael Schierl's message of "Sat, 13 Mar 2021 23:42:05 +0100") X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Original-Sender: "Guix-devel" Xref: news.gmane.io gmane.comp.gnu.guix.devel:57885 gmane.lisp.guile.user:17363 Archived-At: Hi Michael, Michael Schierl skribis: > For the record, I have written a psyntax implementation that can be used > by Guile (3.0.2) and does not require an expanded version of itself. It > is not ideal (not fully hygienic and does not support with-ellipsis), > but it works well enough to bootstrap a slightly patched version of > psyntax.scm, which then can be used to bootstrap "the real thing" and > then regenerate psyntax-pp.scm (resulting in a bit-for-bit identical > version if you run the bootstrap on 64-bit Linux). > > The project is at > . > > It may still contain some unnecessary code, and the patch for the > patched vesion is definitely not minimal, but for now I'm glad that it > works. Woow, this is great news! I think it would be great towards importing it in Guile proper. To do that, I think we should first get Andy=E2=80=99s opinion on the appro= ach. Then you could try to integrate the files into the Guile repo and adjust the makefile machinery so that it uses this code to generate the initial psyntax-pp.scm. There may be additional things to look at, such as performance when building from scratch. We could still include the generated psyntax-pp.scm in the tarball, like we do for some .go files, for those who want a faster Guile build and are willing to make this tradeoff. Thanks! Ludo=E2=80=99.