[pure-lang-users] Runaway trains
Status: Beta
Brought to you by:
agraef
From: John L. <joh...@gm...> - 2008-08-20 12:48:35
|
Hey guys, I was playing round with the symbolic computation stuff from the examples, and had the idea of trying to reduce -(a) to -a. So I entered the following line: -(a) = -a; I had a bad feeling about that, but went with it anyway. When I tried to test it with: -(a); Pure instantly took almost 100% of my processor and went into what I presume was an infinite loop. I had seen this coming, of course. Another time I tried it, Pure just quit with no error. Memory usage seems to remain constant. Should runaway things like this be detected or not? I'm guessing not... John |