Question Interesting that you run out of memory... 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project step #4, deadline Monday 25 November (Mike O'Donnell)
Re: More Provocative timings of tristream multiplication (Mike O'Donnell)
Date: 2002, Nov 24
From: Benedict Singer <singerb@uchicago.edu>

My solution looks practically the same as yours, yet I don't run out of memory calculating multiplication 6 times - I can go to somewhere between 20 and 24 times before I run out. The obvious differences in definition between mine and yours that I can see is that I don't use stream-map, and explicitly define something to multiply a trit into a stream; otherwise, given that we both used the same algorithim, our code looks similar.

Comparing your code and mine on the same system (mine) reveals that yours aborts when done 8 times, while mine goes higher (20 - 24). Does stream-map really change things that much? Is there something else I'm missing?


Messages

1. Feedback Post your code and let's compare by Mike O'Donnell, 2002, Nov 24
(_ More Two code versions and test results by Benedict Singer, 2002, Nov 24
1. More stream-map is probably not the culprit by Mike O'Donnell, 2002, Nov 24
2. More add_xreal and sub_xreal appear not to be the problem by Mike O'Donnell, 2002, Nov 24
3. More mult_power_3_xreal appears not to be the problem by Mike O'Donnell, 2002, Nov 24
4. News ruled out internal defines, define vs. letrec; mult_xreal_lt_one the culprit by Mike O'Donnell, 2002, Nov 24
5. Question Problem with global variables inherited in a recursive procedure? by Mike O'Donnell, 2002, Nov 24

to: "Interesting that you run out of memory..."