From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: proposal: enhance and rename guile-tools Date: Mon, 21 Mar 2011 14:10:00 +0000 Message-ID: References: <87ipvdqt69.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300728176 14905 80.91.229.12 (21 Mar 2011 17:22:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 17:22:56 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Mar 21 18:22:52 2011 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.69) (envelope-from ) id 1Q1ioc-0001zW-Mt for guile-devel@m.gmane.org; Mon, 21 Mar 2011 18:22:51 +0100 Original-Received: from localhost ([127.0.0.1]:55037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1iob-0007MY-8f for guile-devel@m.gmane.org; Mon, 21 Mar 2011 13:22:49 -0400 Original-Received: from [140.186.70.92] (port=58428 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1fo3-0003fL-Q3 for guile-devel@gnu.org; Mon, 21 Mar 2011 10:10:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1fo2-0003LY-2A for guile-devel@gnu.org; Mon, 21 Mar 2011 10:10:03 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:58258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1fo1-0003Jt-VL for guile-devel@gnu.org; Mon, 21 Mar 2011 10:10:02 -0400 Original-Received: by qwa26 with SMTP id 26so5290845qwa.0 for ; Mon, 21 Mar 2011 07:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/3c3M9Upo+jx0E4n2KWATHlLg3TnLQSQtema00w57hI=; b=Jb3MOhhq/qbHTC3TBIU1pLzloyg3jxxGtSCPfMaCOnuLP84O+lHFVEX5NBojMoANJa giABIMzZeySjnyUZatmnMrzBEtJ0ZiZzlbyE3MZY7OFV+DZFQ4EuVw4H3CXjVHErzl7v dq3496TH2Xgt7wQgMvuh3DupStDlyCQtK5V1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=YBMQNQV5AoTMpEkxE7ZIqBEWL8juEEADCEhcS56SnLN3ht3/WHO03+rtqI2bMwfhsB +x9ODS+9AZMZ7xcQmjg3mUROKnoEKXS0auWDx9mADQcl1oyQy1uG2m5MzdTcxcn1iNAa O5ZMBiDqaiRE0GidvWtkqops/wobUn6t8EkaQ= Original-Received: by 10.229.135.14 with SMTP id l14mr3253737qct.93.1300716600470; Mon, 21 Mar 2011 07:10:00 -0700 (PDT) Original-Received: by 10.229.228.147 with HTTP; Mon, 21 Mar 2011 07:10:00 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 X-Mailman-Approved-At: Mon, 21 Mar 2011 13:21:55 -0400 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:11944 Archived-At: On 21 March 2011 12:16, Barry Fishman wrote: > Andy Wingo writes: > >> On Mon 21 Mar 2011 00:16, ludo@gnu.org (Ludovic Court=E8s) writes: >>> FWIW I=92m happy with the verbose name and I fear the joke wouldn=92t b= e to >>> everyone=92s taste. =A0I=92d also be happy with a shorter name, though. >> >> OK. =A0Anyone have any other good short names? I wouldn't normally reply from work, but I'd like to stick an oar in while the discussion's hot... I rather like `guile' :-) Seriously, in the mainline case where guile-tools executes a script, it boils down to just: (exit (apply (module-ref (resolve-module (list 'scripts (string->symbol s)) #:ensure #f) 'main) (cdr args))) I don't think we need a 198 line script to do that, and I think it would be good for the main guile executable to have this function, i.e. "apply a named procedure, from a module that can be found in the load path, to the remaining command line args". Regarding the other 190 or so lines currently in guile-tools - I'm sure they have some value, but I don't see why their domain should be limited to the code in scripts/*. This could evolve into a more general tool for extracting and presenting meta-information about Guile modules. Regards, Neil PS. Re "guido" I had a similar response as Ludo - I think that would be perceived by many people as a bit odd.