On Sat, Jan 5, 2013 at 5:29 AM, Steve Davis <span dir="ltr"><<a href="mailto:steven.charles.davis@gmail.com" target="_blank">steven.charles.davis@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Hi Rusi,</div><div><br></div>Run that program two or three times in one vm session. You may find that io:format isn't the big issue here :-)<br></blockquote><div> </div><div>Yeah I know processes are not dying (overpopulation? :D )<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div>Welcome to the fun - your first program is definitely more sophisticated than my first erlang program was.</div>
</blockquote><div> </div></div></div><br>Thanks Steve for the kind words.<br><br><br>My problem is that Ive modelled this problem after haskell, where the solution is a one-liner:<br>   sieve (p:xs) = p : sieve [x | x<- xs, x `mod` p /= 0]<br>
<br>And a control-C solves the 'inifinity' problem<br>My attempts at 'finitizing' the erlang are evidently not so successful :D<br>Any tips?<br><br>[About me: Ive spent 2 1/2 decades doing and teaching functional programming. Never touched concurrency]<br>
<br>Rusi<br>