528 karma · joined June 29, 2015
Can you elaborate on this? Sounds like it might be a way to limit back strain? Do you have a desk at all?
This is an aspect of the https://en.wikipedia.org/wiki/Planning_fallacy.
https://github.com/colgreen/cartpole-physics
Note that the equations being used in the 'wild' are generally wrong in some way; see the article appendices for detailed info.
I put 'nap' in quotes because I don't set an alarm (unless there is specific need to), and for me that usually means a 2 hour sleep! I figure that is made up of 90 mins of one sleep cycle, and some time either side for falling asleep and waking.
https://en.wikipedia.org/wiki/Sleep_cycle
All made possible by pandemic working from home.
https://github.com/colgreen/Redzen/tree/master/Redzen/Sortin...
Available via this nuget package:
https://www.nuget.org/packages/Redzen/
Timsort may give much improved performance if the items in an array are already partially sorted. I had a specific need for this, and couldn't find any good quality implementations in the dotnet world, so ended up putting the time in to port it and update it to the latest fixed/patched version.
As part of the work I looked at the source for Array.Sort and noticed it was doing some redundant null checks when you call it with a secondary sort array. I submitted a pull request to the MS github repo with some supporting performance numbers, and they merged it in.
It looked to me that the code there was originally one class that used null checks to support the secondary sort array, and at some point the code was copied to a second class that does the secondary sort only, and the first class had that logic removed, but some of the null checks apparently got left behind.
Next steps for my timsort will involve moving from dotnet standard to dotnet core, and starting to leverage some of the new functionality, such as Intrisics for x86-64 and Arm. So this article will be a good starting point for that.
https://www.amazon.com/Journal-Plague-Year-Observations-Rema...
--
Edit: See comments below - I got the dates wrong.
I believe this is the plan for Monday if the PM's deal doesn't go through today. I.e. list the options you will accept in order of preference.