Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Functional programming and multicore architecture

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?

like image 697
lonegunman Avatar asked Oct 08 '08 03:10

lonegunman


People also ask

What is multicore architecture and programming?

Multicore programming helps you create concurrent systems for deployment on multicore processor and multiprocessor systems. A multicore processor system is a single processor with multiple execution cores in one chip. By contrast, a multiprocessor system has multiple processors on the motherboard or chip.

What is parallel functional programming?

Parallel functional programming refers to a specific philosophy of computer science that uses functional programming in conjunction with parallelism to work with declarative programming in specific ways.


1 Answers

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.

like image 142
Chris Ballance Avatar answered Sep 22 '22 06:09

Chris Ballance