#
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
A faster way to calculate the Day of the Week
·
Ben Joffe
·
Aug. 16, 2026, 9:36 p.m.
programming
Performance Optimization
modulus techniques
date calculations
Summary
The blog post discusses advanced modulus techniques that improve the performance of calculating the day of the week, presenting original methods that outperform standard compiler outputs.
Read full post on www.benjoffe.com →
MORE POSTS LIKE THIS
A new, bespoke static site generator to replace Jekyll
Christopher Wellons ·
Oct 4, 2026
C++
Cpp
Benchmark: Which Dart loop is the fastest?
filiph ·
Oct 4, 2026
Dart
programming
Shell arguments tokenization approach & implementation advice
Users Rust Lang ·
Oct 2, 2026
programming
Rust
SIMD Masking
Casey Muratori ·
Aug 31, 2026
programming
software development
Test whether a large integer is a square
John Cook ·
Jun 27, 2025
Computing
programming
Unroll a loop, make shader 10x faster
aras-p ·
Oct 5, 2026
blender
Performance Optimization
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
r/cpp
92 points
r/programming
53 points
Hacker News
4 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
.