From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Dr. Arne Babenhauserheide" Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] add language/wisp to Guile? Date: Thu, 23 Feb 2023 09:51:55 +0100 Message-ID: <87pma0g3jo.fsf@web.de> References: <87h6w2fkz8.fsf@web.de> <877cwxe4ar.fsf@web.de> <2f7d015d-ceb4-ef8f-b4fe-b69e39b723f8@telenet.be> <87357ldqaq.fsf@web.de> <1a70460e-11fb-9f5d-0d5f-1eb507d5af0d@telenet.be> <87ilg4j65e.fsf@web.de> <87edqsj5vt.fsf@web.de> <01212259-37dd-5d67-7bbc-101e01d96d01@telenet.be> <1a6c8dda-0124-124c-f932-937a11386ced@gmail.com> <87fsb5i912.fsf@web.de> <08c725bd-84d4-4df9-a18c-6ee55d00634f@app.fastmail.com> <233c40bd-6d5f-dec5-aa4e-c35dd8811df3@telenet.be> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31956"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.13; emacs 28.1 Cc: Philip McGrath , guile-devel@gnu.org To: Maxime Devos Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Thu Feb 23 10:01:02 2023 Return-path: Envelope-to: guile-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 1pV7TJ-00087q-VJ for guile-devel@m.gmane-mx.org; Thu, 23 Feb 2023 10:01:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pV7Su-0007vA-6z; Thu, 23 Feb 2023 04:00:36 -0500 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 1pV7Sr-0007u2-MZ for guile-devel@gnu.org; Thu, 23 Feb 2023 04:00:33 -0500 Original-Received: from mout.web.de ([212.227.15.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pV7Sh-0000Hn-R9 for guile-devel@gnu.org; Thu, 23 Feb 2023 04:00:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1677142799; i=arne_bab@web.de; bh=LaAvq+K5fE8s+FRFD7Vba4wIvODeDuliy7oinZK58Mc=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=a5+oDcCCqQb1XQ652FatBm+veo80EflOC/rup5JqNsL26EkZkCV7Acb7bN7eY0YwC hVuNvvu/fcXgBssAVhLkUrQFfg40Tl3dXiB2ols50Nq3+J6gN9I5yJ5ZHuFJrSfcqt NO8XwmTq93z4PQP6xTlOXWR8+wCmGnAPtAbe6f8MChjN9Dsmhppi9ShcKrO7VIzx3F SuheNlurjYIupySjn56bEHLYHGtyGJP9qpMNcomtLBezXgcVflfrvpIJrHp0ADkaG/ to1PXzy3qW+pwQNvotm0ylPortuQ6f9L67itP7HXzUyw0bCqe8fq8axhww0sdm98b/ txD9tIQZwX7lA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from fluss ([84.149.95.143]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MbTLB-1oxyUg2teD-00bvhu; Thu, 23 Feb 2023 09:59:59 +0100 In-reply-to: <233c40bd-6d5f-dec5-aa4e-c35dd8811df3@telenet.be> X-Provags-ID: V03:K1:aPbyu86tro5MElifNSJKEj/pfZnzvhMAtMFTZaD+N5UwqTl13P4 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_bab@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21723 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Maxime Devos writes: >> =E2=80=98#! ... !#=E2=80=99 comments aren't legacy; they exist to allow = putting the >> shebang in the first line of a script, and to pass additional >> arguments to the Guile interpreter (see: (guile)The Top of a Script >> File) (*). This is awesome, by the way. It=E2=80=99s what allowed me to write wisp scripts that just work without h= aving wisp shipped by starting as bash script, pre-compiling the language files, and then exec'ing guile with the right arguments that interprets the file as module and runs the code inside. >> Furthermore, according to the kernel, #!r6rs would mean that the >> script needs to be interpreted by a program named 'r6rs', but >> 'guile' is named 'guile', not 'r6rs'. (I assume this is in POSIX >> somewhere, though I couldn't find it.) We could fix that by installing a binary named r6rs. > Thinking a bit more about it, it should be possible to special-case > Guile's interpretation of "#!" such that "#!r6rs" doesn't require a > closing "!#". (Technically backwards-incompatible, but I don't think > people are writing #!r6rs ...!# in the wild.) Do you need the closing !# if you restrict yourself to the first line? > Still doesn't really address the problem though, as Scheme scripts (or > scripts in another language) may need to start with a shebang and > "#!lang" or "#lang" is not a valid comment in all languages. (E.g., I > don't think it's valid Pascal, though I only have read some Pascal > code, I haven't looked at the specification.) I think itmust be ignored in all languages that work as scripts in POSIX. So I would expect that support for ignoring #!... in the first line is very widespread. Also since the language implementation is in Guile, this could simply be added for Guile. That may prevent using this file from other implementations of the language, but it should work well enough as a first step. Best wishes, Arne =2D-=20 Unpolitisch sein hei=C3=9Ft politisch sein, ohne es zu merken. draketo.de --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmP3Kw4QHGFybmVfYmFi QHdlYi5kZQAKCRAT741FJAPD61HAD/9jeHuTpTUaeBUdvRtiYhkpLv7y7nMqSl+O +mvFkKJ439zm8zbXOf6lqRU29An6YkFPzZm0kCHCpQlTaTPlQfKW4JqMkmQECedO LsF/RPHf8jaipRbu0j/O4sEUPFj1kQk9SxtAI0TYzrGsHOVmwmR7sMcXpUuSuV/u zBb0SiX14XJfiBOPOIeB3/P7jw3oAi1oFZZ5Cs4yQoX9wZJeZlq/cxt9u5tSJjZn t1hrbVK6zX0pUAeh9vxznT8y2jVxRipokrDvi+QwfFSO90mftl5urbuIVdV9LAgl FG/fQPepvvF+6WdbPcav/x5KGpEoV0qkJ8F9T7wAXOZ/Uz6F1vgEPpEAS5+6Do2y QMUyTLJ8Pjfn7aPepO7oWiPRTha0xKhIHZEsKKvGOogxSPBnC+Qmt/wtMiOddyYM i1Kizh9mx4VOWajz134Xi/1jn+KnAkhzkrw92mjVqs+GjUUpnZpG1XX0lg2TC+T/ eDqC/7rwk9KdJ42Mnh+1h6uAZo6VNrJh4UzRfNp+z0NJq8E9YsCrPiO0iOL9DRgx HcLq0NMRjq6eWidRH/lwI76+qIu/jc2IYoa+D91Ie3UW2QGKcc0vhYluHtLgU16L qPnC1bAlg/GXQSdsl8axoyzYRz5GYie5eE/FHM11Wg9fusGZ7kRgguwsQYVVG4sk U8wL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