Re: Detecting endless recursion?

Lex Spoon <>
26 Feb 2004 01:06:59 -0500

          From comp.compilers

Related articles
[27 earlier articles]
Re: Detecting endless recursion? (Joachim Durchholz) (2004-02-08)
Re: Detecting endless recursion? (Alex Colvin) (2004-02-08)
Re: Detecting endless recursion? (Maarten D. de Jong) (2004-02-08)
Re: Detecting endless recursion? (Ken Rose) (2004-02-12)
Re: Detecting endless recursion? (Uli Kusterer) (2004-02-13)
Re: Detecting endless recursion? (Joachim Durchholz) (2004-02-26)
Re: Detecting endless recursion? (Lex Spoon) (2004-02-26)
| List of all articles for this month |

From: Lex Spoon <>
Newsgroups: comp.compilers
Date: 26 Feb 2004 01:06:59 -0500
Organization: Georgia Institute of Technology
References: 04-01-104 <bvjd1o$aho$> 04-02-084 04-02-135
Keywords: debug
Posted-Date: 26 Feb 2004 01:06:59 EST

Uli Kusterer <> writes:
> "Maarten D. de Jong" <> wrote:
>> While I'm far from an expert in language and compiler design, I happen
>> to know that in the programs used to drive the text-oriented Multi
>> User Dungeon-games (a.k.a. MUDs) the VM makes use of a concept known
>> as an evaluation cost or 'eval cost' for short. Basically it is a
>> counter which is increased everytime a VM instruction is executed. If
>> the counter exceeds a given amount, an error is thrown and execution
>> is aborted.
> I can't quite comprehend how that works. When would that counter be
> reset? I can't really come up with a place to reset this counter that
> wouldn't catch lots of legitimate code. 300 000 loop iterations are well
> within the reasonable range for a general-purpose programming language
> for loops.

I think the idea is that 300,000 loop iterations is crazy when you are
talking about MUDdy computations like "the goblin steals a potion from
player A and places it in box B". MUD's are supposed to stay lively,
you know, and it would be a bummer if they start, say, running hefty
AI's within the main loop of the MUD.

"Why is everything slowing down? Oh no, some newbie is talking to the
goblin king again!"


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.