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

On 27 June 2006 at 15:13 Jira commented:

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.


On 27 June 2006 at 15:21 Jira commented:

STR-596, martin:
Could it be a stack overflow, or is your stack size limit very large?


On 27 June 2006 at 15:46 Jira commented:

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;


On 27 June 2006 at 16:15 Jira commented:

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.


On 27 June 2006 at 17:32 Jira commented:

STR-596, dwaddington:
Humph, nope stack size doesn’t seem to be helping. ;-(


On 4 August 2006 at 13:33 Jira commented:

STR-596, visser:
implement using loop; add loop to run-time


On 28 January 2013 at 14:46 Eelco Visser removed tag 0.18M2

On 28 January 2013 at 14:46 Eelco Visser tagged interesting

Log in to post comments