News for hackers. Stuff that matters.
Re:Why Haskell is beyond ready for Prime Time by sharkbrainguy on Wednesday January 14, 2009 @03:15PM (#434196)
Like a window manager? http://xmonad.org/
Re:Why Haskell is beyond ready for Prime Time by brl on Wednesday January 14, 2009 @04:25PM (#434315)
I like xmonad, but it's still just a 500 line ultra-minimalist window manager.

Students in introductory programming classes write programs longer than that.

Get back to me when you've implemented KDE, Aqua, or Aero in Haskell.

Re:Why Haskell is beyond ready for Prime Time by wernerv0nbraun on Wednesday January 14, 2009 @11:37PM (#434815)
you find me one introductory programming student who can even read the code for xmonad let alone write it

xmonad is feature-laden

it is a small codebase not because it is trivial, but because the people who wrote it are kick-ass coders

Re:Why Haskell is beyond ready for Prime Time by time_management on Wednesday January 14, 2009 @11:53PM (#434828)
Lines of code fails as a measure of code quantity for languages like Lisp and Haskell. 500 lines of Haskell code can accomplish what will take 1500-5000 lines of Java.
Re:Why Haskell is beyond ready for Prime Time by brl on Thursday January 15, 2009 @12:42AM (#434874)
When I'm trying to get stuff done I would rather spend 3x as much time typing in code than waste all week deciphering 'core' and reading heap profiling output to track down a space leak that could never happen in any other language.
Re:Why Haskell is beyond ready for Prime Time by time_management on Thursday January 15, 2009 @08:37AM (#435120)
Have you had this problem with Haskell?

I've heard that Haskell's space performance isn't great, but I don't know enough about the language to confirm or deny this.

I would recommend, if you're concerned with performance, using Ocaml. You can compile it down to native code, and its performance characteristics are comparable to C.

Re:Why Haskell is beyond ready for Prime Time by brl on Thursday January 15, 2009 @12:05PM (#435326)
Yes, I have had to solve this problem a lot. It's probably my own fault because I am an inexperienced Haskell programmer, and maybe it's just because I'm incompetent but I find space performance very difficult to reason about.

It seems like anybody can make these mistakes, and they are mostly invisible until one day your problem size is a little bit larger than normal and your program explodes and crashes.

Re:Why Haskell is beyond ready for Prime Time by time_management on Thursday January 15, 2009 @12:51PM (#435408)
Noob question: Why is space performance so opaque in a lazy language?
Re:Why Haskell is beyond ready for Prime Time by brl on Thursday January 15, 2009 @02:38PM (#435568)
Noob answer:

In a strict language, you write an expression and it's perfectly clear when it will be evaluated.

With lazy evaluation to know if or when an expression will be evaluated you have to follow it through possibly many layers of function calls (which may have been written by somebody else) looking for a place where it needs to be evaluated. Along the way it may become embedded in other expressions which complicates the problem.

How do you know when an expression needs to be evaluated? I don't know if I'm smart enough to understand the answer to that question:

http://en.wikibooks.org/wiki/Haskell/Denotational_semantics#...

Re:Why Haskell is beyond ready for Prime Time by wernerv0nbraun on Thursday January 15, 2009 @12:47AM (#434881)
then java is for you. good luck.