STR-596: iset-add fails on large lists.
When I try to add in exceess of 25621 elements, the Stratego program does a silent abort.
Submitted on 27 June 2006 at 14:55
Issue Log
STR-596, dwaddington:
This issue may have something to do with the “large list” issue. I have tried doing a simple map(debug) and that also does a silent failure.
STR-596, martin:
Could it be a stack overflow, or is your stack size limit very large?
STR-596, dwaddington:
Martin,Yes, I think you could be right. Can you remind me how to set the stack size? I once knew; in another life.
Daniel;
STR-596, martin:
You can set the stack limit with “ulimit -s 32768” (or unlimited if you are not afraid of crashing your computer ;) )Btw, in 0.17 we will probably introduce a workaround (loop) for the specific problem of a map over gigantic lists, that will not do nested calls. It’s currently being tested in a different package and will probably be moved into Stratego/XT later.
Of course, this problem would also be solved by implementing tail recursion elimination.
STR-596, dwaddington:
Humph, nope stack size doesn’t seem to be helping. ;-(
STR-596, visser:
implement using loop; add loop to run-time
Log in to post comments