Jon Skeet said:
That may well be appropriate in some situations - and where it is,
that's great. I don't think it will solve *all* problems by a long
chalk, however, and from the little it says on that single page (which
is all I've looked at) it wouldn't scale well for various things which
really *require* more than one thing to be going on at a time.
Jon,
I don't expect you or anyone else to agree with me on this, but my opinion
(reflecting the paradigm shift I mentioned) is that Quantum Programming (or
an approach like it) will solve most problems better than today's OOP. It
may not solve all problems -- but I don't guess any single approach ever
will. However, there is the traditional approach to multi-threading, which
is filled with pitfalls. And then there are better approaches. I believe
Quantum Programming ("QP") is one of those better approaches.
QP includes the concept of active object computing. Here's an explanation
from the web site list above:
"Perhaps the most important characteristics of active object-based computing
model is that individual active objects can be programmed internally with
purely sequential techniques thus avoiding most of the hazards of
traditional multithreading (such as race conditions, deadlock, starvation,
or priority inversion). Yet, an active object application (as a whole) can
reap all the benefits of concurrent programming, such as fast task-level
response, good CPU utilization, and scalability."
I personally have no doubt that this approach will scale better than most
approaches commonly in use today. A similar technique is part of the
patented technology of Z-force (
http://www.z-force.com/) and an
investigation of their accomplishments should put any scalability doubts to
rest -- actually, that's an understatement. Traditional approaches can not
match the scalability of an approach like the one I'm discussing.
Regards,
Mountain