PinnedRyonald TeofiloMemory 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, 20232Sep 11, 20232
PinnedRyonald TeofiloCache 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, 20233Sep 11, 20233
PinnedRyonald TeofiloWriting 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 271Apr 271
Ryonald TeofiloData 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
Ryonald TeofiloAtomics 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, 20234Oct 3, 20234
Ryonald TeofiloAtomics 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, 20232Sep 26, 20232
Ryonald TeofiloInline 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, 20234Aug 27, 20234
Ryonald TeofiloCopy 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
Ryonald TeofiloTemplate 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, 20231Aug 6, 20231
Ryonald TeofiloStatic 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, 20231Jul 30, 20231