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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e0c23e7a19a435c4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.219.170 with SMTP id pp10mr8289367pbc.1.1340482784709; Sat, 23 Jun 2012 13:19:44 -0700 (PDT) Path: l9ni11854pbj.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Recapping on =?utf-8?B?4oCcQnVnIFNvcnTigJ0u?= Date: Sat, 23 Jun 2012 22:19:43 +0200 Organization: A noiseless patient Spider Message-ID: <878vfdlr1c.fsf@ludovic-brenta.org> References: <169bdbcb-cb43-4db9-9d48-3be2a88473eb@googlegroups.com> <77963856-3a25-4477-9510-769df7a9b85c@googlegroups.com> <5324c10f-52f2-4f23-ac44-cd1bc9fa580d@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="A/I6ORIMHprfaAZP2xQmHQ"; logging-data="24098"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18l4s147vKx0IYg5Rl/jv9p" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:njDS91vkq/ZAr+HMEoDtj7fbVx8= sha1:x+D5ttr379VtTC5zeJAu6ZBnxiE= Content-Type: text/plain; charset=us-ascii Date: 2012-06-23T22:19:43+02:00 List-Id: Austin Obyrne writes on comp.lang.ada: > how in the real world would you input the data from another source > i.e. beyond your control, to your 'Count Sort' program. It would have > to be keyed in somewhere by a human operator?? Or multiple human operators. Or automatic radar plots. Or some temperature, pressure, position, wavelength or whatever, sampled by automatic sensors, 1000 samples per second. Really, generating data is not a problem. Note that the Unix "sort" program reads from standard input, which may be a file on a local disk, a file on a remote array of disks, or a pipe fed by some arbitrarily complex combination of programs. The "problem" when reading from standard input is that you can't rewind or push back into standard input. Once you have read a byte from it, you can't read it again, you *must* process it immediately or store it in memory. -- Ludovic Brenta.