From: Andy Wingo <wingo@pobox.com>
Subject: Re: Another load path idea
Date: Sun, 22 Jan 2006 16:38:36 +0100 [thread overview]
Message-ID: <1137944316.15250.29.camel@localhost.localdomain> (raw)
In-Reply-To: <87veweeyyk.fsf@ossau.uklinux.net>
Hi Neil,
On Sat, 2006-01-21 at 09:01 +0000, Neil Jerram wrote:
> Basically agreed, but what I now plan precisely is as follows.
Oh good, a summary of this thread of many moons :)
A question though. What is the problem which is being solved here?
In guile-gnome I only really use the load path in one place. That is
that (use-modules (gnome-0)) adds the path for version 0 of the
guile-gnome API to the load path. Before that you cannot import (gnome
gobject), for example, because it's not in the path. Afterwards you can.
This was done this way to allow me to break API in the future, but leave
existing programs still working.
In that sense a global path that adds gnome isn't terribly interesting,
because you have to select the API version in the first place.
> 1. /etc/guile/${GUILE_EFFECTIVE_VERSION}/load-path.scm
> Contains the calculated load path, e.g.
>
> ("/usr/share/guile/1.6"
> "/usr/share/guile/site"
> "/usr/share/guile"
> "/opt/gnome/share/guile")
As generated by guile-config ... ?
> 2. Each Guile package installs a file under /etc/guile which contains
> its load path as a single string.
What about packages that depend on each other? Is that out of the scope
of this proposal?
I assume you mean /etc/guile/$effective_version
I think requiring users to run a command to fix the cache is an
invitation for bugs. I think it would be sufficient to have a cache in
~/.guile.d/cache, that would effectively hold the output of running
guile-config. That way the normal case is that one only stats the cache,
reads the system path dir, statting entries there, and then if
everything is up to date just load the cache file. That's one readdir,
one file read, and about 5 stats. Not expensive at all.
Perhaps I'm just burned by the fiasco that was gstreamer's gst-register.
Now having gotten rid of it, making the "registry" user-local and with
strict cache semantics, we get no bugs about it.
Sorry to bring up issues this late in the game.
Regards,
--
Andy Wingo
http://wingolog.org/
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2006-01-22 15:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-07 13:42 Another load path idea Neil Jerram
2006-01-12 9:38 ` Ludovic Courtès
2006-01-12 17:44 ` Neil Jerram
2006-01-19 9:21 ` Ludovic Courtès
2006-01-20 21:21 ` Kevin Ryde
2006-01-21 9:01 ` Neil Jerram
2006-01-22 15:38 ` Andy Wingo [this message]
2006-01-26 0:55 ` Kevin Ryde
2006-01-26 8:39 ` Ludovic Courtès
2006-01-26 20:19 ` Neil Jerram
2006-01-26 23:00 ` Kevin Ryde
2006-01-27 8:57 ` Ludovic Courtès
2006-01-28 0:39 ` Kevin Ryde
2006-01-30 9:11 ` Ludovic Courtès
2006-02-04 16:44 ` Neil Jerram
2006-01-29 22:39 ` Greg Troxel
2006-01-31 20:23 ` Kevin Ryde
2006-01-31 20:58 ` Greg Troxel
2006-01-23 8:27 ` Ludovic Courtès
2006-01-23 20:04 ` Neil Jerram
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=1137944316.15250.29.camel@localhost.localdomain \
--to=wingo@pobox.com \
/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).