#
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
30
·
Raymond Chen
·
Jan. 1, 2026, 3:10 p.m.
Old New Thing
Code
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
Avoiding large stack frames by passing &mut self instead of self
Users Rust Lang ·
Jul 26, 2026
Rust Programming
Performance Optimization
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++
Seriously, what is the large code-model even for?
fzakaria ·
Jul 27, 2026
large code model
software development
Digital circuit simulator in Haskell (SICP 3.3)
Two-Wrongs ·
Jul 27, 2026
programming
Haskell
Optimizing Ruby’s JSON, Part 8
byroot ·
Jul 26, 2026
ruby
json
Discover more posts →
AUTHOR
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