Skip to content

Instantly share code, notes, and snippets.

@fricklerhandwerk
Created December 14, 2022 09:18
Show Gist options
  • Save fricklerhandwerk/fcbb39a0cb6b40f5fc3a8485e3191052 to your computer and use it in GitHub Desktop.
Save fricklerhandwerk/fcbb39a0cb6b40f5fc3a8485e3191052 to your computer and use it in GitHub Desktop.
Nix as data-flow-oriented abstraction of the Unix paradigm
+-----------------------------------------------------+
| data flow programming                               |
|     .-------.      .----------.      .--------.     |
|     | input | ---> | function | ---> | output |     |
|     '-------'      '----------'      '--------'     |
|         ^                                |          |
+---------|--------------------------------|----------+
          |                                V
       +-------------------------------------+
       |                                     |
       |                 Nix                 |
       |                                     |
       +-------------------------------------+
          ^                                |
+---------|--------------------------------|----------+
|         |         .------------.         |          |
|         '-------- |            | <-------'          |
|                   |    file    |                    |
|               .-- |            | <-.                |
|               |   '------------'   |                |
|    execute as |                    | read, write,   |
|               |   .------------.   | execute        |
|               '-> |   process  | --'                |
|                   '------------'                    |
| operating system                                    |
+-----------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment