advice on how to use syntax transformers

2015-03-06 Thread Federico Beffa
Hi, I'm writing to ask for help in understanding syntax transformers. Specifically, I'm trying to construct a function of the following form (define (key-value meta) (match meta (() '()) name) value) rest ...) value) (((k value) rest ...) (key-value (cdr meta)))

Re: advice on how to use syntax transformers

2015-03-06 Thread Federico Beffa
On Fri, Mar 6, 2015 at 4:54 PM, Panicz Maciej Godek godek.mac...@gmail.com wrote: I think that the following code (without additional syntax transformers) should work for you: (define (key-value meta key) (match meta (() '()) ? (lambda(x) (equal? x key))) value) rest ...)

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-16 Thread Federico Beffa
David Pirotte da...@altosw.be writes: Hello, As far as I inderstand the Debian package manager mantains a package database. This is the place where it looks for installed packages. So, if I have a newer version of guile which is not installed through the package manager, the package manager

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-16 Thread Federico Beffa
On Tue, Sep 16, 2014 at 1:09 PM, Federico Beffa be...@ieee.org wrote: David Pirotte da...@altosw.be writes: Hello, As far as I inderstand the Debian package manager mantains a package database. This is the place where it looks for installed packages. So, if I have a newer version of guile

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-15 Thread Federico Beffa
On Mon, Sep 15, 2014 at 11:49 AM, Neil Jerram n...@ossau.homelinux.net wrote: On 2014-09-15 02:16, m...@netris.org wrote: Federico Beffa be...@ieee.org writes: Neil Jerram n...@ossau.homelinux.net writes: This is just a guess, but what happens if you do this: $ LD_LIBRARY_PATH=/usr/local

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-15 Thread Federico Beffa
Chris Vine ch...@cvine.freeserve.co.uk writes: On Sun, 14 Sep 2014 21:16:39 -0400 m...@netris.org wrote: Federico Beffa be...@ieee.org writes: Neil Jerram n...@ossau.homelinux.net writes: This is just a guess, but what happens if you do this: $ LD_LIBRARY_PATH=/usr/local/lib /usr

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-15 Thread Federico Beffa
Chris Vine ch...@cvine.freeserve.co.uk writes: On Mon, 15 Sep 2014 13:46:07 +0200 Federico Beffa be...@ieee.org wrote: [snip] Your guess is correct: The distribution that I'm using (Debian wheezy) ships 2.0.5 as the newest guile version and I need to keep it to satisfy dependencies of other

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-14 Thread Federico Beffa
Hi Federico, That is odd, on my Debian wheezy system, the debian packaged guile is a symbolic link /usr/bin/guile to /etc/alternatives/guile, which in turn is a symbolic link to /usr/bin/guile-2.0 . What returns from the command which guile on your system ? With the locally installed guile

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-14 Thread Federico Beffa
Neil Jerram n...@ossau.homelinux.net writes: This is just a guess, but what happens if you do this: $ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/guile Regards, Neil With this it works! I notice that there is an /etc/ld.so.cache file. Do I somehow need to update it? Thanks, Fede

Re: guile-2.0.11 installation on system with 2.0.5

2014-09-14 Thread Federico Beffa
l...@gnu.org (Ludovic Courtès) writes: It may be that, while /usr/local/bin/guile is indeed from the new version, it ends up loading .scm and .go files from the old version. You could check that by running: strace -o log /usr/local/bin/guile --version and grepping for .scm and .go files

guile-2.0.11 installation on system with 2.0.5

2014-09-13 Thread Federico Beffa
Hi, I'm on Debian 7.6 with guile-2.0.5 installed. I would like to install a newer version of guile. Therefore I downloaded 2.0.11 and installed in /usr/local with ./configure make sudo make install Everything appeared to be fine. However, with my surprise, when I started the newly installed

python on guile

2014-08-09 Thread Federico Beffa
On Fri, 2014-05-30 at 23:33 +0200, Stefan Israelsson Tampe wrote: I would like to hijack the python2/3 community over to guile. Hi, I'm a user of python which would very much prefer to use Scheme :-) I just wanted to say that the reason for which a lot of engineers/scientists are using python,