On Aug 1 2011, Kon Lovett wrote:
On Aug 1, 2011, at 1:05 PM, Jörg F. Wittenberger wrote:
On Aug 1 2011, Pedro Henrique Antunes de Oliveira wrote:
Interesting point.
But I tried it out. In average, it took about the same amount of time
(actualy this was about 0.1s slower).
Looking closer
just a wild guess:
On Jul 31 2011, Pedro Henrique Antunes de Oliveira wrote:
Hey.
I have a file map.scm, which contais this code:
(define (mymap1 op ls)
(let loop ((ls ls) (acc '()))
(if (null? ls)
(reverse acc)
(loop (cdr ls) (cons (op (car ls)) acc)
Interesting point.
But I tried it out. In average, it took about the same amount of time
(actualy this was about 0.1s slower).
Maybe because the amount of time spent on binding arguments to
parameters is larger than the amount of time of that (procedure? op).
I've heard that some compilers can
On Aug 1 2011, Pedro Henrique Antunes de Oliveira wrote:
Interesting point.
But I tried it out. In average, it took about the same amount of time
(actualy this was about 0.1s slower).
Looking closer (since you made me curious); there is little magic
about the definition of map as far as I
Hey.
I have a file map.scm, which contais this code:
(define (mymap1 op ls)
(let loop ((ls ls) (acc '()))
(if (null? ls)
(reverse acc)
(loop (cdr ls) (cons (op (car ls)) acc)
(define (mymap2 op ls)
(let loop ((ls ls))
(if (null? ls)
'()
(cons (op
On Jul 30, 2011, at 4:43 PM, Pedro Henrique Antunes de Oliveira wrote:
Hey.
I have a file map.scm, which contais this code:
(define (mymap1 op ls)
(let loop ((ls ls) (acc '()))
(if (null? ls)
(reverse acc)
(loop (cdr ls) (cons (op (car ls)) acc)
(define
I've taken a look at compiler macros. I see how it could help with
performace, but I don't get how it would help in this case.
Could you explain?
On Sat, Jul 30, 2011 at 8:51 PM, Kon Lovett konlov...@gmail.com wrote:
On Jul 30, 2011, at 4:43 PM, Pedro Henrique Antunes de Oliveira wrote:
Hey.