From: Francis Cianfrocca Date: 2006-09-11T07:12:54+09:00 Subject: Re: state machine in ruby John Carter wrote: > > Every state machine can be replaced by a Thread. Eliminating threads is part of the point here. They make certain operations easier to model but they have all their own baggage, including scalability problems. I'm not planning to participate if my comment ignites the one-millionth flame war on this subject, but I will note that there is a balance to be struck. And threads generally lose attractiveness as the performance requirements of an application go up. > Then a Regexp is a very very powerful, terse and expressive way of > recognizing exceedingly complex event streams. A Regexp is only appropriate for an event stream that can be modeled with a DFA. That does happen to be true of most comm protocols, but there are exceptions. Some streams require CFGs. -- Posted via http://www.ruby-forum.com/.