Re: Fixing the slib mess

2013-01-21 Thread Andy Wingo
Howdy :) On Mon 21 Jan 2013 19:09, Mikael Djurfeldt writes: > Now, I'm looking into porting Gerald Sussman's scmutils to Guile-2.0. > I'm aware of an older port by Daniel Gildea but I don't think that > uses GOOPS: Neat; GOOPS is definitely the way to go there ;-) > I'm currently wondering if

Re: Fixing the slib mess

2013-01-21 Thread Mikael Djurfeldt
see you around! > > On Mon 22 Oct 2012 01:11, Mikael Djurfeldt writes: > >> When trying to use guile 2 for logic programming I discovered that the >> slib interface is again broken (and has been for quite some time). > > I am very sorry that I did not see this thread befor

Re: Fixing the slib mess

2013-01-21 Thread Andy Wingo
Hello Mikael, A pleasure to see you around! On Mon 22 Oct 2012 01:11, Mikael Djurfeldt writes: > When trying to use guile 2 for logic programming I discovered that the > slib interface is again broken (and has been for quite some time). I am very sorry that I did not see this thread

Re: Fixing the slib mess

2012-10-31 Thread Mark H Weaver
Mikael Djurfeldt writes: > On Tue, Oct 23, 2012 at 8:01 PM, Mark H Weaver wrote: >> Anyway, here's another idea: after requiring a new slib package, iterate >> over the entire list of top-level bindings in the slib module and export >> everything. >> >> Wh

Re: Fixing the slib mess

2012-10-23 Thread Mikael Djurfeldt
On Tue, Oct 23, 2012 at 8:01 PM, Mark H Weaver wrote: > Anyway, here's another idea: after requiring a new slib package, iterate > over the entire list of top-level bindings in the slib module and export > everything. > > What do you think? I think it sounds like the best id

Re: Fixing the slib mess

2012-10-23 Thread Mark H Weaver
Hi Mikael, Mikael Djurfeldt writes: > On Mon, Oct 22, 2012 at 11:51 PM, Mark H Weaver wrote: >> It might be easier to handle this with 'define-syntax-parameter' and >> 'syntax-parameterize'. The idea would be that within slib, 'define' >>

Re: Fixing the slib mess

2012-10-23 Thread Mikael Djurfeldt
d > 'syntax-parameterize'. The idea would be that within slib, 'define' > would be a syntax parameter. Its default expansion would turn it into > 'define-public', and also parameterize 'define' to mean 'base:define' > within the body. If

Re: Fixing the slib mess

2012-10-22 Thread Mark H Weaver
Hi Mikael! It's great to see you on guile-devel again, and it would be good to have a working slib on Guile 2. Thanks for working on this :) Mikael Djurfeldt writes: > Comments? Can I add syntax-toplevel? to psyntax.scm and (system > syntax)? FWIW, it sounds reasonable to add som

Re: Fixing the slib mess

2012-10-22 Thread Mikael Djurfeldt
On Mon, Oct 22, 2012 at 1:11 AM, Mikael Djurfeldt wrote: > Comments? Can I add syntax-toplevel? to psyntax.scm and (system > syntax)? Do you think it is reasonable to submit something along the > line of guile.init.diff to slib guile.init? If I get an OK, then I would of course

Re: Fixing the slib mess

2012-10-22 Thread Stefan Israelsson Tampe
Yes in that case this stands on it's own! /Stefan On Mon, Oct 22, 2012 at 9:11 PM, Mikael Djurfeldt wrote: > On Mon, Oct 22, 2012 at 8:31 PM, Stefan Israelsson Tampe > wrote: > >> Comments? Can I add syntax-toplevel? to psyntax.scm and (system > >> syntax)? > > [...] > > I can answer with some

Re: Fixing the slib mess

