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: a07f3367d7,be98569334bf359 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feed.news.qwest.net!mpls-nntp-04.inet.qwest.net!216.196.98.141.MISMATCH!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 18 Aug 2009 15:36:02 -0500 From: "Ira Baxter" Newsgroups: comp.lang.ada References: Subject: Re: C++ threads vs. Ada tasks - surprised Date: Tue, 18 Aug 2009 15:36:01 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.4548 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-ZbhJ+gRPHyYXHL3Gzh0uJpD9bj8m5I/kHn34bO2vF+dsrd6KwYR/I7Z2OnhPHPlozvfPDr2WiY+alca!WU8H/LEhwu3qw/T3c5euOn768qPCBDu3y84oNkWSc05E/PVu4LldOMzQRy2115NLlpT1LVl3Gx4o!+w== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Xref: g2news2.google.com comp.lang.ada:7851 Date: 2009-08-18T15:36:01-05:00 List-Id: "Maciej Sobczak" wrote in message news:f02a0d10-acaa-47d3-ade8-2e7bd4030bd8@d4g2000yqa.googlegroups.com... > An important point that was discussed there was the potential gain > from having tasking built-in the language. I have argued that there is > none *functional* gain (there is an obvious gain in readability, > though), or rather that all compiler tricks can be performed with > standard API as well. I can't speak for Ada, but it is clear that a compiler that understands the existence of tasks can generate better code than one can get from a pure library implementation. The compiler can preallocate space for the task stack and task control blocks, can prefill the areas as needed, can generate specialzed calls on the scheduler, can optimize away task interactions that it can prove are unnecessary, etc. Finally, having the compiler know about the tasks can enable easier expression of the task-based problem, easing coding effort, debugging and maintenance. We designed a parallel langauge, PARLANSE, to take advantage of this for SMP computing. See http://www.semanticdesigns.com/Products/PARLANSE (It isn't intended to be competition for Ada :) -- Ira Baxter, CTO www.semanticdesigns.com