From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Fw: guile or scheme used to implement make or meson Date: Tue, 12 Sep 2023 12:39:04 +0000 (UTC) Message-ID: <1290928947.163356.1694522344634@mail.yahoo.com> References: <2061904033.101273.1694496696500@mail.yahoo.com> 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="31606"; mail-complaints-to="usenet@ciao.gmane.io" To: "guile-user@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Sep 12 14:40:30 2023 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 1qg2gv-000842-P9 for guile-user@m.gmane-mx.org; Tue, 12 Sep 2023 14:40:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qg2gV-0000Pn-Ou; Tue, 12 Sep 2023 08:40:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qg2gT-0000Ol-CU for guile-user@gnu.org; Tue, 12 Sep 2023 08:40:02 -0400 Original-Received: from sonic315-13.consmr.mail.bf2.yahoo.com ([74.6.134.123]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qg2gO-0007CC-Vy for guile-user@gnu.org; Tue, 12 Sep 2023 08:39:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694522394; bh=1o0I4JAr0dSTa89BomIo7paU/NG6IppkMyVMjTtwTtM=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=mj+U1zEpdBfZwRUkrWN3JrNIRaZzr2PzP4K3zEE+qxcAbc1oAZOzCzppSK7geoZtnl9wOJl5aV51qK93v5l21iYXBf7MfS/zxiY/a2Gisl1Wp4WuCC8IaBy8UkSJCuTqTLqQUWq8JHSsM5HkpyYwpzpH9axz9yJAkMajvYEUvB7Rm0H1s/arba254AL9tAAn7GE3JwwzqyOXrZNS2woCHIQ8ehIWJ9yj3JDQWoQ4MasV1tLppd92n6q3LK+JppCLVARtZqrgswtGY3Sns23sKO6tpeyI25aM6hjGYi9QArabtQ33kzLTPR/HvdQd8uDtDDTGmqN4QZaFmHegYq1KKQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694522394; bh=KO2BBlaYYP9w1Kn1b4OWimmemyryL31gdppXcbDxbJR=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=EiSkkz/j07TNYSXKbvVwFKVW9dHAZ0f9/FIMS4dCfnMWvou3YlL2AqMcFxOLqgy/YwD24PVjwX3M3BNJAjCaj+jApBFyEMm8o6qKLHjznQh24ZAz7CKwylACGl7FEi1k8IsGsnVtLsjlOxGk3E/DUc4R9XsmrZGz+JyxwekyB4vXgRd8Ng2UV+WGC2BHyzN38sCRrDw8mUZbI2qN1fO2fMu92iwtFFQzx+7J8DgTWSq+VpCBh++j+F+cdar59aCpFdYkYbWUcD0e8cncUDF4uS4gwMdoZLujnzcgqbzRq4+DrbiHuoUwE1br2DrJQs0SlBx93+x9flhBWfe6pl5Grw== X-YMail-OSG: 2kWHiecVM1kmrLYSO6YBHQIMa2byWDVvU86aHrz9O9yw7OJyhloWbMwSKhTPeEp OOVFu_uFCcxbokDzskevEPLHGZts6ywH2V9bJa7ZSdA.qkXKlAYEshYojfqQ7pWlHIqCFRPHMZX9 3YBxMsyLmN_uhymNmENm7JRtfwVBXSaSOVTG3t7EKheUh_5LICUg6MXFt9JByAd70DybaOhDm7Eg OXYiQ78wnIUBlwGiE2z0CI0oWR_EQIV1Jf4Irwf7ctIjCTTC8Ko7juIEWOYkvdSr.mo3SUmAfIEM kVjBX4wc6bJr9j4KXgOwKqHLjzDG_iO8dgPxOLTOc_GeeDZ16CzeR1ZFfO0JC2L_g9yTljOoikRe PCcNXkUPNEW1OJmy2mu05lS.8ApkzMboWDfFvHOc0ckEjBIHkXiRsdG5lL7p3fLyD14oQ0UMT1uF 3yTNqqugwQQeNj5XROGSMdqqCu8IXCTI1r5p6Yq6aXvkARrWYMJHgfQRqeuhy4FDZy70o_ioyjP. 36IY8fgyU3Kbe7zvk5GtRqPcIPRywe09DqY_pmlDOYF5atDvBOhzhNSOE3LMjbhBWkVT59wAvOUX 0NmNXjO1rYIb9RRhbB5c5EioFFRM.I39jurqUQnx2PUPnEbm3CZHXLFSd8E_caIbLo5R8CDI7A3N 5MW00fAr0yCSP_TkkdZHTeR53r7_uw0bBtmjTtnIgZifKe84XHx0nsrQOYu6yEAUuXc4hIwh3bVP k7_JlmJcUIfHd0ld2Wm0b8Ee.0cSdAUzpiGt88Cs5r3_Wg7wOyCIxgrLAc.M_medOYS9VnZ6gXMD WJUBPqGevxrBQGDQJFSp1CvS3l_6ECHy7PJn_L_z4l X-Sonic-MF: X-Sonic-ID: 789af757-c68a-462b-b26a-43a429e008c7 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Tue, 12 Sep 2023 12:39:54 +0000 In-Reply-To: <2061904033.101273.1694496696500@mail.yahoo.com> X-Mailer: WebService/1.1.21797 YMailNorrin Received-SPF: pass client-ip=74.6.134.123; envelope-from=spk121@yahoo.com; helo=sonic315-13.consmr.mail.bf2.yahoo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19183 Archived-At: (forwarding to guile-user because I forgot to reply-all) > Is using Guile, or a similar Scheme implementation, to re-implement > make or meson realistic? Andy- I did actually try to do a make in Guile once.=C2=A0 As it turns out, _make= _ as a language is rather harder than it looks, especially if you start trying to add in GNU extensions or BSD extensions to POSIX make. The language is a bit of a muddle: parsing any token depends on neighboring tokens in a non-trivial way.=C2=A0 Reimplementing GNU make might require transliterating a C make into scheme, rather than starting wi= th a formal grammar and filling in from there. However, it should be possible to do a strict POSIX make relatively easily. POSIX make largely relies on the shell for its expressive power. Starting f= rom a strict POSIX make and expanding upwards from there is a reasonable strategy. See pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html for what POSIX make does and does not do. While I never finished writing a make, I did make a build tool in Guile inspired by make.=C2=A0 But it is mostly a toy, and not actively maintained= . github.com/spk121/potato-make Regards, Mike Gran