csp lib

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

csp lib

Sonny To
Does Kawa have a CSP lib like core.async has for clojure?

-Sonny
Reply | Threaded
Open this post in threaded view
|

Re: csp lib

Per Bothner
On 08/26/2017 10:34 AM, Sonny To wrote:
> Does Kawa have a CSP lib like core.async has for clojure?

Not directly.

Kawa does have promises, which can be used as one-shot channels:
https://www.gnu.org/software/kawa/Lazy-evaluation.html
See also 'future':
https://www.gnu.org/software/kawa/Threads.html

You also have easy access to all the Java libraries,
such as java.util.concurrent.
Or you could use JCSP https://www.cs.kent.ac.uk/projects/ofa/jcsp/
--
        --Per Bothner
[hidden email]   http://per.bothner.com/