From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.devel Subject: Re: guile-vm .go files in GUILE_LOAD_PATH Date: Thu, 18 Sep 2008 16:49:45 -0400 Message-ID: <18730150.2888471221770986002.JavaMail.root@cdptpa-web08-z02> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221771035 14271 80.91.229.12 (18 Sep 2008 20:50:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2008 20:50:35 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Sep 18 22:51:32 2008 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 1KgQSl-0005Ko-GI for guile-devel@m.gmane.org; Thu, 18 Sep 2008 22:50:55 +0200 Original-Received: from localhost ([127.0.0.1]:42418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgQRj-0000wp-7N for guile-devel@m.gmane.org; Thu, 18 Sep 2008 16:49:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgQRf-0000wi-R2 for guile-devel@gnu.org; Thu, 18 Sep 2008 16:49:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgQRf-0000wU-3R for guile-devel@gnu.org; Thu, 18 Sep 2008 16:49:47 -0400 Original-Received: from [199.232.76.173] (port=33537 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgQRf-0000wR-01 for guile-devel@gnu.org; Thu, 18 Sep 2008 16:49:47 -0400 Original-Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.121]:38985) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgQRe-0004jl-Pp for guile-devel@gnu.org; Thu, 18 Sep 2008 16:49:46 -0400 Original-Received: from cdptpa-web08-z02 ([10.127.132.159]) by cdptpa-smta01.mail.rr.com with ESMTP id <20080918204945.QEGD6963.cdptpa-smta01.mail.rr.com@cdptpa-web08-z02>; Thu, 18 Sep 2008 20:49:45 +0000 X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: from 66.178.229.162 by webmail.roadrunner.com; Thu, 18 Sep 2008 20:49:45 +0000 X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:7726 Archived-At: ---- Andy Wingo wrote: > Hi, > > On Thu 18 Sep 2008 00:57, writes: > > > Basically, a .go file will be preferred over a .scm file even if the > > .scm file is earlier in the load-path. I think that the file earlier > > in the load-path should win. > > A few thoughts: > > (1) Guile shouldn't have installed paths (its system paths) in its path > when running uninstalled, otherwise you can get strange issues like > you saw -- it's not limited to .go files, it could be .scm as well True. > (2) I can imagine cases in which you would want compiled files not in > the same location as source; e.g. /usr/lib64/guile/ vs > /usr/share/guile/; although currently .go files are not > platform-dependent (I don't think) Hmm. Also true. > (4) We already check to make sure that the .go file is newer than the > .scm file Good. > I would suggest that the current way is sufficient, if we disable > loading from the installed paths when running pre-inst-guile; because I > kinda want to allow (2), but I don't want to deal with ordering issues > within %load-path of "compiled locations" versus "source locations". I'm pretty sure the case of not using the already installed system .scm files while building is handled now. I'm thinking more along the lines of some user wanted to override a system file for some reason. This issue came up for me when I wanted to use a newer gnus than what came with the system supplied emacs. At that time I didn't have admin privs so I just installed gnus somewhere under my home dir and made sure that the emacs load path searched there first. Can this situation ever come up in Guile? Maybe. As Neil mentioned, emacs is a good example to follow. That's why I'm suggesting this. > Sorry about your bug, I know it was a bit painful. But you would not > have had it if guile were operating correctly in the first place, > regardless of the .go vs .scm issue. No problem there. Finding (and fixing) bugs is what makes using developing code fun. ;^) Thanks, -Dale