Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Sharding Pinterest: How we scaled our MySQL fleet. Parent comment
241294492511762325 >> 46 means shift the binary form of number which is
0000001101011001010000000001000000000000011010111111011110010101
0000000000000000000000000000000000000000000000000000110101100101
& 0xFFFF is doing a AND operation of the bits.
0000110101100101 1111111111111111 ---------------- 0000110101100101
There are no comments on this comment yet.
241294492511762325 >> 46 means shift the binary form of number which is
to the right 46 spaces while replacing with 0s 0xFFFF is hex version of 1111111111111111 (note two missing bits he reserved for gold :D )& 0xFFFF is doing a AND operation of the bits.
so 0000110101100101 in decimal is 3429