Re:I/O Is Faster Than CPU – Let’s Partition Resources and El...
by bluetomcat on Friday May 03, 2019 @02:19PM
(#19820884)
> Today, I piped the output of some process I was running into grep. Neither of these programs knew about the existence of the other.
Only because "an unstructured stream of bytes" is the way for Unix processes to communicate. It allows for composability, but a very fragile and unsafe one, requiring programs to spit out and read free text, with all the crazy filtering and guesswork needed.
Re:I/O Is Faster Than CPU – Let’s Partition Resources and El...
by jnurmine on Saturday May 04, 2019 @01:41AM
(#19824686)
Free text? You can just as well pipe structured binary data (such as audio or images) through one or more processing elements. The processors need to understand the data, of course.
There are also other IPC mechanisms, like D-Bus.
Today, I piped the output of some process I was running into grep. Neither of these programs knew about the existence of the other.
Later, I used an image editor to create an image, then used a web browser to upload it to a website. The web browser and image editor were unaware of each other's existence.