chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] CHICKEN hang / crash / memoize egg


From: Andy Bennett
Subject: Re: [Chicken-users] CHICKEN hang / crash / memoize egg
Date: Fri, 1 Apr 2016 15:40:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0

Hi,

>> I'm running CHICKEN 4.9.0rc1 and I'm trying out the memoize egg.
>>
>> I saw the tail-call-optimized version of the factorial procedure in the
>> memoize documentation at http://api.call-cc.org/doc/memoize and I've
>> been trying to modify it so that it memoizes intermediate results such
>> that, for example, a call to (fact 10) makes a subsequent call to (fact
>> 9) fast.
>>
>> In doing so I've managed to get the interpreter into a loop or crash it
>> entirely.
>>
> 
> This looks like a perfectly legitimate crash. The memoize egg doesn’t
> impose a limit on memory usage unless you explicitly tell it so.

I get the same results with '(define memo-fact** (memoize fact** 3))'.
I suspect this is a numbers bug as it still allocates a fair bit of memory.





Regards,
@ndy

-- 
address@hidden
http://www.ashurst.eu.org/
0290 DA75 E982 7D99 A51F  E46A 387A 7695 7EBA 75FF




reply via email to

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