<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div dir="ltr">
<div>
<div>
<div>
<div>Doug,<br>
<br>
</div>
Although I was puzzled about the context, I loved reading
your paper! So it was a happy mistake as far as I'm
concerned :-)<br>
<br>
</div>
I found it fascinating to realize the equivalence between
processes connected by pipes and lazy lists with function
composition. And I'll definitely be adding that two-liner to
my repertoire of cool examples that I use when trying to
explain the virtues of lazy functional programming to others.
The other one that I use is the fairly well-known recursive
Fibonacci generation: fibonacci = 1 : 1 : zipWith (+)
fibonacci (tail fibonacci).<br>
<br>
</div>
By the way, for your Try It section, you might want to consider
using <a href="http://codepad.org">codepad.org</a>, "an online
compiler/interpreter, and a simple
collaboration tool. It's a pastebin that
executes code for you. You paste your code, and codepad runs it
and
gives you a short URL you can use to share it." For example,
through something written here a few days ago, I came across a
fascinating generator of rational approximations to pi written
in Haskell, and the author used <a href="http://codepad.org">codepad.org</a>
to show both the code and the results. The code is at <a
href="http://codepad.org/C2IVTlCC">http://codepad.org/C2IVTlCC</a>
and the explanation is at <a
href="https://www.quora.com/What-is-the-best-rational-approximation-of-pi-Let-best-be-the-difference-between-the-number-of-digits-used-to-represent-the-rational-and-the-number-of-accurate-digits-in-the-decimal-expansion/answer/Anders-Kaseorg">https://www.quora.com/What-is-the-best-rational-approximation-of-pi-Let-best-be-the-difference-between-the-number-of-digits-used-to-represent-the-rational-and-the-number-of-accurate-digits-in-the-decimal-expansion/answer/Anders-Kaseorg</a><br>
<br>
</div>
<div>Understandably, the implementation of <a
href="http://codepad.org">codepad.org</a> is careful about
setting resource limits, so it would be interesting to see how
well it handles your shell and C programs, both of which are
effectively fork-bombs.<br>
</div>
<div><br>
</div>
—Neil<br>
</div>
</body>
</html>