From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Better way to fill Storage_IO? Date: Tue, 18 May 2021 11:08:41 +0200 Organization: Adalog Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 18 May 2021 09:08:41 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="2ac88b944233c89f1998c01a90cbe718"; logging-data="21354"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yNEZZ+gt8LlTqlq/1e+VI" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Cancel-Lock: sha1:M/saDV0eKWVjmBNumqhmPzoO3Z0= In-Reply-To: Content-Language: fr Xref: reader02.eternal-september.org comp.lang.ada:62003 List-Id: Le 17/05/2021 à 22:20, Dmitry A. Kazakov a écrit : > On 2021-05-17 21:14, Simon Wright wrote: >> Michael Hardeman writes: >> >>> So I've been messing around with the new Ada 2020 package >>> Ada.Streams.Storage.Bounded/Unbounded; and if I'm understand it >>> correctly it allows you to treat your program's memory like a stream >>> without having to open file descriptors (which should make it >>> faster?). That seems like a powerful abstraction to me and a great >>> addition to the language. > > 1. It was always possible, since Ada 95, actually. So it is not that > great addition. For example, you can get Storage_Stream from Adalog's components page: https://www.adalog.fr/en/components.html#Storage_Stream [...] > And note another problem. Entries do not work with indefinite objects. > You cannot return String from an entry call. True, but you can return an indefinite holder containing the string. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52 https://www.adalog.fr