Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Occam

< >

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

#730on PLDB 41Years Old
Wikipedia · Docs

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...


Example from hello-world:
PROGRAM Hello #USE ioconv SEQ write.full.string(screen,"Hello World")
PROGRAM Hello -- Hello world in Occam #USE ioconv SEQ write.full.string(screen,"Hello World!")
Example 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
Strings ✓ "Hello world" "
Print() Debugging ✓ write.full.string
Semantic Indentation ✓

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0