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,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!87.79.20.105.MISMATCH!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: for S'Image use Func?? 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: <87632vwikr.fsf@ludovic-brenta.org> <112n6z3554srr$.tjzjtg467xfo.dlg@40tude.net> <1fv8frriu1h4s.g9jy78q1c0io.dlg@40tude.net> <7a31eab7-1a1c-4653-bf49-ff1498e318f9@b18g2000yqb.googlegroups.com> <199e07cb-2e93-40fc-974d-000b83b6000f@s29g2000yqd.googlegroups.com> <16vlvmzpbalm5.1chuumyyuyb2j$.dlg@40tude.net> <1fe63c27-207f-4a73-a823-3ec1410e35e8@j35g2000yqm.googlegroups.com> <1g82ubkc0t0pf$.nuj3gqp1buh6.dlg@40tude.net> <5715ce4b-3ddc-4f50-8b4d-094e93db657a@e21g2000vbl.googlegroups.com> <1o1jj8ho00vti.18z26rwdv3apb.dlg@40tude.net> <66e2a4b1-2784-4c60-8e6a-2237c7f7b477@r9g2000vbk.googlegroups.com> Date: Sun, 16 May 2010 23:31:51 +0200 Message-ID: NNTP-Posting-Date: 16 May 2010 23:31:51 CEST NNTP-Posting-Host: 0e453c13.newsspool3.arcor-online.net X-Trace: DXC=[iN8C:PZAUn;iVb[J9ZZP`McF=Q^Z^V3h4Fo<]lROoRa8kFD5fSY;Rf X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:11668 Date: 2010-05-16T23:31:51+02:00 List-Id: On Sun, 16 May 2010 13:56:57 -0700 (PDT), Maciej Sobczak wrote: > On 16 Maj, 09:48, "Dmitry A. Kazakov" > wrote: > >>> Wrong, unless you clearly define the meaning of "show". >> >> That is the point! Show is in each other's head. Some would consider single >> LF as one empty line, others as two, and some as a broken file. > > So now we can come back to our original subject - what is the added > value of Text_IO, then? That you need not count lines by yourself. > What is the point of abstracting the notion of > text, if it "is in each other's head"? It is not. The notion of stream encoding is. > Shouldn't stream I/O be enough > and leave the rest to everybody's head in this case? No, because we count lines differently. Text_IO provides a way to standardize encodings in inferior operating systems. >>> And if you give me the freedom to choose my rendering scheme, it will >>> be: >> >>> $ cat -n file.txt >> >> It does not work under Windows. > > Of course it does. Cygwin is your best friend. Nope, cygwin is a horror. Even much less offending MinGW is. >>> Fine. You still forgot about log files. :-) >> >> I don't use UNIX, remember. Our log files are binary. > > The only thing I can say now is that not only you don't use Unix, but > you also don't use plenty of software packages that exist on Windows. Right, for example MFC, ActiveX among others. >>>> You could say: it >>>> ends when blocked. Not very nice, but, in fact, widely used in network >>>> communication protocols. >> >>> Widely? An example or two, please? >> >> Any. You cannot rely on the remote host always sending you graceful >> disconnect. Many devices we are dealing with don't even have such thing. >> They just become silent. > > This makes the end of stream indistinguishable from arbitrary delays. These systems are more or less real-time. It means that if the delay exceeds the time of service (which is not necessarily microseconds, it could be seconds), then the game is out anyway. > Not a good idea. What about the stream of keystrokes? Is the stream > finished just because I'm thinking what to type next? The operators have HMI. They don't encourage streams, they do GUIs! >> As a practical example, load some large text page into the browser. Before >> it completes, in the middle, pull the Etherenet jack out. Observe the >> stream end! > > It is not a stream end, it is a communication error. Guess what - some > protocols are wiser than HTTP and can figure that out, which disproves > your universal "any" qualifier. Error is the reason why the stream is or considered ended. Note that the browser does not crash. It renders that end, you can see it by scrolling the page down. > As in the majority of such discussion, we don't have a converging > thread and we're not likely to come to any conclusion either (and we > are long ago far away from the original problem, too). > Is it OK to suggest that we should somehow finish? Yes. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de