guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First look at Guile Std Library available


From: Clinton Ebadi
Subject: Re: First look at Guile Std Library available
Date: Sat, 3 Jan 2004 13:19:49 -0500
User-agent: KMail/1.5.9

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 03 January 2004 11:38, Thien-Thi Nguyen wrote:
>    From: Richard Todd <address@hidden>
>    Date: Thu, 1 Jan 2004 23:21:28 -0600
>
>    Every time someone does this and contributes it to the
>    library, the entire guile community gets more efficient.
>
> this is debatable.  a numerical recipe derived from slib (for example)
> has potential to suffer bit-rot when slib is enhanced.  i see that slib
> now has a module system of sorts; maybe you could codify the derivation
> methodology (steps to translate code from "slib module" format to "guile
> module" format) so that it could be applied to each slib release, to
> reduce your project's maintenance burden.

Grep the slib sources for all instances of "provide" and then generate a new 
file "std/slib/symbol-that-is-provided.scm" that does a (use-modules (ice-9 
slib)), does a (require 'symbol-that-is-provided) and then exports all the 
symbols in the current model to the outside world 

(set-module-uses! %module-public-interface
                  (list (nested-ref the-root-module '(app modules std slib 
symbol-that-is-provided))))

Then rewrite the doc schmooz stuff to generate the portions of the manual you 
need.
- -- 
http://unknownlamer.org
AIM:unknownlamer IRC:address@hidden
I use Free Software because I value freedom over features.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/9wfNdgGh8PQDV0sRAocfAKDOb4EhcNEZi+uDnpREKSGJ4r0mhACdFYTb
B/CbjV277ftTwj3yojM9DVs=
=g1EZ
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]