Personal tools

Humor/Flakes

From HaskellWiki

< Humor(Difference between revisions)
Jump to: navigation, search
Line 23: Line 23:
 
Mom:  
 
Mom:  
 
&nbsp;</td><td align=left, valign=top>
 
&nbsp;</td><td align=left, valign=top>
"Try this, honey!" [hands the boy a colorful package, the words Haskell
+
"Try this, honey!" [hands the boy a colorful package, the words Haskell emblazoned across the front and top, over a large lambda logo]
    emblazoned across the front and top, over a large lambda logo]
+
 
</td></tr></table>
 
</td></tr></table>
  
Line 30: Line 29:
 
Boy:  
 
Boy:  
 
&nbsp;</td><td align=left, valign=top>
 
&nbsp;</td><td align=left, valign=top>
[after pouring the cereal flakes into his bowl and cramming a spoonful
+
[after pouring the cereal flakes into his bowl and cramming a spoonful into his mouth] "Mmm!  What is it?"
    into his mouth] "Mmm!  What is it?"
+
 
</td></tr></table>
 
</td></tr></table>
  
Line 44: Line 42:
 
Boy:
 
Boy:
 
&nbsp;</td><td align=left, valign=top>
 
&nbsp;</td><td align=left, valign=top>
  "And it tastes great too!" [rotates his baseball cap back-to-front
+
  "And it tastes great too!" [rotates his baseball cap back-to-front and with a look of determination starts shoveling the flakes greedily down his throat]
    and with a look of determination starts shoveling the flakes greedily down
+
    his throat]
+
 
</td></tr></table>
 
</td></tr></table>
  
Line 55: Line 51:
 
Dad:
 
Dad:
 
&nbsp;</td><td align=left, valign=top>
 
&nbsp;</td><td align=left, valign=top>
  "Gosh!  Something sure smells good this morning!"  [sniffs experimentally
+
  "Gosh!  Something sure smells good this morning!"  [sniffs experimentally at the Haskell flakes, then notices the box of Haskell cereal sitting prominently in the middle of the table; lifts the box and peers at it; suddenly his eyes widen with recognition]  "Hey!  Is this that Haskell I've been hearing about?"
    at the Haskell flakes, then notices the box of Haskell cereal
+
    sitting prominently in the middle of the table; lifts the box and peers
+
    at it; suddenly his eyes widen with recognition]  "Hey!  Is this that
+
    Haskell I've been hearing about?"
+
 
</td></tr></table>
 
</td></tr></table>
  
Line 65: Line 57:
 
Mom:
 
Mom:
 
&nbsp;</td><td align=left, valign=top>
 
&nbsp;</td><td align=left, valign=top>
  "Yes, it's new and improved!"  [takes the Haskell box and taps one finger
+
  "Yes, it's new and improved!"  [takes the Haskell box and taps one finger conspicuously at the place where a large "1.4" is visible]
    conspicuously at the place where a large "1.4" is visible]
+
 
</td></tr></table>
 
</td></tr></table>
  
Line 72: Line 63:
 
Dad:
 
Dad:
 
&nbsp;</td><td align=left, valign=top>
 
