From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: In memory Stream Date: Sun, 18 Feb 2024 14:02:32 +0100 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 18 Feb 2024 13:02:31 -0000 (UTC) Injection-Info: dont-email.me; posting-host="b11821256dd767875c04de89f6cd636b"; logging-data="1133820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BlnXucJwI3C0C/BHjRv2dE+CumExpoIU=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:TfqrvlyqZy3prI73lTjOwSJfGjQ= In-Reply-To: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:66092 List-Id: On 2024-02-18 11:06, Simon Wright wrote: > OK if the participants all have the same endianness. We used XDR (and > the translation cost is nil if the host is big-endian, as PowerPCs are; > all the critical machines were PowerPC). I always override stream attributes and use portable formats. E.g. some chained code for integers. Sign + exponent + normalized mantissa for floats, again chained. That is all. There is no need in XDR, JSON, ASN.1 or other data representation mess. They are just worthless overhead. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de