unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Michael Schierl <schierlm@gmx.de>
Cc: guix-devel@gnu.org, guile-user@gnu.org, bootstrappable@freelists.org
Subject: Re: [bootstrappable] Re: Can Guile be bootstrapped from source without psyntax-pp.scm?
Date: Mon, 15 Mar 2021 18:09:48 +0100	[thread overview]
Message-ID: <87zgz4cpib.fsf@gnu.org> (raw)
In-Reply-To: <fd22b8a3-6089-994c-f22a-33159a91d825@gmx.de> (Michael Schierl's message of "Sat, 13 Mar 2021 23:42:05 +0100")

Hi Michael,

Michael Schierl <schierlm@gmx.de> 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
> <https://github.com/schierlm/guile-psyntax-bootstrapping/>.
>
> 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’s opinion on the approach.
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’.



  parent reply	other threads:[~2021-03-15 17:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-13 22:42 Can Guile be bootstrapped from source without psyntax-pp.scm? Michael Schierl
2021-03-14 13:57 ` [bootstrappable] " Jan Nieuwenhuizen
2021-03-14 14:18   ` Michael Schierl
2021-03-15 17:09 ` Ludovic Courtès [this message]
2021-03-15 19:50   ` Michael Schierl
2021-03-16  8:59     ` Andy Wingo
2021-05-13 20:22       ` Michael Schierl
2021-03-17 17:25     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zgz4cpib.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bootstrappable@freelists.org \
    --cc=guile-user@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=schierlm@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).