功能性编程和多核架构 [英] Functional programming and multicore architecture

查看:98
本文介绍了功能性编程和多核架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在某处读过,函数式编程适合利用计算中的多核趋势。我并没有真正明白。它与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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