2012-10-22 Thread Mikael Djurfeldt
On Mon, Oct 22, 2012 at 8:31 PM, Stefan Israelsson Tampe wrote: >> Comments? Can I add syntax-toplevel? to psyntax.scm and (system >> syntax)? > [...] > I can answer with some kind of suggestion here. > > in (system syntax) there is syntax-local-binding which you can use for > example as > > > (d

Re: Fixing the slib mess

2012-10-22 Thread Stefan Israelsson Tampe
ssors (which breaks > abstraction and is therefore not a real solution). I should also say > that I have not yet fixed the slib interface to the new Guile uniform > arrays, so there's a lot of slib functionality which won't yet work. > > Comments? Can I add syntax-topleve

Fixing the slib mess

2012-10-21 Thread Mikael Djurfeldt
Dear Guile hackers, What nice work you are doing! For those who don't know me, I'm a Guile developer who has been doing other stuff for some time. When trying to use guile 2 for logic programming I discovered that the slib interface is again broken (and has been for quite some t

Re: [Slib-discuss] slib primes

2009-04-16 Thread Aubrey Jaffer
1.8.6" | > | guile> (use-modules (ice-9 slib)) | > | guile> *slib-version* | > | "3b1" | > | guile> (require 'primes) | > | ERROR: Wrong number of arguments to #array> Use-modules doesn't work on my development machine; but that's not

Re: [Slib-discuss] Re: slib primes

2009-04-16 Thread Aubrey Jaffer
| From: l...@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) | Date: Fri, 17 Apr 2009 00:23:57 +0200 | | Hello, | | Aubrey Jaffer writes: | | > (use-modules (ice-9 slib)) is archaic and doesn't work anymore. | | What makes you say so? It's supposed to work (info

Re: [Slib-discuss] slib primes

2009-04-16 Thread Aubrey Jaffer
| Date: Wed, 15 Apr 2009 20:33:53 -0400 | From: Dan Gildea | | bash-3.2$ guile-1.8 | guile> (version) | "1.8.6" | guile> (use-modules (ice-9 slib)) | guile> *slib-version* | "3b1" | guile> (require 'primes) | ERROR: Wrong number of arguments to #

Re: [Slib-discuss] Re: slib primes

2009-04-16 Thread Ludovic Courtès
Aubrey Jaffer writes: > | From: l...@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) > | Date: Fri, 17 Apr 2009 00:23:57 +0200 > | > | Hello, > | > | Aubrey Jaffer writes: > | > | > (use-modules (ice-9 slib)) is archaic and doesn't work anymore. > |

Re: [Slib-discuss] slib primes

2009-04-16 Thread Dan Gildea
On Thu, April 16, 2009 at 12:07PM, Aubrey Jaffer wrote: > | Date: Wed, 15 Apr 2009 20:33:53 -0400 > | From: Dan Gildea > | > | bash-3.2$ guile-1.8 > | guile> (version) > | "1.8.6" > | guile> (use-modules (ice-9 slib)) > | guile> *slib-versi

Re: slib primes

2009-04-16 Thread Ludovic Courtès
Hello, Aubrey Jaffer writes: > (use-modules (ice-9 slib)) is archaic and doesn't work anymore. What makes you say so? It's supposed to work (info "(guile) SLIB"). The module was fixed (see `ice-9/ChangeLog-2008' entry dated 2007-10-02) and the doc was updated for G

slib primes

2009-04-15 Thread Dan Gildea
bash-3.2$ guile-1.8 guile> (version) "1.8.6" guile> (use-modules (ice-9 slib)) guile> *slib-version* "3b1" guile> (require 'primes) ERROR: Wrong number of arguments to #array> ABORT: (wrong-number-of-args) guile> Some deprecated features ha

Fwd: Installing SLIB 3b1 with Guile 1.8.6 (to work with Gnucash 2.8.8) [SOLVED]

2009-01-29 Thread Tom Browder
I recently had a struggle getting slib to work with the latest guile release (1.8.6). I believe para. 6.1.1 of the guile reference manual needs to be rewritten since the procedures don't seem to work as advertised. Following is the wording I suggest based on my experience with guile 1.8.

Re: SLIB support

2007-10-01 Thread Ludovic Courtès
Hello! I committed the attached patch that appears to solve the `(ice-9 slib)' problem. Note that I also updated the instructions in the manual. Feedback welcome! Thanks, Ludovic. --- orig/ChangeLog +++ mod/ChangeLog @@ -1,3 +1,7 @@ +2007-10-02 Ludovic Courtès <[EMAIL PROTECTED]>

Re: SLIB support

2007-09-15 Thread Rob Browning
Andreas Rottmann <[EMAIL PROTECTED]> writes: > I've now prepared a patch (attached) that's hopefully good enough > for upstream use. > +(define-module (ice-9 slib) > + :export (slib:load slib:load-source defmacro:load > +implementation-vicinity

Re: SLIB support

2007-09-15 Thread Rob Browning
[EMAIL PROTECTED] (Ludovic Courtès) writes: > Hi, > > Andreas Rottmann <[EMAIL PROTECTED]> writes: > >> The latter. I agree that doing this in the Debian diff is >> cleaner/preferable. > > So `(load-from-path "guile.init")' (rather than &q

Re: SLIB support

2007-09-15 Thread Greg Troxel
[EMAIL PROTECTED] (Ludovic Courtès) writes: > What you're saying seems to be specific to pkgsrc. > > Leaving packaging systems aside, instructions in the Guile manual read > this: > > 1. Unpack slib somewhere, e.g., `/usr/local/share/slib'. > > 2. Create a s

Re: SLIB support

2007-09-15 Thread Ludovic Courtès
Hi, Greg Troxel <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Ludovic Courtès) writes: > >> So `(load-from-path "guile.init")' (rather than "slib/guile.init") is OK >> for everyone? > > No, on pkgsrc(NetBSD), which isn't trying to c

Re: SLIB support

2007-09-15 Thread Greg Troxel
[EMAIL PROTECTED] (Ludovic Courtès) writes: > So `(load-from-path "guile.init")' (rather than "slib/guile.init") is OK > for everyone? No, on pkgsrc(NetBSD), which isn't trying to change paths, you need slib/guile.init. Real data follows because it's to

Re: SLIB support

2007-09-15 Thread Ludovic Courtès
Hi, Andreas Rottmann <[EMAIL PROTECTED]> writes: > The latter. I agree that doing this in the Debian diff is > cleaner/preferable. So `(load-from-path "guile.init")' (rather than "slib/guile.init") is OK for everyone? On Debian, this needs to be ch

Re: SLIB support

2007-09-13 Thread Andreas Rottmann
Rob Browning <[EMAIL PROTECTED]> writes: > Greg Troxel <[EMAIL PROTECTED]> writes: > >> Shouldn't slib/guile.init, being the standard place, be first? Or >> has slib moved it in a more recent version? > > I think ice-9/slib.scm should only look for guil

Re: SLIB support

2007-09-13 Thread Rob Browning
Greg Troxel <[EMAIL PROTECTED]> writes: > Shouldn't slib/guile.init, being the standard place, be first? Or > has slib moved it in a more recent version? I think ice-9/slib.scm should only look for guile.init in it's normal, default upstream location. Has SLIB used both l

Re: SLIB support

2007-09-13 Thread Andreas Rottmann
Greg Troxel <[EMAIL PROTECTED]> writes: > That should work on NetBSD: > > fnord gdt 11 /usr/pkgsrc/devel/guile-slib > l > /usr/pkg/share/guile/site/slib/guile.init > -r--r--r-- 1 root wheel 19273 Mar 15 12:35 > /usr/pkg/share/guile/site/slib/guile.init > fnord

Re: SLIB support

2007-09-13 Thread Greg Troxel
That should work on NetBSD: fnord gdt 11 /usr/pkgsrc/devel/guile-slib > l /usr/pkg/share/guile/site/slib/guile.init -r--r--r-- 1 root wheel 19273 Mar 15 12:35 /usr/pkg/share/guile/site/slib/guile.init fnord gdt 12 /usr/pkgsrc/devel/guile-slib > guile guile> %load-path ("/usr/p

Re: SLIB support

2007-09-13 Thread Andreas Rottmann
[EMAIL PROTECTED] (Ludovic Courtès) writes: > Hi Andreas, > > Andreas Rottmann <[EMAIL PROTECTED]> writes: > >>> Currently on my System (Debian sid), Guile 1.8 does not support >>> SLIB. I have done a preliminary patch (attached) that makes the module >&

Re: SLIB support

2007-09-13 Thread Ludovic Courtès
Hi Andreas, Andreas Rottmann <[EMAIL PROTECTED]> writes: >> Currently on my System (Debian sid), Guile 1.8 does not support >> SLIB. I have done a preliminary patch (attached) that makes the module >> (ice-9 slib) load the guile.init file from SLIB, which seems to w

Re: SLIB support

2007-09-12 Thread Andreas Rottmann
Andreas Rottmann <[EMAIL PROTECTED]> writes: > Hi! > > Currently on my System (Debian sid), Guile 1.8 does not support > SLIB. I have done a preliminary patch (attached) that makes the module > (ice-9 slib) load the guile.init file from SLIB, which seems to work > fine AF

Re: SLIB support

2007-09-12 Thread Andreas Rottmann
Andreas Rottmann <[EMAIL PROTECTED]> writes: > Hi! > > Currently on my System (Debian sid), Guile 1.8 does not support > SLIB. I have done a preliminary patch (attached) that makes the module > (ice-9 slib) load the guile.init file from SLIB, which seems to work > fine AF

SLIB support

2007-09-11 Thread Andreas Rottmann
Hi! Currently on my System (Debian sid), Guile 1.8 does not support SLIB. I have done a preliminary patch (attached) that makes the module (ice-9 slib) load the guile.init file from SLIB, which seems to work fine AFAICS. Currently, the patch hard-codes the location of the guile.init file, (which

Re: SLIB

2007-09-03 Thread Rob Browning
[EMAIL PROTECTED] (Ludovic Courtès) writes: > So do you mean that `(ice-9 slib)' should just contain > `define-module' + `load' as suggested earlier? If so, then let's do > it. :-) I was just wondering if we should try to make (ice-9 slib) as minimal as possible (p

Re: SLIB

2007-09-03 Thread Ludovic Courtès
Hi Rob, Rob Browning <[EMAIL PROTECTED]> writes: > Since Aubrey Jaffer seems quite willing to work with us to accommodate > adjustments to guile.init, I had thought that it might be reasonable > to just alter (ice-9 slib) to load guile.init and begin forwarding all > of our c

Re: SLIB

2007-09-02 Thread Rob Browning
mp;root=guile&view=markup&pathrev=branch_release-1-6 > > I'm not certain if it covers every possibility, but it does mean current > and future slib has a good chance of working. (I've only really nosed > around this stuff lately to let my lint program work wit

Re: SLIB

2007-08-16 Thread Kevin Ryde
"Mikael Djurfeldt" <[EMAIL PROTECTED]> writes: > > Yes, ideally, you should coordinate this with Aubrey. Why not explain > the situation for him? I think the simplest solution would be to use > the main idea of (ice-9 slib) explained above. Maybe Aubrey could >

Re: SLIB

2007-08-16 Thread Mikael Djurfeldt
2007/8/16, Kevin Ryde <[EMAIL PROTECTED]>: > "Mikael Djurfeldt" <[EMAIL PROTECTED]> writes: > > > > slib.scm makes sure that each time > > some module requires new slib code, it will be loaded into the module > > (ice-9 slib) and exported from the

Re: SLIB

2007-08-15 Thread Kevin Ryde
"Mikael Djurfeldt" <[EMAIL PROTECTED]> writes: > > slib.scm makes sure that each time > some module requires new slib code, it will be loaded into the module > (ice-9 slib) and exported from there. I'm not at all sure that > guile.init does that, I suspec

Re: SLIB

2007-08-11 Thread Mikael Djurfeldt
2007/8/11, Ludovic Courtès <[EMAIL PROTECTED]>: > 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. It's of no use since no-one has added the functions which Aubrey have added t

SLIB

2007-08-11 Thread Ludovic Courtès
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> (

slib overwrites provides?

2007-06-06 Thread Greg Troxel
) guile> (provided? 'foo) #t guile> (use-modules (ice-9 slib)) guile> (provided? 'foo) #f guile> (feature? 'foo) #t guile> (provide 'bar) guile> (provided? 'bar) #t guile> (feature? 'bar) #f I'm not sure what the right fix is, but it seems that

Re: SLIB use: Documentation and ice-9/slib.scm

2005-09-23 Thread Kevin Ryde
Alan Grover <[EMAIL PROTECTED]> writes: > > The ice-9/slib.scm module should be removed. It appears to be broken. Bit rot :(. > The Guile documentation should refer to the SLIB README file (sections > on loading the initialization file, and implementation specific > instruct

SLIB use: Documentation and ice-9/slib.scm

2005-09-23 Thread Alan Grover
Kevin Ryde wrote: > Alan Grover <[EMAIL PROTECTED]> writes: > >>Summary: The documentation on SLIB use is inadequate and/or out-of-date >>Guile version 1.6.4, "edition 1.0 of the reference manual, corresponding >>to Guile version 1.6.4" > > > Tha

ice-9 slib

2005-09-16 Thread Kevin Ryde
ice-9/slib tries to do the same as guile.init which comes with slib, but hasn't kept up to date. Each new slib is different, so it's almost impossible to be correct anyway. slib already comes with instructions for running under guile, I think it'd be better to make that the main