Tiny Core Linux

Off-Topic => Off-Topic - Tiny Tux's Corner => Topic started by: mocore on September 06, 2024, 03:59:55 PM

Title: Monadic i/o and UNIX shell programming
Post by: mocore on September 06, 2024, 03:59:55 PM
https://okmij.org/ftp/Computation/monadic-shell.html

Quote
We will show uncanny similarities between monadic i/o in Haskell,
and UNIX filter compositions based on pipes and redirections.
UNIX pipes (treated semantically as writing to temporary files) are quite similar to monads.
Furthermore, at the level of UNIX programming, all i/o can be regarded monadic.

interesting perspective 
 

see also : "how to distinguish FP hype from reality" (Gilad Bracha) @ https://forum.tinycorelinux.net/index.php/topic,27239.0.html