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,ad4585f2971e47c5,start 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!feeder.news-service.com!feeder.news-service.com!news2.euro.net!newsfeed.freenet.ag!news.netcologne.de!ramfeed1.netcologne.de!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail From: "Luis P. Mendes" Subject: Need some light on using Ada or not Newsgroups: comp.lang.ada User-Agent: Pan/0.133 (House of Butterflies) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 18 Feb 2011 22:52:38 GMT Message-ID: <4d5ef836$0$23753$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 89.181.27.94 X-Trace: news.sunsite.dk DXC=emPRPGcJmmSPF49IdUYT?QYSB=nbEKnk[=Wf0P_7c\ZVEHH=C_KSIRWlc:4cA5P5iUY61G6h^GXkQbR8DVmSCdBSfgTBAKGZeYT X-Complaints-To: staff@sunsite.dk Xref: g2news1.google.com comp.lang.ada:17438 Date: 2011-02-18T22:52:38+00:00 List-Id: Hi, I have two projects to work, one of them in the data mining field and another regarding xml parsing. I've been learning C++ (from a Python, Pascal, VB background), due to it being fast (sure it depends on the implementation) and because it has a lot of libraries. But I find C++ a very complex language and Ada appeals to me specially for its overall safety. Or maybe also because I don't like to go with majorities... :-) I have some questions, however, that I'd like to be answered: 1. If Ada is more type safe and restricted than C++, how can it be significantly slower? Please see: http://shootout.alioth.debian.org/u64q/benchmark.php? test=all&lang=gnat where for some tests, Ada is 2x, 3x, 4x and 5x slower. For the data mining field as I want to implement, speed is essential. I'll code in Linux and use gcc as a compiler/linker. 2. In C++ I can use lots of libraries. I'm thinking on data visualization libraries, for example http://www.graphviz.org/Gallery/undirected/ softmaint.html. I've read that Ada can use some C bindings. Can I use any C library? Some? Is it easy? I don't want to drop C++ for Ada to build a project that later has to be rewritten in C++ because of lack of libraries. 3. Is there any kind of fast xml stream parser library? No DOM or SAX, just to read attributes. Luis