#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
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.
Code
Old New Thing
Memory Management
programming techniques
software development
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
Scope pinning `&mut T`
Users Rust Lang ·
Aug 22, 2026
Rust
Memory Management
Swapping matrix names in a loop
Fortran Lang Discourse ·
Aug 16, 2026
Fortran
Memory Management
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++
SwiftData: Optimization Starts with Modeling
Fatbobman ·
Sep 2, 2026
Swift
programming
Randal Schwartz on Perl and timestamps
Ruben Schade ·
Sep 4, 2026
perl
timestamps
Discover more posts →
AUTHOR
Sponsored
Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
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