From: Andy Wingo <wingo@pobox.com>
To: <dsmich@roadrunner.com>
Cc: guile-devel@gnu.org
Subject: Re: guile-vm .go files in GUILE_LOAD_PATH
Date: Thu, 18 Sep 2008 20:40:43 +0200 [thread overview]
Message-ID: <m3bpyl5mc4.fsf@pobox.com> (raw)
In-Reply-To: <27940045.1016601221692239870.JavaMail.root@cdptpa-web21-z02> (dsmich@roadrunner.com's message of "Wed, 17 Sep 2008 18:57:19 -0400")
Hi,
On Thu 18 Sep 2008 00:57, <dsmich@roadrunner.com> 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
(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)
(3) Currently there is no linkage between the absolute directory of the
.scm file and the .go file, neither in the compilation nor in the
loading; but there is a linking with the relative path if you use
primitive-load-path
(4) We already check to make sure that the .go file is newer than the
.scm file
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".
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.
We certainly need to have a better story regarding versioning, so we
don't load incompatible .go files.
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2008-09-18 18:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-17 22:57 guile-vm .go files in GUILE_LOAD_PATH dsmich
2008-09-18 3:55 ` David Séverin
2008-09-18 7:26 ` Neil Jerram
2008-09-18 18:40 ` Andy Wingo [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-09-18 20:49 dsmich
2008-09-18 21:14 ` Andy Wingo
2008-09-18 22:32 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3bpyl5mc4.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=dsmich@roadrunner.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).