-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44df5ae
commit b3ac8d9
Showing
3 changed files
with
179 additions
and
139 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
layout: post | ||
title: "Those who don't understand Unix pipes…" | ||
date: 2014-12-20 10:00:00 | ||
description: "" | ||
image: /img/twitter-ibash_notebook.png | ||
twitter_card: summary_large_image | ||
--- | ||
|
||
|
||
// what's a Unix pipe? | ||
// makes it very powerfull | ||
// Here's an example | ||
Pipes are powerful. | ||
Functional programming | ||
Infix operator | to chain commands. | ||
It's what makes the Unix command line so flexible. | ||
|
||
|
||
Example: Unix: "|": | ||
|
||
|
||
If you really want to understand them: http://blog.petersobot.com/pipes-and-filters | ||
|
||
I have been noticing a trend in reinventing | ||
Reminds me of a quote | ||
|
||
> Those who don't understand Unix | ||
> are condemned to reinvent it, poorly. | ||
> —<cite>Henry Spencer</cite> | ||
Now you understand why I picked this title. Please know that I only chose the title because of the quote. I'm not saying they're poorly implemented. | ||
It's great! | ||
|
||
It's interesting how users of the language are completely blown away by it, not knowing it's been around for a very long time. | ||
|
||
Here are a few programming languages | ||
either library or native. | ||
|
||
# Languages: | ||
|
||
F#: |> http://theburningmonk.com/2011/09/fsharp-pipe-forward-and-pipe-backward/ | ||
Haskell: ">->": https://github.com/Gabriel439/Haskell-Pipes-Library | ||
R: ">%>" https://github.com/smbache/magrittr | ||
Python: |: https://github.com/JulienPalard/Pipe | ||
Julia: |> https://github.com/JuliaLang/julia/pull/5236 | ||
Ruby: |: sanitize_pipe: | ||
|
||
|
||
# Miscellaneous: | ||
|
||
JQ: "|": | ||
pyp: "|": https://code.google.com/p/pyp/ | ||
|
||
|
||
Conceptual level. | ||
The commands in a Unix pipeline are executed in parallel | ||
|
||
|
||
What do you ma | ||
Can you think of others? |
Oops, something went wrong.