From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91003 invoked by alias); 26 Aug 2017 18:04:37 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 89909 invoked by uid 89); 26 Aug 2017 18:04:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:aibo.runbox.com, csp, Hx-spam-relays-external:aibo.runbox.com, HX-HELO:aibo.runbox.com X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 26 Aug 2017 18:04:34 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dlfRf-0006zY-Iv; Sat, 26 Aug 2017 20:04:31 +0200 Received: from 70-36-239-209.dsl.dynamic.fusionbroadband.com ([70.36.239.209] helo=localhost.localdomain) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1dlfRd-0003yu-Qa; Sat, 26 Aug 2017 20:04:30 +0200 Subject: Re: csp lib To: Sonny To , kawa@sourceware.org References: From: Per Bothner Message-ID: Date: Sat, 26 Aug 2017 18:04:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q3/txt/msg00006.txt.bz2 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 per@bothner.com http://per.bothner.com/