jsjoins
A JavaScript concurrency library based on the join calculus.
The join calculus is a formal model for message passing concurrency. The name comes from its most powerful feature: join patterns (also known as chords). In the join calculus, programs do not actively request to receive a messages on a certain channel. Instead, they use join patterns, which declaratively specify reactions to specific message patterns (much like method declarations in object-oriented programming). The power of join patterns is that they can be used to atomically process messages from multiple channels.
Usage
Creating channels:
var joins = ;var mySyncChannel = joins;var myAsyncChannel = joins;
Sending messages:
;; myAsyncChannel;myAsyncChannel;
Join patterns:
joins; joins;