PinnedMemory and Data Alignment in C++ — What is Misaligned Access?Data or memory alignment is a significant concept in software development that surprisingly isn’t discussed often. Mostly because of how…Sep 11, 2023A response icon2Sep 11, 2023A response icon2
PinnedCache Line Alignment in C++ — How It Makes Your Program Faster.As discussed in Memory and Data Alignment in C++, memory alignment is commonly used for optimisation. One of the methods is cache line…Sep 11, 2023A response icon3Sep 11, 2023A response icon3
PinnedWriting Stable APIs with pImpl and Fast pImpl in C++If you’re anything like me who struggled with acne growing up, you may have also mistaken pImpl idiom as some clever wordplay on the facial…Apr 27, 2024A response icon1Apr 27, 2024A response icon1
Data Structures in C++ — STL ContainersUnderstanding data structures and how they are manipulated as we add, remove and modify data is important to help make better decisions…Dec 3, 2023Dec 3, 2023
Atomics in C++ — CAS and Memory OrderContinuing from the last post, we discussed atomic read, write and read-modify-write. However, we have yet to discuss arguably the most…Oct 3, 2023A response icon4Oct 3, 2023A response icon4
Atomics in C++ — What is a std::atomic?The radioactive part of C++, std::atomic was added in C++11 as a way to declare an atomic variable — a variable whose value changes…Sep 26, 2023A response icon2Sep 26, 2023A response icon2
Inline in C++ — What it has to do with the One Definition Rule.The inline keyword has got to be the most misunderstood keyword in C++. I remember when I first started, most online sources solely mentio…Aug 27, 2023A response icon5Aug 27, 2023A response icon5
Copy and Move Elision in C++ — What is RVO/NRVO?Copy and move elision is an optimisation technique used by many C++ compilers to avoid unnecessary copying and moving of temporary variab…Aug 20, 2023Aug 20, 2023
Template type deduction in C++ — Behind the magic.Template programming is a powerful built-in feature of C++ that most developers neglect to take the time to truly understand — mostly …Aug 6, 2023A response icon1Aug 6, 2023A response icon1
Static and Extern in C++ — What it really does to your program?C++ is a popular programming language, but it is also known to be difficult to grasp. One of the obscure concepts in the language is the …Jul 30, 2023A response icon1Jul 30, 2023A response icon1