3 ms·
That's a bit of a hat tip to donut.c: https://www.a1k0n.net/2011/07/20/donut-math.html https://www.a1k0n.net/2011/07/20/donut-math.html
by _kb 1y ago
That's a bit of a hat tip to donut.c: https://www.a1k0n.net/2011/07/20/donut-math.html https://www.a1k0n.net/2011/07/20/donut-math.html
- dbacar 1y agoI didnt know that, thanks.
- pelagicAustral 1y agoThis is the exact type of thing that makes me feel like I am in the wrong line of business...
- dotancohen 1y agoEvery field has somebody five standard deviations out to the right. Don't let that mistake you into thinking you're too far to the left. The fact that you can appreciate such an accomplishment, already puts you a standard deviation to the right.
- ycuser2 1y agoThe donut is kind of cheated because it uses comments.
- omoikane 1y agoProbably more of a hat tip to this one: https://www.ioccc.org/2000/natori/index.html https://www.ioccc.org/2000/natori/index.html https://github.com/ioccc-src/winner/blob/master/2000/natori/natori.c https://github.com/ioccc-src/winner/blob/master/2000/natori/... It's interesting how the same 2551443 bitmask appears in the time calculation for both.
- repmop 1y ago2551443 is the length of the synodic month in seconds. The calculation being done converts the current time in seconds into a 512-wide integer range representing the lunar phase by offsetting from the lunar phase during the unix epoch.