It is not about number of C's. It should compute even E=D*D*D*D*D*D*D*D*D*D*D*D*D*D,ok. but what I mean that your statements cause print out each result. (Notice coma instead of dot.) Your terminal can be slow for printing or there can be issue with erlang io subsystem. I have tested that in Konsole (KDE on my Linux) I wait several seconds to print out E but for examle in vim it will be crash reasonably. I don't know which console werl and erl uses but I think there may be big difference.<br>
<br><div class="gmail_quote">On Mon, Apr 20, 2009 at 5:51 PM, Steve Kirsch <span dir="ltr"><<a href="mailto:steve.kirsch@propel.com">steve.kirsch@propel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">sure, it works with "fewer" C's in the computation. I
already knew that.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">What do you meean a problem with io
speed?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">I'm not trying to make this computation, I was only doing
it for fun and was amazed I could crash the shell and its supervisor and nobody
restarted anything doing something as simple as a multiply.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Why does this happen and why does it happen only with erl
and not werl on the same windows machine?</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Hynek Vychodil
[mailto:<a href="mailto:vychodil.hynek@gmail.com" target="_blank">vychodil.hynek@gmail.com</a>] <br><b>Sent:</b> Monday, April 20, 2009 6:15
AM<br><b>To:</b> Steve Kirsch<br><b>Cc:</b>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><b>Subject:</b> Re: [erlang-questions] A simple
multiply in the shell will kill the shell and its
supervisor<br></font><br></div><div><div></div><div class="h5">
<div></div>Try do
this:<br>B=A*A*A*A*A,C=B*B*B*B*B*B*B*B*B*B*B,D=C*C*C*C*C*C*C*C*C*C*C,ok.<br><br>There
can be problem is with io speed.<br><br>
<div class="gmail_quote">On Mon, Apr 20, 2009 at 9:32 AM, Steve Kirsch <span dir="ltr"><<a href="mailto:steve.kirsch@propel.com" target="_blank">steve.kirsch@propel.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">This
only seems to kill erlang's shell permanently using erl on Windows.<br>werl on
the same machine works fine.<br><br>Startup erl on windows.<br><br>type in one
line:<br>A=7480957234592457928345982345987234857923589723485728347598245927385724<br>852984.
B=A*A*A*A*A. C=B*B*B*B*B*B*B*B*B*B*B. D=C*C*C*C*C*C*C*C*C*C*C.<br><br>then
your erl will stop responding. It isn't in a loop and it isn't<br>using up cpu
or crash dumping.<br><br>It is just completely dead.<br><br>I've tried this on
two completely different PC's running windows XP Pro<br>with the same result.
You do it on werl on the same machine, everything<br>is fine. Do it from erl,
and it hangs.<br><br>i am using R12B.<br><br>inspection via a remote shell
reveals that these processes have<br>disappeared from i()
listing:<br><0.26.0>
supervisor_bridge:user_sup/1
233<br>81 0<br>
gen_server:loop/6
9<br><br><0.28.0>
user:server/2
377<br>600 0<br>user
user:get_chars/7
21<br><br><0.29.0>
erlang:apply/2
4181<br>4649 0<br>
shell:get_command1/5
16<br><br><0.35.0>
erlang:apply/2
1597<br>2550 0<br>
shell:eval_loop/3
6<br><br><br>why
is this
happening?<br>_______________________________________________<br>erlang-questions
mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>--Hynek (Pichi) Vychodil<br><br>Analyze your data in
minutes. Share your insights instantly. Thrill your boss. Be a data
hero!<br>Try Good Data now for free: <a href="http://www.gooddata.com" target="_blank">www.gooddata.com
</a><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>--Hynek (Pichi) Vychodil<br><br>Analyze your data in minutes. Share your insights instantly. Thrill your boss. Be a data hero!<br>Try Good Data now for free: <a href="http://www.gooddata.com">www.gooddata.com</a><br>