|[27 earlier articles]|
|Re: Detecting endless recursion? email@example.com (Joachim Durchholz) (2004-02-08)|
|Re: Detecting endless recursion? firstname.lastname@example.org (Alex Colvin) (2004-02-08)|
|Re: Detecting endless recursion? email@example.com (Maarten D. de Jong) (2004-02-08)|
|Re: Detecting endless recursion? firstname.lastname@example.org (Ken Rose) (2004-02-12)|
|Re: Detecting endless recursion? email@example.com (Uli Kusterer) (2004-02-13)|
|Re: Detecting endless recursion? firstname.lastname@example.org (Joachim Durchholz) (2004-02-26)|
|Re: Detecting endless recursion? email@example.com (Lex Spoon) (2004-02-26)|
|From:||Lex Spoon <firstname.lastname@example.org>|
|Date:||26 Feb 2004 01:06:59 -0500|
|Organization:||Georgia Institute of Technology|
|References:||04-01-104 <email@example.com> 04-02-084 04-02-135|
|Posted-Date:||26 Feb 2004 01:06:59 EST|
Uli Kusterer <firstname.lastname@example.org> writes:
> "Maarten D. de Jong" <email@example.com> 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!"
Return to the
Search the comp.compilers archives again.