Simple declarative reflection in C++20

21 December 2022

Almost every real-world application requires a lot of similar operations such as saving its internal state, making API requests, logging events, etc. This leads to writing hundreds of lines of code to convert classes to JSON, serializing to various formats, and so on.

But if we knew the internal structure of classes, then we could write generic functions for all use cases and get the desired features quickly and easily.

How C++14 and C++17 help to write faster (and better) code. Real world examples

29 August 2016
Writing high performance code is always a difficult task. Pure algorithms are not always a good fit for the real world architectures. Once having begun to speed up all these pure algorithms, we quickly find that some implementation is pretty fast on one architecture, but terrible slow on another while second implementation outperform the first one in some contexts losing speed in all the rest. Numerous big and small optimizations for each of supported architectures can quickly bloat our code and waste our time.