To add OCCAM-like construction to Python

Zaur sz at zmail.ru
Mon Jun 7 20:08:44 CEST 1999


This message for people which working on Python 2.
Can Python "inherit" <par> statement from OCCAM for parallelizing.

For example:
   par
      <statement1>
      <statement2>
   <statement3>
where interpreter (internally) run <statement1> and <statement2> in
parallel
(for example, in different threads) , wait while they complete and then
execute <statement3>.

Then use something like:
   X = ?Y
where if Y is empty (None) current thread wait while Y become nonempty.
   X! = Y
where current thread wait while X is busy and then assign: X = Y

Or something else ...  in OCCAM-style.
Sintax in above statements may be adopt for Python, of cause.

I think and hope that it is easy for Python.
Python inherits many features from programming languages (C, Pascal,
...),
scripts (Perl, Tcl, ...), shells (Rexx, ...), object orientation. I
believe that it can also inherit parallel processing from OCCAM, which
also has clear semantics and easy sintax.












More information about the Python-list mailing list