From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add ".guile.sls" and ".sls" to the default %load-extensions Date: Thu, 08 Nov 2012 23:41:43 +0100 Message-ID: <87ehk3vhso.fsf@delenn.home.rotty.xx.vu> References: <87fw4qgi1i.fsf@tines.lan> <87k3u16rak.fsf@gnu.org> <87k3u1knqn.fsf@delenn.lan> <87bofd6j24.fsf@gnu.org> <87k3u0kiny.fsf@delenn.lan> <87pq3s9j2b.fsf@gnu.org> <874nl3epxw.fsf@tines.lan> <87liefsqe0.fsf@gnu.org> <87mwyvcnsc.fsf@tines.lan> <87zk2tkvhx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352414525 13893 80.91.229.3 (8 Nov 2012 22:42:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2012 22:42:05 +0000 (UTC) Cc: Mark H Weaver , guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Nov 08 23:42:11 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TWanW-00051z-Lm for guile-devel@m.gmane.org; Thu, 08 Nov 2012 23:42:06 +0100 Original-Received: from localhost ([::1]:41324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWanN-0006au-DT for guile-devel@m.gmane.org; Thu, 08 Nov 2012 17:41:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWanJ-0006ah-PY for guile-devel@gnu.org; Thu, 08 Nov 2012 17:41:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWanH-0004oA-1W for guile-devel@gnu.org; Thu, 08 Nov 2012 17:41:53 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:34552) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TWanG-0004nd-Nv for guile-devel@gnu.org; Thu, 08 Nov 2012 17:41:50 -0500 Original-Received: (qmail invoked by alias); 08 Nov 2012 22:41:49 -0000 Original-Received: from 85-127-112-13.dynamic.xdsl-line.inode.at (EHLO cubox.home.rotty.xx.vu) [85.127.112.13] by mail.gmx.net (mp039) with SMTP; 08 Nov 2012 23:41:49 +0100 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX197k0EIsMx70whfZ0Ea4BX178Xz6EKR0OUC6xsFti Yhe55aYTOBDN9E Original-Received: from delenn.lan (unknown [192.168.2.11]) by cubox.home.rotty.xx.vu (Postfix) with ESMTP id D3A1A160093; Thu, 8 Nov 2012 23:41:43 +0100 (CET) Original-Received: by delenn.lan (Postfix, from userid 1000) id C6EAD325420; Thu, 8 Nov 2012 23:41:43 +0100 (CET) In-Reply-To: <87zk2tkvhx.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 07 Nov 2012 21:28:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.165.64.23 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15130 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi! > > Mark H Weaver skribis: > >> One option would be to return to Aubrey Jaffer's model (used in SCM), >> where a catalog of modules and their locations is maintained > > Hmm, I never really liked that. And it=E2=80=99s quite an uncommon model. > >>> (I=E2=80=99m not sure if searching for a file name with no extension is >>> intentional. Ideas?) >> >> I looked into this. Guile has searched for file names with no extension >> since its initial import into VCS in 1996 (0f2d19dd). Initially, names >> with no extension were searched _before_ *.scm, and this logic was >> hard-coded into the search procedure (try-module-autoload in >> boot-9.scm). Jim Blandy introduced the '%load-extensions' variable with >> default value ("" ".scm") later in 1996 (26544b96), and Mikael Djurfeldt >> reversed the order to (".scm" "") in 1999 (0a74e31d). It has been that >> way ever since. > > Woow, thanks for digging it up. Now we should find out what these guys > had in mind *before* Guile was first put under version control. ;-) > > Anyway, I still don=E2=80=99t know what to do with .sls. But the fact th= at R7 > may come up with its own extension makes me think that maybe we should > just forget about that extension, as everyone will eventually do. Hmm? > Putting my dorodango hat on, Guile currently provides all mechanisms to make use of the .sls convention. A potential --r6rs option seems like a misnomer to me, due that it would implement an informal convention, not something really specified in R6RS. If such an option (maybe under another name) would be added, it would be effectively just an abbreviation for the right -x command-line options. Thus it is insignificant to dorodango, since it has to install a launcher shell script for each program anyway, and whether that shell script can become a few characters shorter doesn't matter. What is (relatedly) *indeed* lacking is a way to make native libraries take precedence to the third-party libraries installed by dorodango. This would be addressed by making the $GUILE_LOAD_PATH (and $GUILE_LOAD_COMPILED_PATH) mechanism to not only prepend, but also append to the compiled-in load path, as implemented by the patch I posted [0]. [0] http://lists.gnu.org/archive/html/guile-devel/2012-11/msg00056.html --=20 Andreas Rottmann --