Functional programming and multicore architecture

前端 未结 9 1333
傲寒
傲寒 2020-12-08 08:36

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 c

9条回答
  •  一整个雨季
    2020-12-08 08:41

    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.

提交回复
热议问题