Re:Pipes and Filters
by visarga on Wednesday September 17, 2014 @12:19AM
(#8328584)
Pipes are also related to the IO monad, similar in a way with the jQuery syntax which is another hugely popular case. I am utterly amazed how they invented such a powerful concept of functional programming for the shell (well, not 100% pure functional, if there are side effects)
[ Parent
| on HN ]
utterly amazed how they invented such a powerful concept of functional programming for the shell
You might be interested in the classic McIlroy-Knuth dialogue:
http://www.leancrew.com/all-this/2011/12/more-shell-less-egg...
The Unix "Software Tools" philosophy -- small kits composable into something big -- is deeply shared by functional programming.
I don't think one begot the other. It was just obviously the natural thing to do during that era.
>You might be interested in the classic McIlroy-Knuth dialogue:
Yes, that was a good article. The comments on the post were interesting too. Saw it a while ago, and for fun, wrote two quick solutions for the problem, in Python and shell:
http://jugad2.blogspot.in/2012/07/the-bentley-knuth-problem-...
A reader, Veky, wrote an interesting comment on my post too.