decorators vs GIL

Dominic nomail at nospam.no
Sun Aug 8 03:51:26 EDT 2004


> threads: make a heavy process, doing a
> single event loop. 
Well, often chaining generators is good enough!

Another -- probably not so good solution is to
do an interface specification and generate
code with it. "Active Tasks" could be
automatically _inverted_ , depending on your choice.
Michael Jackson (hee, not the singer) has
done this in the 70s in COBOL. Maybe
you have heard of JSD or JSP ;-)
(JSP (Jackson Structured Programming) and
JSD (Jackson System Development))
In JSD you model entities as processes. (CSP)
(Yes it is OOP analysis ;-) )
Afterwards you map processes too processors.
Probably you have only one, so all
processes but one must be inverted.
However a scheduler solution is
also possible.

Maybe someone comes up with a @decorator
solution, which does invert active
tasks on the fly :-)

Ciao,
  Dominic



More information about the Python-list mailing list