From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ADiJNAuaTmD1YQAA0tVLHw (envelope-from ) for ; Sun, 14 Mar 2021 23:19:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eMUeMAuaTmDGSwAAbx9fmQ (envelope-from ) for ; Sun, 14 Mar 2021 23:19:39 +0000 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 4FA0D275A9 for ; Mon, 15 Mar 2021 00:19:39 +0100 (CET) Received: from localhost ([::1]:33456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLa1K-0003gQ-Eh for larch@yhetil.org; Sun, 14 Mar 2021 19:19:38 -0400 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 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 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 To: Jan Nieuwenhuizen References: <87tupdg7nr.fsf@gnu.org> From: Michael Schierl Subject: Re: [bootstrappable] Re: Can Guile be bootstrapped from source without psyntax-pp.scm? Message-ID: <41f000ed-1ca3-3b94-0358-ee4ce6ba99a0@gmx.de> Date: Sun, 14 Mar 2021 15:18:13 +0100 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 MIME-Version: 1.0 In-Reply-To: <87tupdg7nr.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: quoted-printable 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+gdzvrD A8/mV5cwpdWKl4FZdBQfDBeSmDGGFdlcCuMPP6z4edYeB/5QQvravu4D854N7q/P1p/Q1cPOd I8MTKR+ZkUK3iZo4VT3A== 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-Mailman-Approved-At: Sun, 14 Mar 2021 19:18:46 -0400 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: , Cc: guix-devel@gnu.org, guile-user@gnu.org, bootstrappable@freelists.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615763979; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AqqoZpZ0j5krnMccXjjGb1NOwUjODH6b6pCLkFwPKUU=; b=SD5HZq/N3JFst3SkcugP5VlSNbbPAMXnr4n+pLx1XCwXdKPMbEgirp82L1QPq5PI2i5kxz sAnnBj4cYXbyDTWqgKS+Wnq6zI6Tv4i7+ts/UiWpb17WrGCaCNVJ0HGI9pZ1HjVzB8XmZ4 z6HWpy4hJ3pUlILyJYw6WNNdLCr0/HnBacFqoCCVKo6yWfhKv9czLWX3ttgRjlGseik+Oh zQU/aR1C4ZboYJy3LrYqQJ9FzqYyf1K7JShSrCucYRf7zyPWC7VAFU9agzYew1TL9lhdhq EWO7vN09VYqv16ZzVTLwoksYCrgyJQjfEhqEwpDwQsmd6W3xLQFRXPK/b9yJww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615763979; a=rsa-sha256; cv=none; b=gnyZzoK/twZ5IoHVqqmjljay+tuZ5g6Dv5QzDlN4nP95mKBRrKEzaHlZnqF69D/h0Ug0vG wCG7ez37yscsJ518hw8CYIw9eTJPEmyCPe7ZsSd5YjYYa/rteMW/8DBEhrtLuPSTxVTqt3 QM1uikBA1h0egUOUhMmJTBnTdFzAYLVeGRrrKAzI0CGPxbVxggpxAfzVt/9FFlK+NU+U5c rkV45DtG9QkAYJ3sd4rCPKLO+RKYzjFs5hgdGm6DXSVF7yUG5UGuovgNMJZp6NK3nXRXKW ylfO1zaFq5UOFvUng5t8CFVz0RuaoLcFISsCLJi//dci17TaigPsIrPFTt0Suw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=A3FeXc8A; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.de (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -0.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=A3FeXc8A; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.de (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 4FA0D275A9 X-Spam-Score: -0.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: x+HuiJ23YX0w 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