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 -- andy...@ashurst.eu.org http://www.ashurst.eu.org/ 0290 DA75 E982 7D99 A51F E46A 387A 7695 7EBA 75FF _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users