Mailing List Archive

To add OCCAM-like construction to Python
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.