From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marc Chantreux Newsgroups: gmane.lisp.guile.user Subject: Re: Is it possible to write program only in Guile? Date: Wed, 18 Oct 2023 15:32:20 +0200 Message-ID: References: <87fs289iu6.fsf@laura> 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="29470"; mail-complaints-to="usenet@ciao.gmane.io" Cc: CToID , guile-user@gnu.org To: Olivier Dion Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Oct 18 15:35:27 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 1qt6hr-0007Ke-4Y for guile-user@m.gmane-mx.org; Wed, 18 Oct 2023 15:35:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qt6h0-0001o6-Md; Wed, 18 Oct 2023 09:34:37 -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 1qt6gY-0001i6-2i for guile-user@gnu.org; Wed, 18 Oct 2023 09:34:07 -0400 Original-Received: from smtpout01-ext2.partage.renater.fr ([194.254.240.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qt6gU-0005Dt-SV for guile-user@gnu.org; Wed, 18 Oct 2023 09:34:05 -0400 Original-Received: from zmtaauth03.partage.renater.fr (zmtaauth03.partage.renater.fr [194.254.240.26]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id 70624661DB; Wed, 18 Oct 2023 15:33:53 +0200 (CEST) Original-Received: from zmtaauth03.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPS id 456AC80046; Wed, 18 Oct 2023 15:32:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id 3178A801B7; Wed, 18 Oct 2023 15:32:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth03.partage.renater.fr 3178A801B7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1697635940; bh=XF1oG0lMTSQLRg0rT+B26IoiwDMJ+xgOBWWyqj8Ame8=; h=Date:From:To:Message-ID:MIME-Version; b=tmCo7LbaS5M842RLhEqEbea7QJgDi3UOcflNN2ZsGdWteXwRZCtEP0j79ENViC0bH rcL9xfCRjYMuOGuSH3ZhGtXv5kToOH0de47cOWjYgAW2SOtZmwAqXOFn7TOX29Tbap VpbJzDPkBbxc2qFE4XTaR8d0l+lL81gXERFwAXESjs4DvUz2Xb7TCLf4ePf5ObWdyu 81XlFnEph3VJ0TgH/7+WWyx+hYMqcVeEXYyM1c1Nvpi62XgNLUNAvbas0+FqoHdJhC aRXm9VPDWykAXriQHS89obWUSnUAyktBPAUOqTCSLGVN0teIbSDz3soNPYjw+oobUN qE17VEEuDTFtw== Original-Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavis, port 10026) with ESMTP id qn0Cg-228HZP; Wed, 18 Oct 2023 15:32:20 +0200 (CEST) Original-Received: from 130.79.203.100 (unknown [194.254.241.250]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPA id E9E2780046; Wed, 18 Oct 2023 15:32:19 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87fs289iu6.fsf@laura> X-Virus-Scanned: clamav-milter 0.103.8 at clamav04 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -100 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeeggdeigecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucftgffptefvgfftnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomhepofgrrhgtucevhhgrnhhtrhgvuhiguceomhgtsehunhhishhtrhgrrdhfrheqnecuggftrfgrthhtvghrnhepjeehjedutedtheegkeekffejfffhfeegleetteeltdefheetuddvkedvjedtffeunecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeduleegrddvheegrddvgedurddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdehtddphhgvlhhopedufedtrdejledrvddtfedruddttddpmhgrihhlfhhrohhmpeforghrtgcuvehhrghnthhrvghugicuoehmtgesuhhnihhsthhrrgdrfhhrqedpnhgspghrtghpthhtohepfedprhgtphhtthhopeholhhivhhivghrrdguihhonhesphholhihmhhtlhdrtggrpdhrtghpthhtohepfhhunh hkgeegfeeshigrnhguvgigrdgtohhmpdhrtghpthhtohepghhuihhlvgdquhhsvghrsehgnhhurdhorhhg Received-SPF: pass client-ip=194.254.240.33; envelope-from=mc@unistra.fr; helo=smtpout01-ext2.partage.renater.fr X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 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, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:19274 Archived-At: hi, I don't get the difference between this > 2. The program is written in Guile. It can access C routines with the > foreign function interface (FFI). =E2=80=A6 and this: > There is a third way that I personally use. I use the FFI to make > bindings of the public interface of a low-level C library I work on. i choose the strategy 2 using the shebang described here https://www.gnu.org/software/guile/manual/html_node/Running-Guile-Scripts= .html the only annoyance I have occurs the first time a user runs the script: he gets this message ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. would be nice to have a flag to handle it the other way #!/usr/local/bin/guile -s --silent-auto-compilation !# Did I miss something? regards, marc