Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Two's complement – You beauty. Parent comment
(1) How often do you convert from machine integers to binary character representations?
(2) If you're referring to
for(j = 0; j < bitlen; j++) { bin[j] = (i & 1) ? '1': '0'; i >>= 1; }
(1) How often do you convert from machine integers to binary character representations?
(2) If you're referring to
that's the exact same for a negabinary machine.