Re:COBOL programmers answer call
by DonHopkins on Saturday April 11, 2020 @05:01AM
(#22840542)
If /dev/zero is an infinite source of zeros, then why doesn't the minor device number specify which byte to use? Then you could make character special file /dev/seven that was an infinite source of beeps! There have been so many times I needed that.
Great idea! Also, for when you need some paper, you can pipe /dev/twelve to your printer.
We should propose a kernel patch for this next April.
Extra credit if we get it rolled into POSIX.
Star Wars is more advanced and had this. How do you think R2D2 wasn’t cut from that film? He had an advanced case of Tourette’s so everything had to be beeped out.
Imagine if they’d run out of beeps during filming!
PCs of course had the same issue — down to the cpu controlling the speed of disk rotation! But a modern PC has an I/O system more complex than the mainframes of old, with network interfaces that do checksum processing, handling retransmission and packet reassembly etc, just DMAing the result. Disk drives, whether spinning or SSD have a simple, block interface unrelated to what the storage device is doing, etc. I think this is all as it should be, though I personally consider the Unix IO model grossly antiquated.