From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: stack calibration Date: Fri, 03 Apr 2009 10:44:09 -0700 Message-ID: References: <87d4bypwqv.fsf@arudy.ossau.uklinux.net> <87myb1nwc9.fsf@arudy.ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238781151 5326 80.91.229.12 (3 Apr 2009 17:52:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 17:52:31 +0000 (UTC) Cc: guile-devel To: Neil Jerram Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 03 19:53:49 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lpna9-00084I-1x for guile-devel@m.gmane.org; Fri, 03 Apr 2009 19:53:33 +0200 Original-Received: from localhost ([127.0.0.1]:60679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpnYl-0006Rd-CV for guile-devel@m.gmane.org; Fri, 03 Apr 2009 13:52:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LpnYW-0006HZ-Um for guile-devel@gnu.org; Fri, 03 Apr 2009 13:51:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LpnYS-0006Ec-Bj for guile-devel@gnu.org; Fri, 03 Apr 2009 13:51:52 -0400 Original-Received: from [199.232.76.173] (port=43269 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpnYS-0006EX-8x for guile-devel@gnu.org; Fri, 03 Apr 2009 13:51:48 -0400 Original-Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:41978 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LpnYR-0000ht-ME for guile-devel@gnu.org; Fri, 03 Apr 2009 13:51:47 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id DA94EB701; Fri, 3 Apr 2009 13:51:46 -0400 (EDT) Original-Received: from unquote (unknown [66.92.56.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 551B0B6FF; Fri, 3 Apr 2009 13:51:45 -0400 (EDT) In-Reply-To: <87myb1nwc9.fsf@arudy.ossau.uklinux.net> (Neil Jerram's message of "Tue, 31 Mar 2009 23:47:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Pobox-Relay-ID: 19CF0ED6-2078-11DE-83B1-781813508E2D-02397024!a-sasl-quonix.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8388 Archived-At: Hi Neil, On Tue 31 Mar 2009 15:47, Neil Jerram writes: > Andy Wingo writes: > >> #!/usr/bin/env guile -e .... >> >> but we all know the problem with that. > > Only one argument being portably supported? (I _think_ that's the > problem, but I'm not so sure that I don't want to check that that's > what you mean!) Heh, yes. Sorry, I should have been more clear. >> As far as needing the -e clause, it's so we can (use-modules (scripts >> compile)) in addition to being able to run it as a script. Not that I >> use that feature, but it is interesting. > > I don't use it either, and I don't think it's interesting enough to > justify the oddness of the incantation. I can't think of a scenario > where it really makes sense to have a module and main program combined > in the same file. If the module part isn't generally useful it > doesn't need to be written as a module. If the module is generally > useful, it should be given a place in the proper module tree (i.e. not > scripts/...), and the script file should (use-modules ...) it. I kindof agree. There's no need to have those scripts be executable files -- we can have them be modules instead. Then guile-tools can just use-module them, as you say. But they can probably stay in the scripts directory, so as to mark them as "runnable" -- so you can query "what scripts do I have installed?" But at least they can go into module/scripts/. I'll do that at some point if you have no objections. Cheers, Andy -- http://wingolog.org/