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!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.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: Intervention needed? Date: Mon, 1 Apr 2019 16:17:21 -0500 Organization: JSA Research & Innovation Message-ID: References: <6e1977a5-701e-4b4f-a937-a1b89d9127f0@googlegroups.com><87sgv5k1j5.fsf@mid.deneb.enyo.de> <87zhpdgvhl.fsf@mid.deneb.enyo.de> Injection-Date: Mon, 1 Apr 2019 21:17:22 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="24726"; 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: reader01.eternal-september.org comp.lang.ada:56037 Date: 2019-04-01T16:17:21-05:00 List-Id: "Florian Weimer" wrote in message news:87zhpdgvhl.fsf@mid.deneb.enyo.de... >* Randy Brukardt: > >>>"Florian Weimer" wrote in message >>>news:87sgv5k1j5.fsf@mid.deneb.enyo.de... >>>* Randy Brukardt: >>> >>>> But a better question is whether the Rust borrow checker allows >>>> building proper ADTs for most data structures. >>> >>> The Rust standard library uses unsafe extensively in the >>> implementation of containers. I'm not sure if this is a problem. >>> Most languages have this property (that the standard library cannot be >>> implemented in the language itself). >>> >>> For container libraries, the only widely-used counter-example (of >>> which I'm aware) is pre-generic Java. >> >> You're saying Ada isn't widely used? And I thought the STL was >> implemented >> in C++. > > The GNAT implementation doesn't seem particularly memory-safe to me, > looking at Ada.Containers.Bounded_Ordered_Maps (which picked more or > less at random). You said "Most languages have this property (that the standard library cannot be implemented in the language itself)." You didn't say anything about memory safety -- and it wouldn't make sense anyway, since most languages don't have "memory safety" (whatever that is) in the first place. For Ada, the entire idea of the containers was to allow implementations to have as much (or as little) memory safety as they want. There's none that an implementation can provide with access types. Randy.