Open in app

Sign In

Write

Sign In

Ryonald Teofilo
Ryonald Teofilo

68 Followers

Home

About

2 days ago

Atomics in C++ — What is a std::atomic? (Part 1)

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 atomically, which means there is a guarantee that no other processes/threads would see any intermediary state. Since C++11 introduced std::thread as a standard language-provided way to…

Cpp

7 min read

Atomics in C++ — What is a std::atomic (Part 1)
Atomics in C++ — What is a std::atomic (Part 1)
Cpp

7 min read


Sep 11

Cache 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 alignment. Cache Lines As a prerequisite, data is moved between the CPU cache and main memory in fixed size blocks, known as cache lines. …

Cpp

4 min read

Cache Line Alignment in C++ — How It Makes Your Program Faster.
Cache Line Alignment in C++ — How It Makes Your Program Faster.
Cpp

4 min read


Sep 11

Memory 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 advanced compilers and interpreters have gotten, that these lower-level complications are taken care of without most of us knowing. But since you are programming in C++, you’re always looking for…

Cpp

6 min read

Memory and Data Alignment in C++ — What is Misaligned Access?
Memory and Data Alignment in C++ — What is Misaligned Access?
Cpp

6 min read


Aug 27

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 mention inline as a way to hint the compiler to substitute logic of a function in-place of every instance of it being called; In other words, inlining. …

Cpp

6 min read

Inline in C++ — What it has to do with the One Definition Rule.
Inline in C++ — What it has to do with the One Definition Rule.
Cpp

6 min read


Aug 20

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 variables. This speeds up processes that may otherwise be slow and inefficient, especially with objects that are “expensive” — such as containers or complex user-defined types. Let’s take a…

Cpp

4 min read

Copy and Move Elision in C++ — What is RVO/NRVO?
Copy and Move Elision in C++ — What is RVO/NRVO?
Cpp

4 min read


Aug 6

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 because it “just works”. However, it is important to be cognizant of the template type deduction process, since picking the wrong deduction behaviour could cause unintended side effects…

Cpp

7 min read

Template type deduction in C++ — Behind the magic.
Template type deduction in C++ — Behind the magic.
Cpp

7 min read


Jul 30

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 use of static and extern. // what makes these different? int y; static int x; extern int z; Seeing the static keyword for the…

Cpp

6 min read

Static and Extern in C++ — What it really does to your program?
Static and Extern in C++ — What it really does to your program?
Cpp

6 min read

Ryonald Teofilo

Ryonald Teofilo

68 Followers

Sharing my thoughts on programming - one debug break at a time 🖤 ryonaldteofilo.github.io

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams