This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: kawa cvs now inlines map and for-each


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!

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]