r/programming • • Mar 14 '09

Hello Haskell, Goodbye Lisp

http://www.newartisans.com/2009/03/hello-haskell-goodbye-lisp.html
49 Upvotes

80 comments sorted by

View all comments

Show parent comment

7

u/username223 Mar 15 '09

GHC's profiler is great, particularly the way you can annotate arbitrary expressions and say "tell me how long it takes to reduce this." Unfortunately, after you know, fixing it involves a largely experimental process of doing some in-your-head dataflow analysis, then transforming your program, moving constructors around, adding strictness, and sacrificing a chicken.

4

u/[deleted] Mar 15 '09

I can't completely disagree with this, but it doesn't have to be quite so ad hoc if you follow one of the approaches from "Purely Functional Data Structures." Of course, there's a legitimate question as to why you should have to read "Purely Functional Data Structures" in order to learn how to methodically optimize Haskell code...