The Old New Thing

2 min read Original article ↗

Latest posts

How can you swap two adjacent blocks of memory using only forward iterators?

Jan 2, 2026

Post comments count 0

Post likes count 1

How can you swap two adjacent blocks of memory using only forward iterators?

Raymond Chen

Raymond Chen

A different algorithm, employing a different kind of cleverness.

Swapping two blocks of memory that reside inside a larger block, in constant memory

Jan 1, 2026

Post comments count 6

Post likes count 1

Swapping two blocks of memory that reside inside a larger block, in constant memory

Raymond Chen

Raymond Chen

A variation on the constant-memory rotation.

2025 year-end link clearance

Dec 31, 2025

Post comments count 3

Post likes count 1

2025 year-end link clearance

Raymond Chen

Raymond Chen

Another year gets relegated to history.

Understanding and mitigating a stack overflow in our task sequencer

Dec 31, 2025

Post comments count 1

Post likes count 1

Understanding and mitigating a stack overflow in our task sequencer

Raymond Chen

Raymond Chen

The recurring problem of synchronous resumption.

Additional notes on color-keyed overlays as a way of doing smooth video rendering

Dec 30, 2025

Post comments count 3

Post likes count 2

Additional notes on color-keyed overlays as a way of doing smooth video rendering

Raymond Chen

Raymond Chen

Choosing the color-key and other brief discussions.

The Gävle Goat (Gävlebocken) succumbs in 2025 to a new menace

Dec 29, 2025

Post comments count 3

Post likes count 1

The Gävle Goat (Gävlebocken) succumbs in 2025 to a new menace

Raymond Chen

Raymond Chen

You could blow me over.

How can I detect that the system is running low on memory? Or that my job is running low on memory?

Dec 29, 2025

Post comments count 1

Post likes count 1

How can I detect that the system is running low on memory? Or that my job is running low on memory?

Raymond Chen

Raymond Chen

You can register for a memory notification.

Why are we worried about memory access semantics? Full barriers should be enough for anybody

Dec 26, 2025

Post comments count 6

Post likes count 4

Why are we worried about memory access semantics? Full barriers should be enough for anybody

Raymond Chen

Raymond Chen

You have to find new ways of going faster.

Reading the fine print, episode 4: Holiday promotions

Dec 25, 2025

Post comments count 4

Post likes count 3

Reading the fine print, episode 4: Holiday promotions

Raymond Chen

Raymond Chen

Checking those validity dates.

Load more posts