From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Asynchronous channels in Ada Date: Fri, 19 Feb 2016 14:51:32 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 19 Feb 2016 21:48:36 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b23ebdd8f1375266fb11e3d213ad4434"; logging-data="9201"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VroYOh9/aZaUt0/yt2UJa2JRLJAMkD9w=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: X-Mozilla-News-Host: news://freenews.netfront.net Cancel-Lock: sha1:4K6JdN0j0qVFuFy74HAbbWXv79g= Xref: news.eternal-september.org comp.lang.ada:29562 Date: 2016-02-19T14:51:32-07:00 List-Id: On 02/19/2016 02:02 PM, Hadrien Grasland wrote: > > On the other hand, asynchronous "buffered" channels are really a neat > abstraction for producer-consumer problems, and I regularly end up facing a > problem where I wish I had some in Ada. I'm pretty convinced that one could > quite easily build a library-based Ada abstraction which offers similar > functionality, but better. Before trying it myself, though, I'd like to check > out here if you know of an open-source Ada project which has already > implemented something similar. > > Anyone is aware of something like this that would already exist in the wild? For Ada 12, there are synchronous queues (ARM A.18.27-29). http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-A-18-27.html If you use a language supported by more than one compiler vendor, the PragmARCs (both for ISO/IEC 8652:1995 and ISO/IEC 8652:2007) have protected queues, both bounded and unbounded: https:/pragmada.x10hosting.com/ https://github.com/jrcarter/PragmARC -- Jeff Carter "You empty-headed animal-food-trough wiper." Monty Python & the Holy Grail 04