Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The beauty of bitwise AND. Parent comment
* assume WLOG `a = min(a, b)`
* `a & b` takes the set bits of `a` and produces a subset of them
* the value of an integer is `SUM 2^j` where the j-th bit is set
* removing positive elements from a sum can only make it smaller
* therefore & can only produce a value smaller than `a` (the minimum)
There are no comments on this comment yet.
* assume WLOG `a = min(a, b)`
* `a & b` takes the set bits of `a` and produces a subset of them
* the value of an integer is `SUM 2^j` where the j-th bit is set
* removing positive elements from a sum can only make it smaller
* therefore & can only produce a value smaller than `a` (the minimum)