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!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: article on acces types and dynamic serialization in Ada (2003) Date: Fri, 23 Feb 2018 09:38:33 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <503e3322-ee8e-4d6f-9aa5-e7b98f87e8f8@googlegroups.com> <5d8580c2-b43d-4b2c-8a46-3a6ed33967aa@googlegroups.com> <434b1e3e-da5a-4846-8942-f7ec8ea6ce34@googlegroups.com> <87tvu8890r.fsf@jacob-sparre.dk> NNTP-Posting-Host: MyFhHs417jM9AgzRpXn7yg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 X-Notice: Filtered by postfilter v. 0.8.3 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:50585 Date: 2018-02-23T09:38:33+01:00 List-Id: On 23/02/2018 08:23, Jacob Sparre Andersen wrote: > Shark8 writes: >> On Thursday, February 22, 2018 at 4:49:04 PM UTC-7, Randy Brukardt wrote: > >>> What default (read relatively cheap to read/write) implementation >>> could possibly be sane? >> >> ASN.1 serialization/deserialization. > > That doesn't solve the problem of the compiler having to figure out how > to interpret the access types. It does not solve any problem, being an utter abomination and horror to anyone who must implement a protocol described in this form. But even if, the point is that data /= type. ASN.1 describes representation, not the semantics of a typed object. For most types representation alone is not enough to store/restore objects of. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de