3 ms·
The MapReduce use case is quite narrow, we also have replicated storage systems that require, as you said, paxos; many HPC loads are using CUDA these days, whic
by seanmcdirmid 13y ago
The MapReduce use case is quite narrow, we also have replicated storage systems that require, as you said, paxos; many HPC loads are using CUDA these days, which, even though heavily based on SIMD, is very imperative. As soon as you want iterative computation or long running incremental computation on streams...you need to worry about fault tolerance again, and state becomes very useful.
You can leverage commutativity without going functional...heck, that's how most physics engines work and they are very far away from FP.
- chubot 13y agoI'm not only talking about MapReduce; I'm saying there are ideas from functional programming that have more affinity for the underlying hardware than state machines. This is only going to get more important in the future. Right now we're straddling the two worlds kind of awkwardly. State is useful; however exactly as in "traditional" functional programming, it should be used sparingly in distributed systems. State requires very special handling and thought. Statelessness or purity is the default. Clusters have a tiny bit of state and lots of stateless workers, just like a Haskell program has a tiny bit of state and lots of pure functions. To be clear, I don't think Haskell makes sense at the single machine level. (I personally don't want to program in it.) I'm saying that the ideas are more appropriate at the level of architecture and not code.