Hopefully without sounding like I am trying to boast or anything... I find the difference in readability and clarity dramatic between those two on one hand and my own deobfuscated, refactored and commented version of the OP. https://gist.github.com/ctsrc/fef3006e1d728bb7271cff0656eb02...
https://gist.github.com/femto113/28f69626acddc70a002ecead0b3... (from https://news.ycombinator.com/item?id=19290841 )