&nbsp;</td><td align=left, valign=top>
  "Wow, count me in too!"  [forgets about his tie and slips quickly into
+
  "Wow, count me in too!"  [forgets about his tie and slips quickly into a chair at the breakfast table; lifts an empty cereal bowl expectantly in Mom's direction]
    a chair at the breakfast table; lifts an empty cereal bowl expectantly
+
    in Mom's direction]
+
 
</td></tr></table>
 
</td></tr></table>
  
Line 80: Line 69:
 
Mom:
 
Mom:
 
&nbsp;</td><td align=left, valign=top>
 
&nbsp;</td><td align=left, valign=top>
  [smiles as if she knew this would happen, then steps forward, holds the
+
  [smiles as if she knew this would happen, then steps forward, holds the box of Haskell in both hands next to her glowing face and looks straight at the camera] "Haskell!  A great way to start the morning!"
    box of Haskell in both hands next to her glowing face and looks straight
+
    at the camera] "Haskell!  A great way to start the morning!"
+
 
</td></tr></table>
 
</td></tr></table>
  
Line 94: Line 81:
 
Mom:
 
Mom:
 
&nbsp;</td><td align=left, valign=top>
 
&nbsp;</td><td align=left, valign=top>
  [now laughing, shakes her head as if to say 'tsk, tsk', and hurries
+
  [now laughing, shakes her head as if to say 'tsk, tsk', and hurries back to the table to serve her hubby a fresh bowl of Haskell flakes]
    back to the table to serve her hubby a fresh bowl of Haskell flakes]
+
 
</td></tr></table>
 
</td></tr></table>
  
Line 107: Line 93:
 
scheme.
 
scheme.
 
</blockquote>
 
</blockquote>
<p>
+
 
 
Try Haskell.  Haskell's lazy semantics are simpler to reason with than ML's.
 
Try Haskell.  Haskell's lazy semantics are simpler to reason with than ML's.
 
The language has a lot of sugar, but the syntax is pretty intuitive (compared
 
The language has a lot of sugar, but the syntax is pretty intuitive (compared
Line 113: Line 99:
 
language is much, much simpler than SML's, yet nearly as powerful [1].  Also,
 
language is much, much simpler than SML's, yet nearly as powerful [1].  Also,
 
since there are no implicit side-effects, there are fewer gotcha's in general.
 
since there are no implicit side-effects, there are fewer gotcha's in general.
<p>
+
 
 
[1] Nicklish, Jan and Peyton Jones, Simon.  "An Exploration of Modular
 
[1] Nicklish, Jan and Peyton Jones, Simon.  "An Exploration of Modular
 
Programs."  The Glasgow Workshop on Functional Programming, 1996.
 
Programs."  The Glasgow Workshop on Functional Programming, 1996.

Revision as of 06:40, 24 January 2006

Haskell Flakes

Shamelessly stolen from comp.lang.ml -- ed

(Note there's actually a response at the end of this message...)

[FADE IN]

[A young boy sits at a table in the kitchen. Outside the window we see the morning sun setting in a rich blue sky over rolling green hills and yellow flowers. The young boy's ravishing mother stands by the kitchen counter, looking busy making bag lunches.]

[Close up of the boy looking dejectedly at his bowl of cereal.]

Boy:

 

"Mom, I'm sick of ordinary cereals! Don't you have anything new?"

Mom:

 

"Try this, honey!" [hands the boy a colorful package, the words Haskell emblazoned across the front and top, over a large lambda logo]

Boy:

 

[after pouring the cereal flakes into his bowl and cramming a spoonful into his mouth] "Mmm! What is it?"

Mom:

 
"It's called Haskell!  The ingredients are all natural!  No chemical
     additives!"

Boy:

 
"And it tastes great too!" [rotates his baseball cap back-to-front and with a look of determination starts shoveling the flakes greedily down his throat]

[Pan to Dad walking in, suit jacket draped over one arm and still fumbling boyishly with his tie.]

Dad:

 
"Gosh!  Something sure smells good this morning!"  [sniffs experimentally at the Haskell flakes, then notices the box of Haskell cereal sitting prominently in the middle of the table; lifts the box and peers at it; suddenly his eyes widen with recognition]  "Hey!  Is this that Haskell I've been hearing about?"

Mom:

 
"Yes, it's new and improved!"  [takes the Haskell box and taps one finger conspicuously at the place where a large "1.4" is visible]

Dad:

 
"Wow, count me in too!"  [forgets about his tie and slips quickly into a chair at the breakfast table; lifts an empty cereal bowl expectantly in Mom's direction]

Mom:

 
[smiles as if she knew this would happen, then steps forward, holds the box of Haskell in both hands next to her glowing face and looks straight at the camera] "Haskell!  A great way to start the morning!"

Dad:

 
[in the background, whining]  "Honey!"

Mom:

 
[now laughing, shakes her head as if to say 'tsk, tsk', and hurries back to the table to serve her hubby a fresh bowl of Haskell flakes]

[FADE OUT]


David Hanley (david@nospan.netright.com) wrote:

Is there any language which is a somewhat simplified ML? I like the type system of ML, but the all-encompassing language is somewhat complex. I suppose what I am looking for would be something like strongly-typed scheme.

Try Haskell. Haskell's lazy semantics are simpler to reason with than ML's. The language has a lot of sugar, but the syntax is pretty intuitive (compared to SML's, at least, which seems to get a lot of complaints). Haskell's module language is much, much simpler than SML's, yet nearly as powerful [1]. Also, since there are no implicit side-effects, there are fewer gotcha's in general.

[1] Nicklish, Jan and Peyton Jones, Simon. "An Exploration of Modular Programs." The Glasgow Workshop on Functional Programming, 1996.

-- 
Frank Christoph                 Next Solution Co.      Tel: 0424-98-1811
christo@nextsolution.co.jp                             Fax: 0424-98-1500