A new datetime blog post is up! This time, low-level algorithms for computing the day-of-the-week, around 2-3x faster than usual:
https://t.co/9oqGLySuNH
@memecrashes Finite new guests (K) can fit by making everyone move from their room "n" to min(n*2, K + n).
This will fit all the new guests and involve the same or less moving than the infinite case.
@djdlc_1895 Hi! Compilers are not always very clever, but fortunately they are able turn those into bit-shifts. There's also a `* 512` term that compiles to `<< 9`.
@reductor I don't have a usecase for it. I did this purely for the fun of it.
There are many niche usecases, such as high frequency trading, as well as in databases when "bad" queries are made like "select * where month(created_at) = x".
Check out my new Web App:
https://t.co/0hWMcS1UJb
It teaches you to easily calculate the day of the week for any date.
It includes a daily game, my result for Day 1:
โญโญโญ
๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ
Streak: 1๏ธโฃ
Perfect Streak: 1๏ธโฃ
#weekle
GreasePig has created an animated history video for all the champions and top 10 throughout history in Perfect Dark, give it a watch! https://t.co/fkkYId8kgS