[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding to the end of the load path
From: |
Noah Lavine |
Subject: |
Re: Adding to the end of the load path |
Date: |
Thu, 15 Nov 2012 19:10:58 -0500 |
Hello,
This is coming late in the discussion, but I'd like to suggest a somewhat different approach. I hope this is helpful.
It seems to me that in the end, the module-lookup system may need to be more complex than having regular and suffix lookup paths. For instance, one of the big concerns here was reducing the number of stat() calls. What if we know that some load directories only contain certain modules? We might want a way for the user to say "all the (foo ...) modules live in ~/foo, but you don't have to look for any other modules there". Or what if I want to use a backup version of a module that's also included in the regular Guile distribution, because I haven't ported my code to a new version yet (yes, I should use module versions, but I don't)? There might be more complicated scenarios too.
Given that the module-lookup system is fundamentally complicated, I'm going to suggest that we *don't* try to make it all configurable by environment variables. If people want full control of lookups, they can write a site-wide Guile init file or a personal ~/.guile. The regular load-path would still be part of the system, and that would be configurable by an environment variable, so legacy setups would continue to work. However, I'd be happy saying that if you wanted to access all of the functionality, you need to write Scheme code. Let's start by adding Scheme interfaces to the functionality we want, and maybe not worry about environment variables if they're complicated.
What do you think?
Noah
- Re: Adding to the end of the load path, (continued)
- Re: Adding to the end of the load path, Ludovic Courtès, 2012/11/13
- Re: Adding to the end of the load path, Andreas Rottmann, 2012/11/15
- Re: Adding to the end of the load path, Ludovic Courtès, 2012/11/15
- Re: Adding to the end of the load path, Mark H Weaver, 2012/11/15
- Re: Adding to the end of the load path, Ludovic Courtès, 2012/11/15
- Re: Adding to the end of the load path,
Noah Lavine <=
- Re: Adding to the end of the load path, Noah Lavine, 2012/11/16
- Re: Adding to the end of the load path, Bruce Korb, 2012/11/16
- Re: Adding to the end of the load path, Mark H Weaver, 2012/11/16
- Re: Adding to the end of the load path, Noah Lavine, 2012/11/16
- [PATCH] Add parse-path-with-ellipsis, and use it for GUILE_LOAD_PATH et al, Mark H Weaver, 2012/11/28
- Re: [PATCH] Add parse-path-with-ellipsis, and use it for GUILE_LOAD_PATH et al, Ludovic Courtès, 2012/11/28
- Re: [PATCH] Add parse-path-with-ellipsis, and use it for GUILE_LOAD_PATH et al, Mark H Weaver, 2012/11/28
- Re: [PATCH] Add parse-path-with-ellipsis, and use it for GUILE_LOAD_PATH et al, Ludovic Courtès, 2012/11/29