TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Gangnam Style breaks YouTube viewer count

530 点作者 stephenheron超过 10 年前

21 条评论

gavinpc超过 10 年前
Can&#x27;t quite tell if this is a joke, but here&#x27;s a related &quot;story about a bug&quot; from Doug Crockford [0]:<p><pre><code> I made a bug once, and I need to tell you about it. So, in 2001, I wrote a reference library for JSON, in Java, and in it, I had this line private int index that created a variable called &quot;index&quot; which counted the number of characters in the JSON text that we were parsing, and it was used to produce an error message. Last year, I got a bug report from somebody. It turns out that they had a JSON text which was several gigabytes in size, and they had a syntax error past two gigabytes, and my JSON library did not properly report where the error was — it was off by two gigabytes, which, that&#x27;s kind of a big error, isn&#x27;t it? And the reason was, I used an int. Now, I can justify my choice in doing that. At the time that I did it, two gigabytes was a really big disk drive, and my use of JSON still is very small messages. My JSON messages are rarely bigger than a couple of K. And — a couple gigs, yeah that&#x27;s about a thousand times bigger than I need, I should be all right. No, turns out it wasn&#x27;t enough. You might think well, one bug in 12 years you&#x27;re doing pretty good. And I&#x27;m saying no, that&#x27;s not good enough. I want my programs to be perfect. I don&#x27;t want anything to go wrong. And in this case it went wrong simply because *Java gave me a choice that I didn&#x27;t need, and I made the wrong choice*. </code></pre> [0] <a href="https://www.youtube.com/watch?v=bo36MrBfTk4&amp;t=38m" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bo36MrBfTk4&amp;t=38m</a><p>EDIT: is there a reference for formatting comments? I&#x27;ve never been able to find one.
评论 #8691291 未加载
评论 #8692235 未加载
评论 #8693864 未加载
评论 #8691361 未加载
评论 #8691904 未加载
评论 #8691268 未加载
评论 #8691274 未加载
评论 #8692614 未加载
评论 #8702854 未加载
评论 #8692824 未加载
评论 #8694276 未加载
ChuckMcM超过 10 年前
The interesting meta-point though is that an audience of 20 million viewers is a big hit [1] so a billion views is 20M people watching it 50 times or, 200M people watching it 5 times. And 2 billion views is double that.<p>Put in perspective that is probably in excess the number of times the most favored &quot;I Love Lucy&quot; show has been seen. Or put another way, you&#x27;ve got a music video with the same eyeball impact as the highest rated television show ever.<p>That says to me that either advertising on Youtube is a bargain or advertising on TV is way over priced :-)<p>[1] <a href="http://tvbythenumbers.zap2it.com/2014/02/10/the-walking-dead-mid-season-premiere-delivers-15-8-million-viewers/235855/" rel="nofollow">http:&#x2F;&#x2F;tvbythenumbers.zap2it.com&#x2F;2014&#x2F;02&#x2F;10&#x2F;the-walking-dead...</a><p>[2] <a href="http://en.wikipedia.org/wiki/I_Love_Lucy" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;I_Love_Lucy</a>
评论 #8690929 未加载
评论 #8691484 未加载
评论 #8691236 未加载
评论 #8693069 未加载
评论 #8693533 未加载
评论 #8691133 未加载
评论 #8691750 未加载
评论 #8691504 未加载
xanderjanz超过 10 年前
Should have gone with unsigned ints, YouTube!<p>EDIT: Which is the solution they apparently implemented, converting signed to unsigned at some higher layer.
评论 #8690952 未加载
评论 #8690720 未加载
评论 #8691879 未加载
评论 #8691075 未加载
jawedkarim超过 10 年前
When youtube launched in April, 2005, the initial source code was based on another completely unrelated website that I had worked on before, written in PHP and running on Apache and MySQL. It’s always fascinating how implementations of complex systems evolve.
评论 #8693344 未加载
SapphireSun超过 10 年前
I love that they added an easter egg to the actual video. If you hover over the counter, it briefly shows you the negative overflow value.<p><a href="https://www.youtube.com/watch?v=9bZkp7q19f0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9bZkp7q19f0</a><p>EDIT: I just realized that YouTube also posted a comment to that effect just below the video. :P
leephillips超过 10 年前
The interesting question to me is why this particular video is so wildly popular. I don&#x27;t generally go in for music videos, but I find this one fascinating and have watched it a dozen times. I read an article that tried to explain to non-Koreans like me the meaning of it all, and apparently there are several layers of parody and social satire. I think I love it for its combination of attitude, surrealism, bizarre humor, and self-mockery, plus the music that seems to fit magically.
评论 #8692023 未加载
评论 #8694299 未加载
评论 #8692918 未加载
Aldo_MX超过 10 年前
Next milestone: 19th January 2038 03:14:07 GMT
评论 #8690743 未加载
rodgort超过 10 年前
Mea culpa. I can&#x27;t remember why I didn&#x27;t fix that when I reloaded the entire schema. At least I widened the video ids.
Animats超过 10 年前
This is a minor problem. In the 1980s, the number of tradable things with ticker symbols in US markets passed 32767, and some new issues had to be delayed until it was fixed.
jmount超过 10 年前
Nifty example. Billionaires, trillion dollar budges, billion-view celebrities, fast CPUs, and large memories: all reasons I am done with 32 bit architectures (old article of mine, but only on large memories <a href="http://www.win-vector.com/blog/2012/09/i-am-done-with-32-bit-machines/" rel="nofollow">http:&#x2F;&#x2F;www.win-vector.com&#x2F;blog&#x2F;2012&#x2F;09&#x2F;i-am-done-with-32-bit...</a> ).
评论 #8690770 未加载
rkachowski超过 10 年前
I saw this a few days ago, at first I thought it was an easter egg on youtube&#x27;s part - saying &quot;so many views we overflow!&quot;<p>But it&#x27;s real?! It seems incredibly absurd that it could actually overflow, how are signed values useful for a count of views? How are you going to have negative views?
评论 #8690919 未加载
评论 #8690822 未加载
评论 #8691023 未加载
评论 #8690769 未加载
评论 #8690900 未加载
评论 #8690839 未加载
antimora超过 10 年前
It looks like it also broke the formatting on the number of the viewers: &quot;2151501252&quot;. This string does not have thousands separators.<p>Direct link to the video: <a href="https://www.youtube.com/watch?v=9bZkp7q19f0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9bZkp7q19f0</a>
评论 #8692137 未加载
DigitalSea超过 10 年前
Wow, this is cool. One video was able to exceed a 32 bit integer thus requiring a change to a 64 bit integer, all caused by one man and one video.
评论 #8690666 未加载
评论 #8690667 未加载
评论 #8690593 未加载
ecesena超过 10 年前
I&#x27;d be curious to know how they discovered it. Were they monitoring it? Did someone report it? Did an alarm trigger? ...
thibauts超过 10 年前
Why the hell would you want to store a counter as a signed int in the first place ?
评论 #8692359 未加载
adad95超过 10 年前
There is Easter Egg in the video counter. Hover with your mouse. <a href="https://www.youtube.com/watch?v=9bZkp7q19f0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9bZkp7q19f0</a>
alejandc超过 10 年前
unbelievable
jfmercer超过 10 年前
I will always upvote anything related to Gangnam Style. Always.
tn13超过 10 年前
Am I the only one who thinks that Google is posting this bug(!) just to make the Google plus post popular ?
评论 #8692030 未加载
IgorPartola超过 10 年前
uint_32 strikes again! And one day we&#x27;ll stop using it in favor of int_64, and all unique identifiers will be string, and all will be well.<p>I remember when Twitter had rolled over their tweet ID&#x27;s because they were using an int type that was too short. Should have gone with variable length strings to avoid that problem.
评论 #8690728 未加载
评论 #8690682 未加载
dogma1138超过 10 年前
Every time i check the most viewed videos on YouTube i get depressed and lose all faith in humanity. Landing on a comet gets you 250K views, anouncing the discovery of the higgs gets you less than 100K, latest twerking video or PewDiePie 2M at least...
评论 #8690834 未加载
评论 #8691093 未加载