Languages Features Calendar About Lists Add Language
GitHub icon



Occam is a programming language created in 1983 by David May.

occam is a concurrent programming language that builds on the communicating sequential processes (CSP) process algebra, and shares many of its features. It is named after William of Ockham of Occam's Razor fame. occam is an imperative procedural language (such as Pascal). Read more on Wikipedia...

#200on PLDB 39Years Old 325.0Users

Example code from hello-world:

PROGRAM Hello #USE ioconv SEQ write.full.string(screen,"Hello World")

Example code from the Hello World Collection:

PROGRAM Hello -- Hello world in Occam #USE ioconv SEQ write.full.string(screen,"Hello World!")

Example code from Wikipedia:

ALT count1 < 100 & c1 ? data SEQ count1 := count1 + 1 merged ! data count2 < 100 & c2 ? data SEQ count2 := count2 + 1 merged ! data status ? request SEQ out ! count1 out ! count2

Language features

Feature Supported Example Token
"Hello world"
Print() Debugging write.full.string
Semantic Indentation

Books about Occam on goodreads

title author year reviews ratings rating
Programming In Occam Geraint Jones 1 3 3.00

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub