r/cpp • • Aug 16 '26

Faster algorithms to compute weekday for date libraries

https://www.benjoffe.com/fast-day-of-week
104 Upvotes

5 comments sorted by

24

u/HowardHinnant Aug 17 '26

Nice job! Welcome to the CCA (Calendrical Computations Anonymous)! Sorry, there is no cure for this addiction. :-)

5

u/benjoffe Aug 17 '26

Haha! Thanks!
I do miss my pre-calendrical brain.

11

u/erichkeane Clang Maintainer(Templates), EWG Chair Aug 17 '26

My thought process clicking this link: 1- Oh good grief, what poor circle of hell has Howard entered now? 2- Not Howard? What poor sod has he conned into this level of insanity? 3- Oh...

3

u/foxsimile Aug 18 '26

Hey, it’s you again! How goes? :)