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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,99210dd26e04d959 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 25 Jan 2011 23:07:01 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Loops and parallel execution References: <4d3eeef7$0$6879$9b4e6d93@newsspool2.arcor-online.net> <4d3f0a1d$0$6993$9b4e6d93@newsspool4.arcor-online.net> <1ge2i0esmav4i$.1jv4tflkkh9rf.dlg@40tude.net> In-Reply-To: <1ge2i0esmav4i$.1jv4tflkkh9rf.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4d3f4985$0$6774$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 25 Jan 2011 23:07:01 CET NNTP-Posting-Host: c92003a5.newsspool3.arcor-online.net X-Trace: DXC=:23HIRN?>d@^B]`=U:WelBMcF=Q^Z^V3H4Fo<]lROoRA8kFejVHBZJ0STUiUGOZXnQG`k[[SO X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:16692 Date: 2011-01-25T23:07:01+01:00 List-Id: On 1/25/11 10:32 PM, Dmitry A. Kazakov wrote: > On Tue, 25 Jan 2011 18:36:29 +0100, Georg Bauhaus wrote: > >> If a compiler detects two independent paths inside a loop, > > I don't see any application for this. Can you remember the last time you > wrote such loop? I cannot. In fact, I have seen such a loop recently; it computes a Mandelbrot set twice as fast. (I am confident that the lessons learned in finding this loop have found applications in other loops that manipulate larger amounts of numeric data.) The author has found a way to split Ada's Complex type into its constituent parts (two FPT objects) such that the program is a lot more efficient. (One would wish that types like Complex would be treated specially by the compiler.) > The Occam's par-statement could be a better candidate, but I don't see how > this could be useful under a modern general-purpose OS with their > "vertical" parallelism, when each task is assigned to one core. The thing > you propose is "horizontal" parallelism, when a task/process would run on > all cores simultaneously. Inmos' Occam ran under no true OS, and the > processor architecture was well suited for such ad-hoc parallelism. Modern > processors are very different from T805 and I doubt that they would allow > an efficient implementation of this. I have recently seen small boards carrying one processor each that could be connected to one another on all sides, IIRC. What matters thens is, I think, the efficiency of (a) distribution of small computation, and (b) the delivery of results at some nodes. Is it therefore so unthinkable to have something like a transputer these days? BTW, FUD places the whole idea (from the early days, I guess) subject to patent lawyerly action, nowadays, under names such as map-reduce...