#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Swapping two blocks of memory that reside inside a larger block, in constant memory
·
Raymond Chen
·
Jan. 1, 2026, 3:10 p.m.
Old New Thing
Code
software development
Memory Management
programming techniques
Summary
This blog post discusses a variation of the constant-memory rotation technique for swapping blocks of memory within a larger block.
Read full post on devblogs.microsoft.com →
MORE POSTS LIKE THIS
A Bank Is Now Something You Can Pick Up
Hindsight Blog ·
Sep 22, 2026
hindsight
Agent Memory
Scope pinning `&mut T`
Users Rust Lang ·
Aug 22, 2026
software development
Rust
Swapping matrix names in a loop
Fortran Lang Discourse ·
Aug 16, 2026
software development
Fortran
Ante: A New Way to Blend Borrow Checking and Reference Counting
Evan Ovadia ·
Jun 28, 2026
programming-languages
Mojo Programming Language
Memory Management in C++ by Patrice Roy
Sandordargo ·
Jun 17, 2026
books
C++
What Happens Inside an LLM Server When 10 People Send a Prompt
Muhammad ·
Sep 30, 2026
AI
llm
Discover more posts →
AUTHOR
Advertise
Sponsor diff.blog
Put your product in front of developers who read and write about their craft. One exclusive sponsor at a time.
Become a sponsor →
BLOG POST FEATURED ON
Hacker News
3 points
Add this plugin to your blog
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.