Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
'''Occam''' (from [[William of Ockham]] of [[Occam's Razor]] fame) is a [[Parallel computing|parallel]] [[programming language]] that builds on [[Communicating Sequential Processes]] (CSP) and shares many of their features. It is, in a way, a practical executable implementation of CSP.
Note in examples below that indentation and formatting are critical for parsing: expressions are terminated by the end of the line, lists of expressions need to be on the same level of indentation (this feature is also found in other languages, such as [[Python (programming language)|Python]], [[Haskell (programming language)|Haskell]], [[Icon (programming language)|Icon]], [[Miranda (programming language)|Miranda]], and [[ABC (programming language)|ABC]]).▼
==Overview==
▲Note that in the examples below
Communication between processes work through named ''channels''. One process outputs data to a channel via '''!''' while another one inputs data with '''?'''. Input and output will block until the other end is ready to accept or offer data. Examples (c is a variable):
|