4 ms·
> Edit: Also, technically reddit was using signed int32s. So they really only had 2^16 unique digits. If they used unsigned int32s, then that would have bought
by rezonant 4y ago
> Edit: Also, technically reddit was using signed int32s. So they really only had 2^16 unique digits. If they used unsigned int32s, then that would have bought them a lot of time.
Signed integers have 2^31 positive values (well, just about). It doesn't take 16 bits to store the negative sign :-)
- HideousKojima 4y agoNot for most implementations, a signed 32 bit int goes from ~-2 billion to ~+2 billion, an unsigned from 0 to ~4 billion
- taeric 4y agoThat isn't disagreeing? It is half the numbers. But that is just minus one exponent. Right?
- HideousKojima 4y agoThe GP said it would have "bought Reddit a lot of time," the post I responded to said it was merely 2^31 implying that it wouldn't have bought them a lot of time, that's the part I was replying to (though I didn't word it clearly). 2 billion more values would have bought Reddit a lot of time. I should have taken more time to read over both posts and respond more clearly though
- bagels 4y agoFor most implementations 2^31 is ~2 billion.