From: Marius Vollmer <mvo@zagadka.ping.de>
Cc: ttn@glug.org, guile-devel@gnu.org, guile-user@gnu.org
Subject: Re: [d.love@dl.ac.uk: dynamic loading of native code modules]
Date: 14 Apr 2002 23:30:52 +0200 [thread overview]
Message-ID: <87ads6nf1v.fsf@zagadka.ping.de> (raw)
In-Reply-To: <m3n0w8ugmp.fsf@laruns.ossau.uklinux.net>
Neil Jerram <neil@ossau.uklinux.net> writes:
> If we can agree this, it would be good to do it in 1.6,
No. :-)
> Thien-Thi> alternatively, we need to document *why* 1.6 chooses
> Thien-Thi> to rob the users so, at least to ourselves. "This
> Thien-Thi> has been found to be too tricky, and is no longer
> Thien-Thi> supported" is, although not dis-honest, still pretty
> Thien-Thi> lame.
>
> Upon reflection, I agree.
Yeah, ok. Let me try to explain. (This is the new
workbook/modules/modules-and-shared-libs.text.)
Guile used to be able to automatically find and link a shared
library to satisfy requests for a module. For example, the module
`(foo bar)' could be implemented by placing a shared library named
"foo/libbar.so" (or with a different extension) in a directory on the
load path of Guile.
This has been found to be too tricky, and is no longer supported. The
shared libraries are now called "extensions". You should now write a
small Scheme file that calls `load-extension' to load the shared
library and initialize it explicitely.
Here is more about why "this has been found to be to tricky". It is
about the way it was done, not about why it can't possible at all.
While this support was still present, modules could be either
implemented by Scheme source files, or by shared libraries compiled
from C. These two forms are two very different things: one is
platform independent and installed somewhere in 'prefix', the other is
platform dependent and is installed in 'exec-prefix'. However, Guile
had no platform dependent locations in its default search path.
Moreover, the search algorithm required shared libraries that were to
be autoloaded as modules to reside not in the usual library
directories (like /usr/local/lib), but in Guile search path as
.../foo/libbar.so for example for module (foo bar). This will not
really work for shared libraries that are also to be used from C code.
Guile usually provides a C API for its features that are written in C.
This should be encouraged for extensions as well. However, the Unix
shared library does not deal well with shared libraries that don't
come from standard locations or are referenced by multiple names
(symlinks).
Additionally, module boundaries are not necessarily language
boundaries. That is, a module can be a mix of Scheme and C (and one
file might want to provide more than one module). Therefore, we need
a good way to load shared libraries independently from modules anyway.
Restricting module system operations and autoloading to Scheme code
only provided an immediate and significant simplification, without
much hassle to the user. The simplified setup should also be easier
to understand.
> More generally, looking back through mailing list history, it's
> actually astonishing how much support for various stuff that Guile
> has _lost_ along the way.
I'd say we didn't lose it, we freed us from it.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2002-04-14 21:30 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-12 1:06 [d.love@dl.ac.uk: dynamic loading of native code modules] Thien-Thi Nguyen
2002-04-13 8:50 ` Neil Jerram
2002-04-14 0:58 ` Rob Browning
2002-04-14 22:22 ` Neil Jerram
2002-04-15 4:21 ` Rob Browning
2002-04-16 20:23 ` Neil Jerram
2002-04-17 5:25 ` Rob Browning
2002-04-20 8:14 ` Thien-Thi Nguyen
2002-04-20 11:07 ` Neil Jerram
2002-04-15 12:15 ` Marius Vollmer
2002-04-16 20:24 ` Neil Jerram
2002-04-17 0:53 ` NIIBE Yutaka
2002-04-20 7:57 ` Thien-Thi Nguyen
2002-04-17 5:36 ` Rob Browning
2002-04-17 5:43 ` Rob Browning
2002-04-20 7:53 ` Thien-Thi Nguyen
2002-04-21 15:20 ` Rob Browning
2002-04-21 15:51 ` Robert A. Uhl
2002-04-21 16:27 ` Rob Browning
2002-05-14 8:53 ` Thien-Thi Nguyen
2002-04-14 21:30 ` Marius Vollmer [this message]
2002-04-15 17:58 ` Andreas Rottmann
2002-04-15 19:06 ` Marius Vollmer
2002-04-24 8:00 ` Thien-Thi Nguyen
2002-04-24 14:33 ` Rob Browning
2002-04-24 14:51 ` rm
2002-04-24 15:14 ` Andreas Rottmann
2002-04-24 15:48 ` Rob Browning
2002-04-24 16:15 ` Bill Gribble
2002-04-24 16:24 ` Rob Browning
2002-04-24 18:10 ` Andreas Rottmann
2002-04-24 20:36 ` Rob Browning
[not found] ` <87wuuwhm08.fsf@raven.i.defaultvalue.org>
2002-04-25 2:05 ` Joshua Judson Rosen
2002-04-25 3:03 ` Rob Browning
2002-04-24 18:06 ` Andreas Rottmann
2002-04-24 20:40 ` Rob Browning
2002-04-24 20:53 ` Andreas Rottmann
2002-04-30 0:26 ` Lynn Winebarger
2002-04-30 1:35 ` Thien-Thi Nguyen
2002-04-30 2:33 ` Lynn Winebarger
[not found] ` <0204292133140I.10649@locke.free-expression.org>
2002-05-04 0:19 ` Thien-Thi Nguyen
2002-04-30 0:20 ` Lynn Winebarger
2002-04-24 15:28 ` Rob Browning
2002-05-15 0:19 ` Thien-Thi Nguyen
2002-04-24 18:34 ` Thien-Thi Nguyen
2002-04-24 18:58 ` Rob Browning
2002-04-25 5:32 ` Thien-Thi Nguyen
2002-05-01 5:00 ` Lynn Winebarger
2002-05-01 13:50 ` Rob Browning
2002-04-24 0:52 ` Thien-Thi Nguyen
2002-04-20 9:06 ` Thien-Thi Nguyen
2002-04-20 12:21 ` Neil Jerram
2002-04-20 12:44 ` Thien-Thi Nguyen
2002-04-24 0:09 ` Thien-Thi Nguyen
2002-04-14 0:34 ` Rob Browning
2002-04-14 2:55 ` Rob Browning
2002-04-24 0:24 ` Thien-Thi Nguyen
2002-04-24 5:25 ` Rob Browning
2002-04-24 21:18 ` Marius Vollmer
2002-04-25 4:10 ` Thien-Thi Nguyen
2002-04-28 15:32 ` Marius Vollmer
2002-04-28 20:19 ` Thien-Thi Nguyen
2002-05-14 10:57 ` Thien-Thi Nguyen
2002-05-14 16:11 ` Bill Gribble
2002-05-14 20:54 ` Thien-Thi Nguyen
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=87ads6nf1v.fsf@zagadka.ping.de \
--to=mvo@zagadka.ping.de \
--cc=guile-devel@gnu.org \
--cc=guile-user@gnu.org \
--cc=ttn@glug.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).