Occam (programming language)
Occam is a programming language which is concurrent and builds on the communicating sequential processes (CSP) process algebra, and shares many of its features.[7] It is named after philosopher William of Ockham, after whom Occam's razor is named.[src] Occam is an imperative procedural language (such as Pascal).[7] It was developed by David May and others at Inmos (trademark INMOS), advised by Tony Hoare, as the native programming language for their transputer microprocessors, but implementations for other platforms are available.[7] The most widely known version is occam 2; its programming manual was written by Steven Ericsson-Zenith and others at Inmos.[6]
Occam is a programming language which is concurrent and builds on the communicating sequential processes (CSP) process algebra, and shares many of its features.[7] It is named after philosopher William of Ockham, after whom Occam's razor is named.[src] Occam is an imperative procedural language (such as Pascal).[7] It was developed by David May and others at Inmos (trademark INMOS), advised by Tony Hoare, as the native programming language for their transputer microprocessors, but implementations for other platforms are available.[7] The most widely known version is occam 2; its programming manual was written by Steven Ericsson-Zenith and others at Inmos.[6] ==Overview== In the following examples indentation and formatting are critical for parsing the code: expressions are terminated by the end of the line, lists of expressions need to be on the same level of indentation.[src] This feature, named the off-side rule, is also found in other languages such as Haskell and Python.[src] Communication between processes work through named channels.[src] One process outputs data to a channel via ![src] while another one inputs data with ?[src] .[src] Input and output cannot proceed until the other end is ready to accept or offer data.[src] (In the not proceeding case it is often said that the process blocks on the channel.[src] However, the program will neither spin nor poll; thus terms like wait, hang or yield may also convey the behaviour; also in the context that it will not block other independent processes from running.) Examples (c is a variable): keyboard ?[src] c screen ![src] c SEQ (sequential) introduces a list of expressions that are evaluated sequentially.[src] This is not implicit as it is in most other programming languages.[src] Example: SEQ x := x + 1 y := x * x PAR (parallel) begins a list of expressions that may be evaluated concurrently.[src] Example: PAR p() q() ALT (alternative) specifies a list of guarded commands.[src] The guards are a combination of a Boolean condition and an input expression, both optional.[src] Each guard for which the condition is true and the input channel is ready is successful.[src] One of the successful alternatives is selected for execution.[src] Example: ALT count1 out .[src] ==Language revisions== ===occam 1=== occam 1 (released 1983) was a preliminary version of the language which borrowed from David May's work on EPL and Tony Hoare's CSP.[2] This supported only the VAR data type, which was an integral type corresponding to the native word length of the target architecture, and arrays of only one dimension.[src] ===occam 2=== occam 2 is an extension produced by Inmos Ltd in 1987 that adds floating-point support, functions, multi-dimensional arrays and more data types such as varying sizes of integers (INT16, INT32) and bytes.[4] With this revision, occam became a language able to express useful programs, whereas occam 1 was more suited to examining algorithms and exploring the new language (however, the occam 1 compiler was written in occam 1, so there is an existence proof that reasonably sized, useful programs could be written in occam 1, despite its limits).[7] ===occam 2.1=== occam 2.1 was the last of the series of occam language developments contributed by Inmos.[4] Defined in 1994, it was influenced by an earlier proposal for an occam 3 language (also referred to as "occam91" during its early development) created by Geoff Barrett at Inmos in the early 1990s.[6] A revised Reference Manual describing occam 3 was distributed for community comment, but the language was never fully implemented in a compiler.[4] occam 2.1 introduced several new features to occam 2, including: Named data types (DATA TYPE x IS y) Named records Packed records Relaxation of some of the type conversion rules New operators (e.g.[src] BYTESIN) Channel retyping and channel arrays Ability to return fixed-length array from function.[src] For a full list of the changes see Appendix P of the Inmos occam 2.1 Reference Manual.[4] ===occam-π=== occam-π is the common name for the occam variant implemented by later versions of the Kent Retargetable occam Compiler (KRoC).[2] The addition of the symbol π (pi) to the occam name is an allusion to KRoC occam including several ideas inspired by the π-calculus.[2] It contains several significant extensions to the occam 2.1 compiler, for example: Nested protocols Run-time process creation Mobile channels, data, and processes Recursion Protocol inheritance Array constructors Extended rendezvous ==See also== Concurrent programming languages List of concurrent and parallel programming languages ==References== ==Further reading== * [https://web.archive.org/web/20070927235321/http://www.booksonline.iospress.com/Content/View.aspx?piid=91 [https://web.archive.org/web/20070927235351/http://www.booksonline.iospress.com/Content/View.aspx?piid=56] Egorov, A., Technical University – Sofia, (1983–2011) Записки по Компютърни архитектури[1]
41 sentences · 41 cited inline · 7 references stored
References
- Occam on Field-Programmable Gate Arrays · retrieved 2016-11-27 · rev 1361056571
Cite this reference
MLA "Occam on Field-Programmable Gate Arrays." Cook, Barry M; Peel, RMA (1999-04-11). 2016-11-27. https://books.google.com/books?id=nvnnZtJWAZkC&q=architectures+languages+and+techniques+barry+cook. Accessed 25 November 2026.
Chicago "Occam on Field-Programmable Gate Arrays." Cook, Barry M; Peel, RMA (1999-04-11). 2016-11-27. https://books.google.com/books?id=nvnnZtJWAZkC&q=architectures+languages+and+techniques+barry+cook.
APA Cook, Barry M; Peel, RMA (1999-04-11). (2016). Occam on Field-Programmable Gate Arrays. Retrieved November 25, 2026, from https://books.google.com/books?id=nvnnZtJWAZkC&q=architectures+languages+and+techniques+barry+cook
- occam-pi: Blending the best of CSP and the pi-calculus · retrieved 2006-11-23 · rev 1361056571
Cite this reference
MLA "occam-pi: Blending the best of CSP and the pi-calculus." Barnes, Fred; Welch, Peter (2006-01-14). 2006-11-23. https://www.cs.kent.ac.uk/projects/ofa/kroc/. Accessed 25 November 2026.
Chicago "occam-pi: Blending the best of CSP and the pi-calculus." Barnes, Fred; Welch, Peter (2006-01-14). 2006-11-23. https://www.cs.kent.ac.uk/projects/ofa/kroc/.
APA Barnes, Fred; Welch, Peter (2006-01-14). (2006). occam-pi: Blending the best of CSP and the pi-calculus. Retrieved November 25, 2026, from https://www.cs.kent.ac.uk/projects/ofa/kroc/
- occam Programming Manual . Prentice-Hall. 1984. ISBN 0-13-629296-8 . Wikipedia revision 1361056571, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1361056571
Cite this reference
MLA "occam Programming Manual . Prentice-Hall. 1984. ISBN 0-13-629296-8 . Wikipedia revision 1361056571, retrieved 2026-11-19." occam Programming Manual. 2026-11-18. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 25 November 2026.
Chicago "occam Programming Manual . Prentice-Hall. 1984. ISBN 0-13-629296-8 . Wikipedia revision 1361056571, retrieved 2026-11-19." occam Programming Manual. 2026-11-18. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA occam Programming Manual. (2026). occam Programming Manual . Prentice-Hall. 1984. ISBN 0-13-629296-8 . Wikipedia revision 1361056571, retrieved 2026-11-19. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- a b occam 2.1 Reference Manual (PDF) . SGS-Thomson Microelectronics Ltd. 1995-05-12. Inmos document 72 occ 45 03 Wikipedia revision 1361056571, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1361056571
Cite this reference
MLA "a b occam 2.1 Reference Manual (PDF) . SGS-Thomson Microelectronics Ltd. 1995-05-12. Inmos document 72 occ 45 03 Wikipedia revision 1361056571, retrieved 2026-11-19." a b occam 2. 2026-11-18. https://www.wotug.org/occam/documentation/oc21refman.pdf. Accessed 25 November 2026.
Chicago "a b occam 2.1 Reference Manual (PDF) . SGS-Thomson Microelectronics Ltd. 1995-05-12. Inmos document 72 occ 45 03 Wikipedia revision 1361056571, retrieved 2026-11-19." a b occam 2. 2026-11-18. https://www.wotug.org/occam/documentation/oc21refman.pdf.
APA a b occam 2. (2026). a b occam 2.1 Reference Manual (PDF) . SGS-Thomson Microelectronics Ltd. 1995-05-12. Inmos document 72 occ 45 03 Wikipedia revision 1361056571, retrieved 2026-11-19. Retrieved November 25, 2026, from https://www.wotug.org/occam/documentation/oc21refman.pdf
- Ericsson-Zenith, Steven (1988). occam 2 Reference Manual . Prentice-Hall. ISBN 0-13-629312-3 . Wikipedia revision 1361056571, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1361056571
Cite this reference
MLA "Ericsson-Zenith, Steven (1988). occam 2 Reference Manual . Prentice-Hall. ISBN 0-13-629312-3 . Wikipedia revision 1361056571, retrieved 2026-11-19." Ericsson-Zenith, Steven (1988). 2026-11-18. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 25 November 2026.
Chicago "Ericsson-Zenith, Steven (1988). occam 2 Reference Manual . Prentice-Hall. ISBN 0-13-629312-3 . Wikipedia revision 1361056571, retrieved 2026-11-19." Ericsson-Zenith, Steven (1988). 2026-11-18. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Ericsson-Zenith, Steven (1988). (2026). Ericsson-Zenith, Steven (1988). occam 2 Reference Manual . Prentice-Hall. ISBN 0-13-629312-3 . Wikipedia revision 1361056571, retrieved 2026-11-19. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- occam 3 Reference Manual · retrieved 2008-03-23 · rev 1361056571
Cite this reference
MLA "occam 3 Reference Manual." Barrett, Geoff; Ericsson-Zenith, Steven (1992-03-31). 2008-03-23. https://www.wotug.org/occam/documentation/oc3refman.pdf. Accessed 25 November 2026.
Chicago "occam 3 Reference Manual." Barrett, Geoff; Ericsson-Zenith, Steven (1992-03-31). 2008-03-23. https://www.wotug.org/occam/documentation/oc3refman.pdf.
APA Barrett, Geoff; Ericsson-Zenith, Steven (1992-03-31). (2008). occam 3 Reference Manual. Retrieved November 25, 2026, from https://www.wotug.org/occam/documentation/oc3refman.pdf
- Occam (programming language) · retrieved 2026-10-19 · rev 1361056571
Cite this reference
MLA "Occam (programming language)." Wikipedia. 2026-10-19. https://en.wikipedia.org/w/index.php?oldid=1361056571. Accessed 25 November 2026.
Chicago "Occam (programming language)." Wikipedia. 2026-10-19. https://en.wikipedia.org/w/index.php?oldid=1361056571.
APA Wikipedia. (2026). Occam (programming language). Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361056571
Cite this article
MLA
"Occam (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/occam-programming-language. Accessed 25 November 2026.
Chicago
"Occam (programming language)." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/occam-programming-language.
APA
encyclopegia.org. (2026). Occam (programming language). Retrieved November 25, 2026, from https://encyclopegia.org/wiki/occam-programming-language
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| release date | 1983 | Wikipedia |