Why are functional languages considered a boon for multi threaded environments?

Posted by Billy ONeal on Stack Overflow See other posts from Stack Overflow or by Billy ONeal
Published on 2010-05-25T23:42:11Z Indexed on 2010/05/25 23:51 UTC
Read the original article Hit count: 246

I hear a lot about functional languages, and how they scale well because there is no state around a function; and therefore that function can be massively parallelized.

However, this makes little sense to me because almost all real-world practical programs need/have state to take care of. I also find it interesting that most major scaling libraries, i.e. MapReduce, are typically written in imperative languages like C or C++.

I'd like to hear from the functional camp where this hype I'm hearing is coming from....

© Stack Overflow or respective owner

Related posts about multithreading

Related posts about functional-programming