News for hackers. Stuff that matters.
Re:Advanced programming languages by nightski on Tuesday January 10, 2012 @01:15AM (#3445924)
The advantage is that you can reason about the correctness of code. Sure, if you write an entire code base depending on its size you may be able to reason about all the side effects in your head. But when moving to a larger project, or one developed by a team - all bets are off. It is really important to have the effects embedded in the type system. Even with a large test suite.

On top of this, having professionally written C/C++ for years in the embedded systems space I can say that Monads for IO is not awkward. In fact, it feels far more powerful because you are not limited to the awful semicolon operator for chaining effects.

Lastly FP != slower (even on single core). I agree Haskell can be hard to reason about performance wise at times due to choosing lazy by default. However, have you ever heard of Sisal? Many strict by default FP languages are quite fast, however they sacrifice purity. But to be honest, with experience Haskell can be damn fast also.

Re:Advanced programming languages by jiggy2011 on Tuesday January 10, 2012 @01:46AM (#3445973)
Interesting, my question is more though why now? Since LISP has been around for a very long time and FP has had very little mainstream interest until the last year or 2.
Re:Advanced programming languages by nickik on Tuesday January 10, 2012 @02:23AM (#3446052)
Good question. I think its a couple of diffrent things.

1. Java is not really evolving, people are frustrated

2. Multicore is difficulte and FP claim they are better at it.

3. Complexety of ever bigger codebases

4. Java Script not longer the worst language in the world, people start to understand whats powerful about it and want to know what more is possible.

Re:Advanced programming languages by danieldk on Tuesday January 10, 2012 @04:33AM (#3446331)
Additionally, I think that Haskell really has to offer something over most other FP languages. Many features of dynamic impure FP languages have already been ported to languages such as Ruby or Python. What Haskell provides over, say Lisp, is exceptionally strong typing and isolation of side-effects. This is a quality that cannot be ported to mainstream languages easily.

So, why didn't Haskell become more popular earlier? I think that's simple: the GHC compilers has improved tremendously over the past years, Hackage has grown considerably, and there are now more books oriented at practical programming.

Re:Advanced programming languages by mooki on Tuesday January 10, 2012 @08:34AM (#3446876)
After spending some time exploring different functional languages, if FP does make it at all - my money would be on Haskell. There is something to be said for focused languages that does one thing but does it really well, and the feeling of security when a certain style is enforced over a codebase.

I probably wouldn't use it for anything today, but in another couple years maybe. The ecosystem seems like it's reaching critical mass.

Re:Advanced programming languages by nickik on Tuesday January 10, 2012 @09:35AM (#3447039)
I think Clojure is ready right now. For "standalone" languages haskell seams to be on a good way, some people are allready doing start ups with it.
Re:Advanced programming languages by jhuni on Tuesday January 10, 2012 @04:49PM (#3449231)
Actually most Lisps offer optional means of static verification and static typing for when its necessary. Furthermore, Lisps have vital metaprogramming features that Haskell lacks which are essential for symbolic AI applications.
Re:Advanced programming languages by itmag on Tuesday January 10, 2012 @11:06AM (#3447409)
5. Code-hipsters on HN ;-)
Re:Advanced programming languages by nickik on Tuesday January 10, 2012 @01:18PM (#3448154)
A nice way of putting it would be "FP became better at marketing"