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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: meaningfully/compellingly "advertising" Ada on StackOverflow Date: Fri, 18 May 2018 15:42:03 -0500 Organization: JSA Research & Innovation Message-ID: References: <6420bab2-0aef-4d36-b978-525e4de45e7e@googlegroups.com> <1559505943.548291689.457576.laguest-archeia.com@nntp.aioe.org> Injection-Date: Fri, 18 May 2018 20:42:04 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="2962"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:52441 Date: 2018-05-18T15:42:03-05:00 List-Id: "Luke A. Guest" wrote in message news:1559505943.548291689.457576.laguest-archeia.com@nntp.aioe.org... > Randy Brukardt wrote: > >> Did you try implementing that with the Tree container as opposed to using >> a >> raw nodes? Probably not quite as fast, but much less work to >> write/read/maintain (since the container does the storage management and >> provides most of the algorithms). > > The aim is to see how languages stack up. By using the standard containers > with their anti-tampering and other checks, you would be hobbling Ada in > this case. That depends on what axis you are considering "stacking up". You're probably right about the performance axis, but what about the readability/consiseness axis? There could be a *lot* less code using the tree container (since complex operations like iterations and storage management are built-in). That's of course the problem with such sites (for all languages) -- there's almost always a choice of implementation techniques with any general purpose language, and one size does not fit all (you never get the best readability/performance/writability/maintainability with a single design). Randy.