没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > pycsp |
|
pycsp
|
| 2 | 0 | 182 |
| 贡献者 | 讨论 | 代码提交 |
The PyCSP project is an on-going project to bring CSP (Communicating Sequential Processes) to Python.
It was started in 2006 and has been updated about every three month. Bug reports and suggestions for new features are most welcome.
Example:
import sys
from pycsp import *
@process
def source(chan_out):
for i in range(10):
chan_out("Hello world (%d)\n" % (i))
retire(chan_out)
@process
def sink(chan_in):
while True:
sys.stdout.write(chan_in())
chan = Channel()
Parallel(
5 * source(-chan),
5 * sink(+chan)
)
For a short introduction read this.
A more complete documentation of all elements can be found here
Related publications:
Vinter, Brian ; Bjørndalen, John Markus ; Friborg, Rune Møllegaard. PyCSP Revisited. Communicating Process Architectures 2009 : WoTUG-32, Proceedings of the 32st WoTUG Technical Meeting (CPA-09). Eindhoven, The Netherlands.
Friborg, Rune Møllegaard ; Bjørndalen, John Markus ; Vinter, Brian. Three Unique Implementations of Processes for PyCSP. Communicating Process Architectures 2009 : WoTUG-32, Proceedings of the 32st WoTUG Technical Meeting (CPA-09). Eindhoven, The Netherlands. Friborg, Rune Møllegaard ; Vinter, Brian. CSPBuilder - CSP based Scientific Workflow Modelling. Communicating Process Architectures 2008 : WoTUG-31, Proceedings of the 31st WoTUG Technical Meeting (CPA-08). York, UK. Bjørndalen, John Markus ; Sampson, Adam T. Process-Oriented Collective Operations. Communicating Process Architectures 2008 : WoTUG-31, Proceedings of the 31st WoTUG Technical Meeting (CPA-08). York, UK. Bjørndalen, John Markus ; Vinter, Brian ; Anshus, Otto. PyCSP - Communicating Sequential Processes for Python. Communicating Process Architectures 2007 : WoTUG-30, Proceedings of the 30st WoTUG Technical Meeting (CPA-07). Surrey, UK.
标签:
