The Definition of Functional Programming

The definition of functional programming is quite easy. Functional programming is programming with mathematical functions. Is that all? Of course, not!

Read more
Views: 53758

Functional in C++17 and C++20

Which functional feature can we expect with C++17, for which functional feature can we hope for with C++20? This is exactly the question I will concisely answer in this post.

Read more
Tags: C++20, C++17
Views: 76278

Functional in C++11 and C++14: Dispatch Table and Generic Lambdas

My favourite example the dispatch table shows how nice the features in modern C++ work together. A dispatch table is a table of pointers to functions. In my case, it is a table of handles to polymorphic function wrappers.

Read more
Tags: lambdas
Views: 62632

Functional in TR1 and C++11

In this post, our journey through the functional features of classical, modern, and future C++ continues. Today, we stop in the present.

Read more
Tags: auto
Views: 21202

Functional in C++98

C++ is not a functional programming language but you can program in a functional style. What are the functional features in C++? I will answer this question for C++98.

Read more
Views: 27272

Object-Oriented, Generic, and Functional Programming

C++ is not a functional programming language. C++ has its roots in procedural and object-oriented programming. So it's quite surprising that programming in a functional style becomes more and more important in C++. That is not only true for C++. That holds also for python, which has a lot of functional features and even for Java. Now Java has lambda functions.

 

Read more
Views: 40811

Memory Pool Allocators from Jonathan Müller

After I have written a few posts about memory management in C++, I'm very glad to present Jonathan Müller, which will write a guest post about his implementation of the memory library. He will explain to us his concepts about his design. Jonathan is known as an expert in memory management in the C++ community. In the  59 episodes, he presented his ideas to a worldwide audience.

Read more
Views: 66097

Pros and Cons of the various Memory Allocation Strategies

In C++ you have the choice between various memory allocation strategies. In addition to the frequently used dynamic memory allocation, you have the stack allocation. But you can preallocate the memory at the start time of your program. This can be a fixed-sized block or one or more memory pools. Each of these strategies has its pros and cons. Which one, I will answer in this post.

 

Read more
Views: 40765

Strategies for the Allocation of Memory

There a lot of different strategies for allocating memory. Programming languages like Python or Java request their memory from the heap at runtime. Of course, C or C++ has also a heap but prefers the stack. But these are by far not so only strategies for allocating memory. You can preallocate memory at the start time of the program as a fixed block or as a pool of memory blocks. This preallocated memory can afterwards be used at the runtime of your program. But the key question is. What are the pros and cons of the various strategies to allocate memory?

Read more
Views: 73036

Memory Management with std::allocator

What is common between all containers of the Standard Template Library? They have a type parameter Allocator that is by default std::allocator. The job of the allocator is to manage the lifetime of its elements. That means to allocate and deallocate memory for its elements and to initialize and destruct them.

Read more
Views: 74014

My Newest E-Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 60

Yesterday 7507

Week 23191

Month 82820

All 6311292

Currently are 304 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments