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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,115bda8caeda5fa4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.66.161 with SMTP id g1mr26543pbt.10.1315906758355; Tue, 13 Sep 2011 02:39:18 -0700 (PDT) Path: m9ni5274pbd.0!nntp.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!news.swapon.de!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 13 Sep 2011 11:39:16 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Does GNAT support a thread-free RTS? References: In-Reply-To: Message-ID: <4e6f24c4$0$7629$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 13 Sep 2011 11:39:16 CEST NNTP-Posting-Host: 2577e099.newsspool1.arcor-online.net X-Trace: DXC=?iBJ>8ak17;;]cDoEWD6A4ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg28V6?4Fa=5g;nc\616M64>:Lh>_cHTX3j=NKi_fP2CQP7 X-Complaints-To: usenet-abuse@arcor.de Xref: news1.google.com comp.lang.ada:17940 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2011-09-13T11:39:16+02:00 List-Id: On 13.09.11 10:30, Simon Wright wrote: > My prompt for asking this was a colleague who was used to Erlang and was > complaining that GNAT's use of OS threads meant he would have to change > his design mindset to not use thousands of tasks (Erlang processes). Just an idea: using mostly functions together with protected channel objects should allow to use Ada in a way one might be used to when passing Erlang data around. You write to some entry/procedure of a PO (pass data down the channel) and read from some entry/function of the PO (read from a channel). Add barriers as needed.