功能性编程和多核架构 [英] Functional programming and multicore architecture
问题描述
我已经在某处读过,函数式编程适合利用计算中的多核趋势。我并没有真正明白。它与lambda微积分和von neumann体系结构有关吗?
函数式编程可以最大限度地减少或消除副作用,因此更适合分布式编程。即多核处理。换句话说,许多难题可以在独立核心上同时独立解决,而无需担心一个操作会影响另一个操作,几乎可以达到你可以使用其他编程风格。
I've read somewhere that functional programming is suitable to take advantage of multi-core trend in computing. I didn't really get the idea. Is it related to the lambda calculus and von neumann architecture?
Functional programming minimizes or eliminates side effects and thus is better suited to distributed programming. i.e. multicore processing.
In other words, lots of pieces of the puzzle can be solved independently on separate cores simultaneously without having to worry about one operation affecting another nearly as much as you would in other programming styles.
这篇关于功能性编程和多核架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!