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…6 min read·Sep 11, 2023--2--2
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…4 min read·Sep 11, 2023--3--3
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…7 min read·Apr 27, 2024----
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…8 min read·Dec 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…10 min read·Oct 3, 2023--3--3
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…7 min read·Sep 26, 2023--2--2
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…6 min read·Aug 27, 2023--3--3
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…4 min read·Aug 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 …7 min read·Aug 6, 2023--1--1
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 …6 min read·Jul 30, 2023--1--1