Noah Lavine writes:
> Hello,
>
> This is just a guess, but I think that apply is trying to put all of the
> elements of the argument list on the stack before calling +. Presumably
> when it calls +, those will all be consed up into another list, but it's
> not taking a shortcut there. So yes, it
On 01/16/2013 06:34 PM, Akop Pogosian wrote:
(define (zeros n)
;; Make list of n zeros
(define (zeros-iter n lst)
(if (= n 0)
lst
(zeros-iter (- n 1)
(cons 0 lst
(zeros-iter n '()))
Results:
guile> (apply + (zeros (expt 10 3)))
$2 = 0
g
Hello,
This is just a guess, but I think that apply is trying to put all of the
elements of the argument list on the stack before calling +. Presumably
when it calls +, those will all be consed up into another list, but it's
not taking a shortcut there. So yes, it is tail recursive, but I think
yo
(define (zeros n)
;; Make list of n zeros
(define (zeros-iter n lst)
(if (= n 0)
lst
(zeros-iter (- n 1)
(cons 0 lst
(zeros-iter n '()))
Results:
guile> (apply + (zeros (expt 10 3)))
$2 = 0
guile> (apply + (zeros (expt 10 4)))
$3 = 0
guile> (ap
Andy Wingo wrote:
> This procedure is not exported from (system foreign), but
> from (guile).
I see, indeed this fixes my problems. By the way, Vicare
exports the FFI bindings from (vicare) too, but it also
installs a (vicare ffi) library which reexports all of them:
I find this solution
Hi,
On Wed 16 Jan 2013 12:43, Marco Maggi writes:
> ;;; WARNING: compilation of /home/marco/var/tmp/proof.sps failed:
> ;;; ERROR: In procedure module-lookup: Unbound variable: dynamic-link
This procedure is not exported from (system foreign), but from (guile).
> But the program:
>
>#!r6
On a i686-pc-linux-gnu running Guile 2.0.7 doing:
$ guile -x .sls -L . proof.sps
with the program:
#!r6rs
(import (rnrs) (proof))
and the library:
#!r6rs
(library (proof)
(export libz)
(import (rnrs)
(system foreign))
(define libz
(dynamic-link "libz
My case may be a good example. From the nearly 30 years old I have
moved in Gnome circles (GNU in this environment is barely mentioned,
or it is metioned that way
http://soyeahdjango.com/post/40190256460/me-when-someone-uses-flask )
, I went to a couple of conferences of Stallman and I ate with him
On Wed, Jan 16, 2013 at 3:00 AM, Nikita Karetnikov
wrote:
> 1. Is it OK to use non-free and centralized services?
In my opinion yes because you are right morally, but you can't make a
cake without breaking eggs:
http://lists.gnu.org/archive/html/guile-user/2012-12/msg00071.html
> I'm not going