This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: kawa cvs now inlines map and for-each
- To: Per Bothner <per at bothner dot com>
- Subject: Re: kawa cvs now inlines map and for-each
- From: Alexander Asteroth <aster at cs dot uni-bonn dot de>
- Date: Thu, 14 Dec 2000 12:16:24 +0100
- Cc: kawa at sources dot redhat dot com
- Organization: Universität Bonn
- References: <m2itonftm7.fsf@kelso.bothner.com>
Per Bothner wrote:
> ...
> there are problems. If this changes noticable speeds up (or
> slows down) one of your applications, I'd love to hear that as well.
Since I use a lot of map operations I was curious and recompiled all my
sources, but the speed neither increased nor slowed down.
Anyway I got curious about tail-calls an found the following:
suppose th following two files:
themod.scm:
(module-name <themod>)
(module-export bla)
(define (bla a)
(display a))
test.scm
(require <themod>)
(bla "hello world")
(newline)
If I compile themod using
kawa --full-tailcalls -C themod.scm
and then call
kawa test.scm
I get the expected "hello world"
but if I try to compile test.scm I get:
test.scm:2:2: warning - call to `bla' has too many arguments (1; must
be 0)
-- Alex
PS: Per wrote:
> I also added the reverse! function, which is like reverse, but
> reverse "in place" - i.e. it reuses the input's cons cells.
It would also be cool if we could have remove! and assoc-set!