glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Embedded scripting language


From: Stéphane Magnenat
Subject: Re: [glob2-devel] Embedded scripting language
Date: Mon, 05 Dec 2005 17:02:12 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

A complete analysis of TCO for both approaches from the point of view
of a scenario writer is left as an exercise for the reader (drop it on
this list in a message with subject 'get the facts').
And the argument must be in favor of the switch/case solution then :-)

Well, I won't be so sure: having multiple cooperative thread (right now glob2 preempt threads if they use too much instruction per steps, and preemption is syncronous!) allow to specify one behaviour per thread, which is much cleaner, easier to understand and maintain that a big state machine. If you doubt, see how our big states machines in units and buildings are a mess and you'll get an idea of why we should avoid giant state machines whenever possible.

Steph




reply via email to

[Prev in Thread] Current Thread [Next in Thread]