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,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: mheaney@on2.com (Matthew Heaney) Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) Date: 23 Sep 2004 09:20:53 -0700 Organization: http://groups.google.com Message-ID: <1ec946d1.0409230820.455ad242@posting.google.com> References: <1777528.JKnUEYTOM6@linux1.krischik.com> NNTP-Posting-Host: 66.162.65.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1095956454 27681 127.0.0.1 (23 Sep 2004 16:20:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 23 Sep 2004 16:20:54 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:4022 Date: 2004-09-23T09:20:53-07:00 List-Id: Martin Krischik wrote in message news:<1777528.JKnUEYTOM6@linux1.krischik.com>... > > Which shows that the "1 instantiation only" argument of Charles and > Ada.Containers is misguided. So think I stick with the Booch Components > even after Ada 2005. I haven't seen Simon's wordcount code in a while (probably not since Simon and I met in Vienna), but I suspect we're comparing apples and oranges here. Simon probably used the BC set, which stores each element with a count. In Charles and AI-302, the container model is a little different, and you would use a map instead, with the word as the map key and the frequency count as the map element. So it would not surprise me if the wordcount problem has slightly fewer lines of code using the BC set than using the AI-302 map, since in the former case you're using what is essentially a special purpose container. Someone needs to make a feature-by-feature comparison of Simon's BC solution and the AI-302 solution I just posted. (I don't have time right now since I'm too busy incorporating the Madison changes.) Note that the example I posted does a lot of extra stuff to illustrate API features, extra stuff that isn't strictly necessary to solve the wordcount problem. If the unnecessary stuff were removed, then the comparison between BC and AI-302 solutions would be more realistic. > When we at it: I still have the "indefinite extension" within AdaCL. > Howabout joining them? All the containers in AI-302 have variants that support indefinite keys and indefinite elements. (All of the containers are now publicly taggged, too.) If AI-302 doesn't meet your needs, then you need to let us know. Please peruse the a-c*.ad[sb] sources at the tigris website. (Note that I'm still incorporating changes from the most recent ARG meeting.) -Matt