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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a34b7ad6c6a0774,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f6g2000yqa.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Elias_Salom=E3o_Helou_Neto?= Newsgroups: comp.lang.ada Subject: Efficiency of code generated by Ada compilers Date: Fri, 6 Aug 2010 13:21:48 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 143.107.183.162 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1281126108 18908 127.0.0.1 (6 Aug 2010 20:21:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 6 Aug 2010 20:21:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f6g2000yqa.googlegroups.com; posting-host=143.107.183.162; posting-account=8auP9QoAAACkSx2qxJhP83KA6-tg78E8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12915 Date: 2010-08-06T13:21:48-07:00 List-Id: I would like to know how does code generated by Ada compilers compare to those generated by C++. I use C++ for numerical software implementation, but I am trying to find alternatives. One thing, however, I cannot trade for convenience is efficiency. Will Ada compiled code possibly be as efficient as that generated by C++ compilers? Also, I do need to have something similar to C++ "templated metaprogramming" techniques. In particular, C++0x will introduce variadic templates, which will allow us to write templates that will generate efficient, type-safe, variable-argument functions. Is there anything like that in Ada? If any of the above questions is to be negatively answered, I ask: why does Ada even exist? And further, is there any language which is _truly_ better (regarding code maintainability, readability and developing ease) than C++ and as overhead-free as it? Thank you in advance, Elias.