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: Tue, 20 Feb 2024 09:55:30 +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: 8bit Injection-Date: Tue, 20 Feb 2024 08:55:30 -0000 (UTC) Injection-Info: dont-email.me; posting-host="ba5f8a129df6184811a9e54a794b8dfc"; logging-data="2553114"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197U50wosGzq1auA/H6i5RKRi2h/q/aVys=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:W72qiMhGbONTBg/wDeCqkh6Ye28= Content-Language: en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:66111 List-Id: On 2024-02-20 01:41, Lawrence D'Oliveiro wrote: > On Mon, 19 Feb 2024 09:32:42 +0100, Dmitry A. Kazakov wrote: > >> You did not say why JSON is needed. > > Because it’s such a convenient meta-format, Meta of what? How is it convenient for streaming objects? Begin with access type. Proceed with time stamps. > and its text basis helps with > debugging. There is nothing to debug in implementation of stream attributes. Nor it is helpful to debug communication logic issues because the format is *data representation* one. It represents *data*, not objects, not states. All vital information about the logic and state is not there. It is in the context. This is the main reason why *all* data representation formats are useless garbage even when binary. Text basis helps to produce 100 to 1 overhead in payload which directly translates into latency, network and CPU load, storage space, packet overflows, variable-length packets where it should have been fixed, chunked transfers, dynamic memory allocation and mess that makes a 64-core CPU to perform like an i286. It is absolutely useless, you cannot read, browse, search real-life gigabytes long communication logs without customized tools. Driving a car, heating the house, browsing Internet I do not care about the logs. The damn thing must work. > Its popularity aids interoperability with code bases in other > languages, A requirement does not aid anything. It is just a requirement. JSON would not aid you in dealing with X.509 certificates. They are in ASN.1. > support by existing tools, and so on and so on. Lemming's argument. Everybody's jumping I am jumping too. > If you didn’t know all that, you’ve been living under a coconut shell, as > we say in the old country ... I am pretty much aware of data representation formats. Moreover, as you may have noticed I implemented lots of them. Not because it is fun, but because communication protocols is my job. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de