comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Recapping on “Bug Sort”.
Date: Sat, 23 Jun 2012 22:19:43 +0200
Date: 2012-06-23T22:19:43+02:00	[thread overview]
Message-ID: <878vfdlr1c.fsf@ludovic-brenta.org> (raw)
In-Reply-To: f6118b09-8c21-4969-bcf3-9f4d23076130@googlegroups.com

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.



  reply	other threads:[~2012-06-23 20:19 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-22 19:55 Recapping on “Bug Sort” Austin Obyrne
2012-06-22 20:45 ` Jeffrey Carter
2012-06-23  6:50   ` Austin Obyrne
2012-06-23  7:54   ` Austin Obyrne
2012-06-23 10:20     ` Austin Obyrne
2012-06-23 13:08       ` Austin Obyrne
2012-06-23 14:21         ` Austin Obyrne
2012-06-23 14:57           ` Austin Obyrne
2012-06-23 15:59             ` Austin Obyrne
2012-06-23 16:07             ` Pascal Obry
2012-06-23 16:12               ` Austin Obyrne
2012-06-23 16:19               ` Austin Obyrne
2012-06-23 17:05               ` Austin Obyrne
2012-06-23 18:17           ` Niklas Holsti
2012-06-23 19:21             ` Austin Obyrne
2012-06-23 20:19               ` Ludovic Brenta [this message]
2012-06-23 18:05       ` Niklas Holsti
2012-06-23 19:07         ` Austin Obyrne
2012-06-23 19:40           ` Austin Obyrne
2012-06-23 20:00           ` Jeffrey Carter
2012-06-23 20:21             ` Austin Obyrne
2012-06-23 20:12           ` Niklas Holsti
2012-06-23 20:49             ` Austin Obyrne
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox