From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: Compiled load path issues
Date: Wed, 21 Oct 2009 20:15:26 +0200 [thread overview]
Message-ID: <m3r5swmx4x.fsf@pobox.com> (raw)
In-Reply-To: <87y6n4hg2n.fsf@gnu.org> ("Ludovic Courtès"'s message of "Wed, 21 Oct 2009 18:22:56 +0200")
Hi Ludovic,
On Wed 21 Oct 2009 18:22, ludo@gnu.org (Ludovic Courtès) writes:
> Andy Wingo <wingo@pobox.com> writes:
>
>> On Tue 20 Oct 2009 10:27, ludo@gnu.org (Ludovic Courtès) writes:
>
> [...]
>
>>> In theory, we could interpret the ‘.go’ cookie and byte-swap things if
>>> needed...
>>
>> In theory yes. In practice we map things read-only so they can be cached
>> and not copied, and we'd have to instrument individual VM ops
>
> Or we could copy the bytecode (when it’s foreign) instead of mmapping
> it, and translate instructions that are endianness-sensitive.
>
> Now, I agree it’s a big task, and one I’d rather avoid 2 months before
> 2.0.
I agree. (I'd rather avoid it altogether.)
>>> I’m in favor of ‘.go’ alongside ‘.scm’: that’s what happens with
>>> .elc/.el and .pyc/.py and it had been the plan from 1.9.0 until
>>> recently.
>>
>> For python, pyc files are in $libdir, for exactly this reason.
>
> Out of curiosity, are .pyc endianness- and word-size-sensitive?
I think so, yes. I could be wrong.
> What about .elc?
Don't know.
> Guile itself currently installs ‘.go’ under $pkgdatadir. That would
> need to be changed to $pkglibdir/1.9, right?
.scm files got to $pkgdatadir, .go files to $pkglibdir.
> Also we now have $GUILE_LOAD_PATH and $GUILE_LOAD_COMPILED_PATH. Should
> we also have an equivalent to ‘-L’?
Hm, good question. I don't know the answer to that one.
Regards,
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2009-10-21 18:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 15:36 Compiled load path issues Ludovic Courtès
2009-10-19 19:16 ` Andy Wingo
2009-10-20 8:27 ` Ludovic Courtès
2009-10-20 18:59 ` Andy Wingo
2009-10-21 16:22 ` Ludovic Courtès
2009-10-21 18:15 ` Andy Wingo [this message]
2009-10-21 16:45 ` Parallel installability, API stability Ludovic Courtès
2009-10-21 18:17 ` Andy Wingo
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=m3r5swmx4x.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=ludo@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).