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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9244cda856302b7e,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!31g2000vbf.googlegroups.com!not-for-mail From: kug1977 Newsgroups: comp.lang.ada Subject: Grand Central Dispatch (GCD) Date: Tue, 15 Sep 2009 00:31:14 -0700 (PDT) Organization: http://groups.google.com Message-ID: <26891b3c-d828-4b02-8280-2dc1f8fdc803@31g2000vbf.googlegroups.com> NNTP-Posting-Host: 89.54.124.67 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1252999874 27020 127.0.0.1 (15 Sep 2009 07:31:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 15 Sep 2009 07:31:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 31g2000vbf.googlegroups.com; posting-host=89.54.124.67; posting-account=3ciIaAoAAAA6pCfildcdAcuc3UQuirtL User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; de-de) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8327 Date: 2009-09-15T00:31:14-07:00 List-Id: Hi, I'm new to Ada, but this is something, I'm interested in. Apple released GCD as open source (http://www.macnn.com/articles/09/09/11/ tech.may.encourage.support/) and I asked myself, will the Ada Tasking benefied from GCD or is this something completely different. In GCD a task can be expressed either as a function or as a "block". "Blocks" are an extension to the syntax of C, C++, and Objective-C programming languages that encapsulate code and data into a single object in a way similar to a closure. In my understanding of Ada Tasking, the Ada tasks are no more then OS threads running a code block, if the OS support threads. The compiler add system intrinsic code to use the OS' tasking. On the other hand GCD is a library, so maybe linking against this lib would bring me this feature; but than in an not Ada like way, I guess. Thanks kug1977