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,1a44c40a66c293f3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps82.POSTED!53ab2750!not-for-mail Sender: blaak@METROID Newsgroups: comp.lang.ada Subject: Re: PAR (Was: Embedded languages based on early Ada) References: <1172192349.419694.274670@k78g2000cwa.googlegroups.com> <1172239820.896603.222120@k78g2000cwa.googlegroups.com> <113ls6wugt43q$.cwaeexcj166j$.dlg@40tude.net> <1i3drcyut9aaw.isde6utlv6iq.dlg@40tude.net> <1c61jqeqo68w$.2irtg70stnsa.dlg@40tude.net> From: Ray Blaak Organization: The Transcend Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 06 Mar 2007 07:07:07 GMT NNTP-Posting-Host: 154.20.94.243 X-Trace: edtnps82 1173164827 154.20.94.243 (Tue, 06 Mar 2007 00:07:07 MST) NNTP-Posting-Date: Tue, 06 Mar 2007 00:07:07 MST Xref: g2news2.google.com comp.lang.ada:9709 Date: 2007-03-06T07:07:07+00:00 List-Id: "Dr. Adrian Wrigley" writes: > If you can persuade programmers to use "par" unless they explicitly > *need* sequential execution, a great many statements will be marked > as concurrent. Numeric codes will use "par" in the computational > core, as well as outer layers of execution. I would strongly discourage this practice. Getting sequential programs correct is hard enough. Parallel programs are vastly more difficult and subtle. All concurrency constructs should be very explicit, clear, and robust. Ada has the fundamentals right, if only a little verbose to specify. This is also why I dislike the notion of special concurrency pragmas that suggest concurrency only a possibility. It should instead of made clearly obvious in the source, so as to aid the programmer to a maximum effect in their reasonings about the control flow. > Mandating sequential execution except where the "pragma" is used > puts parallel statements at an immediate disadvantage - it makes > them seem to be second class citizens, added on afterwards > in an attempt to speed things up. It is only 2nd class because our brains our wired that way, at least in terms of how we know how to program. The point is to choose one way or the other, and to have the source be clear about that decision. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, rAYblaaK@STRIPCAPStelus.net The Rhythm has my soul.