From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Schierl Newsgroups: gmane.lisp.guile.user,gmane.comp.gnu.guix.devel Subject: Re: [bootstrappable] Re: Can Guile be bootstrapped from source without psyntax-pp.scm? Date: Sun, 14 Mar 2021 15:18:13 +0100 Message-ID: <41f000ed-1ca3-3b94-0358-ee4ce6ba99a0@gmx.de> References: <87tupdg7nr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9056"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0 Cc: guix-devel@gnu.org, guile-user@gnu.org, bootstrappable@freelists.org To: Jan Nieuwenhuizen Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Mar 14 15:18:33 2021 Return-path: Envelope-to: guile-user@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 1lLRZg-0002FB-Ov for guile-user@m.gmane-mx.org; Sun, 14 Mar 2021 15:18:32 +0100 Original-Received: from localhost ([::1]:45594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLRZf-0007i5-Jo for guile-user@m.gmane-mx.org; Sun, 14 Mar 2021 10:18:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLRZU-0007gM-SF; Sun, 14 Mar 2021 10:18:20 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:57381) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLRZT-0006et-0p; Sun, 14 Mar 2021 10:18:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1615731494; bh=jhNk+5Srj2+n0Qkt9XSH9a0qlFnwVa5CgYjj50jO0eg=; h=X-UI-Sender-Class:To:Cc:References:From:Subject:Date:In-Reply-To; b=A3FeXc8Ag6+hhxml9XZw9S8BxAg/IU6dMo0r+i5egaRdufKjffEhYp8fnnIUmd+CH 9Mk9KKgmpb1MKcNyDIUpkv57hjhToKzDhziF162B5nSSVugEAz4a9TibnUS/wDSs9M a9kNfkDjjH/3iwX1oVMv8etrjwomP40mrOQ/3iVk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.178.23] ([84.130.57.43]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MTAFh-1l9AIz0NP5-00UY5c; Sun, 14 Mar 2021 15:18:14 +0100 In-Reply-To: <87tupdg7nr.fsf@gnu.org> Content-Language: de-DE X-Provags-ID: V03:K1:iWenWzxnp9ZxXyze2IWoTEBdttugUMQOTks8XwJ5udbCiQEEivj rel7s86tfqpbgf96BL6J+mt2G/2YAjTRhUIufRA5UXby/VU+W+glHSZaIJr/R7Tj1h3BxsN WhWJvtCK2tuMYhD3opKGXAdMqt11Ib/OG0VDKqSH8S9jLiD+y3H4QyIrB2fanlkz/aBf85y dvLgOzB2hCo9N6p8zJcVg== X-UI-Out-Filterresults: notjunk:1;V03:K0:gz1H1fSVGD0=:lclhfVrHJ97sgiJ8M+ud/x tP7zA2tMDu9sqpmZGPTtlq0LFbAqN7EiXFD/ZQtFfCha9eRqihjCVMr+NnKneyUknEHtFMf32 Fce9GUbJ+b67BeEqZg8v6coZFe2nfaiVD7qkeFqtdLbTgawk1YE/nQjZJWbQNs1WNKK5i7Wae t0/Ccnj0FCNMkwahvM1zRQnMRdDSE6X12Dw8OmE7i2dnWoadyLRVy1GqFwMjslhi8vPvjlRqT q/C613F13lVFUw6RJ3szCe2dRfcPHF2gXTs/RNjWtgxbr0Tj/rjFTiycUOw6pMzsgBb8Mbgxa /eUDWF4bnOuygYvm++xpoCUQ/cIjtZS7C0pQTqsa4cbR42qFxFagUtVWe4Jfis621jqgnJpEw A4ZtEZBJBXEBDzji6HVUkaQLU936Tp1NiXWjQDO/wLDjfTPSixmTsF8//8xtsJMBiWvyuXqR2 LKVmRwA0pTnaYu3pT9yTlnI6LJqNRwfeDkTqBBpfB3qvgenYYSaiI1uF0XZKcQChuV4Mqf/Fh gPw3OnzhFlGX0qZn3uhOkeUxg+5bH8eb2dE6pu7yxj6B6DSLxTt31PbxcL0TAeaCZZ/s8EM+u uyY4VdXSVhwGJvNqK+USXxOagdtditTPyuuXEUzBNIK781VCVovbf5hUM1M4BPoxeiC4iQgF/ uZoC8Hx9GGZA4TnPcSfokzFbpkDAYSk+qeeDRjTO11b4uX63LAbcMMeo6AXPdJ3ergJVOgr2+ f48+FisRWirqOqOcrV4wgV/LvFK9dOEwUfchz4LxXUIeLu2acsguvnqaNoysyK+gEY+gdzvr Received-SPF: pass client-ip=212.227.15.19; envelope-from=schierlm@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17361 gmane.comp.gnu.guix.devel:57853 Archived-At: Hello Jan, Am 14.03.2021 um 14:57 schrieb Jan Nieuwenhuizen: > Michael Schierl writes: > > Hello, > >> For the record, I have written a psyntax implementation that can be use= d >> by Guile (3.0.2) and does not require an expanded version of itself. > > Oh, that's amazing! I see that you are using make-syntax-transformer > (and others) which GNU Mes does not support yet; it only has > define-macro. This may be a good reason/opportunity to work towards > better Guile support in Mes. In fact, I use make-syntax-transformer only because Guile does not have native define-macro support (it uses psyntax to emulate it). When there is native define-macro support, you can replace step1.scm by (define s1*-define-macro define-macro) (define-macro (s1*-expand-with-side-effects seff1 body seff2) (list '(lambda (a b . c) (apply values b)) seff1 (list 'call-with-values (list 'lambda '() body) '(lambda rest rest)) seff2)) which will make the bootstrap even shorter. Probably you should validate whether the evaluation order is right so that s1*-expand-with-side-effects will really expand the side effect 1 before the body and side effect 2 after the body (there is an example in psyntax-bootstrapping.scm line 76 which should display 1 2 3 and return 42= ). You can skip step 2 as well, as you already have a quasiquote expander that does not rely on psyntex. The further steps up to step 7 will not use make-syntax-transformer, it will come back in step 8 (patched psyntax.scm). But probably for step 8 you would have to patch your own psyntax.scm instead of patching guile's version anyway. Regards, Michael