Bruce & Breeanna Rennie wrote:
> To all,
> 
> I have written the following test code to determine the Hamming numbers 
> (from a discussion on Lambda the Ultimate)
...
> It works fine till it gets to iteration 13. The executable under the 
> windows command prompt fails with sorry windows experiencing an error 
> kind of message.
> 
> Is there any obvious problem with what I am doing?

[Forgot to send this back to the group.]

The problem is that there is a lot of recursion going on and the default
stack size for Unicon/Icon is too small to handle it.  I tried setting
MSTKSIZE to 1000000 and the program runs to completion.

Adapting a lazy evaluation scheme (using co-expressions, perhaps)
might reduce the need for so much recursion more easily than simple
recursion elimination.  Anyone want to try?   (I'd like to, but
am a bit swamped at the moment.  Maybe later... it sounds like a
fun problem to work on!


-- 
Steve Wampler -- [EMAIL PROTECTED]
The gods that smiled on your birth are now laughing out loud.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to