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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: =?iso-8859-1?Q?GNAT=A0and?= Tasklets Date: Fri, 19 Dec 2014 12:01:32 +0100 Organization: cbb software GmbH Message-ID: References: <8277a521-7317-4839-b0b6-97f8155be1a4@googlegroups.com> <9e1d2b9f-1b97-4679-8eec-5ba75f3c357c@googlegroups.com> <478c81f9-5233-4ae1-a3eb-e67c4dbd0da1@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: YGNMlxhiQ90vAyH0QA4qPw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:24143 Date: 2014-12-19T12:01:32+01:00 List-Id: On Fri, 19 Dec 2014 10:40:03 +0000 (UTC), Georg Bauhaus wrote: > wrote: > >> It would be interesting to do a little survey on existing code using tasking. >> I have the impression that only tasks at Library level do rendez-vous and >> protected object synchronisation, and local tasks, most of the time, are >> limited to a rendez-vous with their parent task at the beginning or at >> the end. So maybe we should put restrictions on local tasks, so that we >> can map them to jobs. > > Won't the parallel loop feature be providing > for this kind of mini job: Parallel loop is useless for practical purposes. It wonders me why people wasting time with this. They could start with logical operations instead: X and Y is already parallel by default. AFAIK nothing in RM forbids concurrent evaluation of X and Y if they are independent. Same with Ada arithmetic. E.g. A + B + C + D So far no compiler evaluates arguments concurrently or vectorizes sub-expressions like: A B + C + D + Because if they did the result would work slower than sequential code. It simply does not worth the efforts with existing machine architectures. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de