unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* SLIB
@ 2007-08-11 11:36 Ludovic Courtès
  2007-08-11 17:00 ` SLIB Mikael Djurfeldt
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2007-08-11 11:36 UTC (permalink / raw)
  To: guile-devel

Hi,

I'd like to fix the SLIB issue in 1.8.3.

SLIB 3a4 works perfectly well with 1.8.  The thing is that `(ice-9
slib)' is of no use.  Instead of using it, I followed the SLIB
instructions:

  $ guile -l /usr/share/slib/init/guile.init 
  guile> (require 'primes)
  guile> (prime? 13)
  #t

Note that the first time you use SLIB, it will create the library
catalog, which requires write access to its directory.

Our `(ice-9 slib)' is essentially a duplicate of `guile.init'.  So I
think what we really want in `(ice-9 slib)' is this (as already
suggested by Greg [0]):

  (define-module (ice-9 slib))
  (load-from-path "guile.init")

Distributions could easily patch it so that it works out of the box.  On
Debian, that would become:

  (define-module (ice-9 slib))
  (load "/usr/share/slib/init/guile.init")

Now, it is true that `guile.init' contains too many Guile-specific
things that ought to be maintained out of SLIB, as Mikael noted [1], but
for the time being, I suggest that we just stick to this approach.
FWIW, other `.init' files that come with SLIB are quite long as well.

Ok to rewrite `(ice-9 slib)' as shown above?

Thanks,
Ludovic.

[0] http://thread.gmane.org/gmane.lisp.guile.devel/6644
[1] http://thread.gmane.org/gmane.lisp.guile.devel/6645



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-09-04  5:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-11 11:36 SLIB Ludovic Courtès
2007-08-11 17:00 ` SLIB Mikael Djurfeldt
2007-08-15 23:05   ` SLIB Kevin Ryde
2007-08-16  8:24     ` SLIB Mikael Djurfeldt
2007-08-16 22:43       ` SLIB Kevin Ryde
2007-09-03  0:42         ` SLIB Rob Browning
2007-09-03  7:22           ` SLIB Ludovic Courtès
2007-09-04  5:23             ` SLIB Rob Browning

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).