Functional programming with C + +

Source: Internet
Author: User
Tags mathematical functions

Functional programming (functional PROGRAMMING,FP) has begun to gain more and more attention in recent years, and after object-oriented programming, functional programming may become the dominant paradigm of the next programming (programming Paradigm).
Functional programming has the advantages of simple code, fast development, closer to natural language and easy concurrent programming. More and more languages are now starting or enhancing support for functional programming, such as Python, Ruby, JavaScript, and so on.

The definition of functional programming in Wikipedia is:
In computer science, functional programming is a programming paradigm-a style of building the structure and elements of CO Mputer Programs-that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable Data.

The C + + language does not encourage functional programming, but it does not prevent you from doing so, and retains the ability to drill down into the underlying, use SIMD to directly lay out data in a function-based memory-mapped file, or any other essential feature you find useful.

At present, the data of C + + function programming is very few, fc++ is the best open source implementation based on C + + functional programming library, it can be inserted into the legacy C + + code. Bsfc++ has been used in projects such as fc++,bsfc++ is a library of large-scale synchronous parallel programming of functions in C + +. Can download fc++:http://sourceforge.net/projects/fcpp/from SourceForge

Learning materials:

1. Carmack: Functional Programming with C + +
2. Learning fc++:c++ Function Programming Library
3. Functional-style Programming in C + +

Functional programming with C + +

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.