Name: Anonymous 2009-04-06 11:31
Output ``Sussman'' to a PNG file, using PHP. Typographic choices are up to each student.
% ghci +RTS -K100M
GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
ghci> foldl (+) 0 [1 .. 1000000]
500000500000
ghci>
foldl (+) 0 [1 .. 1000000]foldr (+) 0 [1 .. 1000000]foldr is superior.
Prelude> foldl (+) 0 [1 .. 1000000]
500000500000
([b]1.79[/b] secs, 121818128 bytes)
Prelude> foldr (+) 0 [1 .. 1000000]
500000500000
([b]2.18[/b] secs, 121271256 bytes)foldl is superior.
<?php
system("echo Sussman > sussman.PNG");
?>