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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,865c3d125a8dbc3b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Howto read line from a stream Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <83317a97-dae5-4c84-a1ac-88a87833cf3f@q14g2000vbn.googlegroups.com> <1a90e055-44a3-4d00-b4cd-64798c731a55@e24g2000vbe.googlegroups.com> <709e8a12-f967-43db-b76b-4852cf1db08b@v4g2000vba.googlegroups.com> <196d124vj6gin.16zf5y40t9tr$.dlg@40tude.net> <4a26d249$0$31865$9b4e6d93@newsspool3.arcor-online.net> Date: Wed, 3 Jun 2009 22:11:37 +0200 Message-ID: NNTP-Posting-Date: 03 Jun 2009 22:11:37 CEST NNTP-Posting-Host: fce4c6b0.newsspool4.arcor-online.net X-Trace: DXC=M43i0inbieGj7E:bke<5HF4IUKKADNcfSJ;bb[EIRnRBaCd On Wed, 03 Jun 2009 21:43:05 +0200, Georg Bauhaus wrote: > Dmitry A. Kazakov wrote: >> On Wed, 3 Jun 2009 12:07:16 -0700 (PDT), sjw wrote: >> >>> But if you are dealing with character i/o I hardly think it matters! >>> Jeffrey's solution may take quite a bit of stack, if that's an issue. >> >> You terribly underestimate the huge "progress" of idiotic protocols, >> beginning with XML. > > Let's say, idiotic uses of XML. Which are all uses of, since XML is totally useless, unsuitable both for humans and for computers. > If the job is downloading > ready made configuration data to some hardware device, then > I'd find building an XML parser into the device as questionable > as doing the same for some Ada-like syntax. JSON is only slightly > better. Because the concept of "downloading ready made configuration data to some hardware device" is rubbish. Remember the last time you downloaded configuration data into your ballpoint pen? XML is used by people incapable to design a communication protocol. Last time it was guys who described the device internal memory layout in an XML file and suggested to directly read/write into the device memory according to this "configuration"! The device is now widely used commercially. > But FWIW, validated XML is easily and realiably transformed > into a packed, hardware-friendly, lossles, valid, efficient > configuration stream, tailored to the hardware's needs. Why should I convert anything? Who does write it? Who does read it? It is a cart before the horse. They use XML just because they want to. This is the only reason, which is irrational. > XML is for MOM. Let there be middleware. Middleware needs no XML. (XML was thought as a middleware by people who do not really understand the role and the requirements put on a middleware. Otherwise, they would immediately see that XML fulfills nether of.) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de