This is fun:

“Gangnam Style,” the K-pop sensation that basically owned 2012, has been viewed so many millions of times that, two years later, YouTube’s view counter literally broke trying to tally it.

The site is upgrading that tool as a result, a spokesperson wrote on YouTube’s Google+ page. That means that in the future, YouTube will be able to accommodate videos with more than 2.147 billion views — which was, previously, the most views YouTube imagined a video could ever receive.

Ok, that’s fun but I really meant this:

But basically, YouTube codes its view count as a signed 32-bit integer, which means (a) it stores numbers as a string of 32 0s and 1s, with one of those slots reserved for determining if it’s a positive or negative number, (b) it can only count up to 2^(32-1), or 2,147,483,648, and (c) if it reaches that point, instead of counting to the next positive number, it will switch into negative integers.

Ok that’s also fun, but really this:

Funnily enough, that’s not a new problem. In fact, it’s been the curse of 2,147,483,647 almost since the number was proven by Leonhard Euler in 1772.

Either someone’s not understanding something here (how does one even prove a number) or there’s something missing. This is implied in the next bit which notes that Euler showed this was a perfect number (a number which is equal to the sum of its proper divisors) back in 1772. Now that’s fun.

Here’s the video if you want to try to break the new counter:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: