All writing

Category edition · 7 articles

C++

Memory, lifetimes, and the build model, taken from C++ and pointed back at the languages that hide them.

From the archive

All C++ articles

7 filed

Boluwaji Joshua AdedigbaC++

C++

Move semantics, and why copies are expensive

A pointer copied twice will free the same memory twice. Following that bug to its fix explains deep copies, r-value references, and what moving an object really is.

6 min readRead article
Boluwaji Joshua AdedigbaC++

C++

What compiling actually means

Source becomes object code, object code becomes a program, and the linker sits between them. The model that go build and every bundler hide from you.

5 min readRead article
Boluwaji Joshua AdedigbaC++

C++

What a function call does to memory

A frame gets pushed, a frame gets popped, and the ceiling was fixed when the thread was created. Which is why goroutines are cheap and Node has a maximum call stack.

8 min readRead article
Boluwaji Joshua AdedigbaC++

C++

Pointer, reference, or value, and how to choose

C++ makes every function state whether the callee gets a copy, another name for your object, or an address that might be null. Go asks the same thing, quietly.

8 min readRead article
Boluwaji Joshua AdedigbaC++

C++

What virtual actually changes

A base-class pointer holding a derived object runs the base method. Why C++ binds at compile time, what virtual costs per object, and how Go's itab differs.

9 min readRead article
Boluwaji Joshua AdedigbaC++

C++

Exception hierarchies, and what Go rejected

A constructor cannot return an error code, so C++ throws. The std::exception tree, what catching a base class buys you, and where errors.As lands.

8 min readRead article