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!news.szaf.org!news.enyo.de!.POSTED!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Intervention needed? Date: Fri, 29 Mar 2019 23:35:02 +0100 Message-ID: <87zhpdgvhl.fsf@mid.deneb.enyo.de> References: <6e1977a5-701e-4b4f-a937-a1b89d9127f0@googlegroups.com> <87sgv5k1j5.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: news.enyo.de; logging-data="8955"; mail-complaints-to="news@enyo.de" Cancel-Lock: sha1:JJjvnUjmmpD/x0kVyK5VBi6m/uc= Xref: reader01.eternal-september.org comp.lang.ada:56010 Date: 2019-03-29T23:35:02+01:00 List-Id: * 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).