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:47:23 -0500 Organization: JSA Research & Innovation Message-ID: References: <6420bab2-0aef-4d36-b978-525e4de45e7e@googlegroups.com> <1559505943.548291689.457576.laguest-archeia.com@nntp.aioe.org> <87fu2psqpj.fsf@nightsong.com> <300fd624-72a0-4171-90dc-49ad5df4fa21@googlegroups.com> <877eo1shlv.fsf@nightsong.com> <9620309c-8abc-4ff2-b631-73bbc72ee5d4@googlegroups.com> Injection-Date: Fri, 18 May 2018 20:47:24 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="3151"; 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:52442 Date: 2018-05-18T15:47:23-05:00 List-Id: "John Perry" wrote in message news:9620309c-8abc-4ff2-b631-73bbc72ee5d4@googlegroups.com... > On Thursday, May 17, 2018 at 11:38:53 PM UTC-5, Paul Rubin wrote: >> John Perry writes: >> > I'm curious: did my implementation circumvent safety features? >> >> Were there any unchecked array accesses or anything like that? If not, >> that's a big help. > > No arrays at all; it's just linked lists. It's dangerous inasmuch as > pointers are >dangerous, but I know from experience that Ada has certain rules to prevent >pointer dangling. Exactly: raw use of pointers is dangerous - you either get dangling pointers or leaks. And they're more work to use than the containers. They're best limited to implementing data structures where performance is paramount. A container implementation handles memory management and much of the alogithms for you. That's easier to write, potentially safer, and may (or may) not be similar in performance. Which was the reason for my original question. Randy.