chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] optimizing mutually recursive loops


From: felix winkelmann
Subject: Re: [Chicken-users] optimizing mutually recursive loops
Date: Tue, 17 Feb 2009 22:02:57 +0100

On Tue, Feb 17, 2009 at 9:36 PM, John Cowan <address@hidden> wrote:
>
>> I don't think "parameterize" is tail-recursive (it uses dynamic-wind),
>> so if you expect procedure calls to be nested deeply, this might not be
>> an option.
>
> It is possible to have dynamic binding and tail recursion at the same
> time, though:  see http://www.accesscom.com/~darius/writings/dynatail.html
> for the general scheme.

Even if you make dynamic-wind tail-recursive (which isn't that
trivial), it will
still allocate storage for pending thunks.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]