Story Tools: PRINT | Text Size: S M L XL | REPORT TYPO | SEND YOUR FEEDBACK

Twitter's own 'Y2K' problem

By John Bowman, CBCNews.ca

Back on Blog Watch a few months ago, I wrote about how Unix computer systems tell time by counting the number of seconds since midnight on Jan. 1, 1970, and how in 2038, that number will no longer fit into a 32-bit integer.

Well, Twitter is going to be hitting that limit a lot sooner than that.

Each post on Twitter is given a unique identifying number and Twitter is running out. Once Twitterers create more than 2,147,483,647 posts, Twitter will start giving them negative ID numbers: -1, -2, -3. And third-party apps will likely crash as a result.

According to Twitpocalypse.com, Twitter is quickly approaching 1.85 billion tweets. Martin Dufort and Fred Brunel of WhereCloud, the Montreal developers behind the site, told the Montreal Gazette that Twitter could hit the 32-bit limit sometime in June.

WhereCloud set up Twitpocalypse.com as a marketing campaign for its iPhone app, Reportage, which is still awaiting approval by Apple.

« Previous Post | Main | Next Post »

This discussion is now Open. Submit your Comment.

Comments

Marc B

Saskatoon

Why is this such a big deal? If Twitter was originally built with a signed-32bit integer as their tweet primary key, then we can say at least one or more of the following:

a) Twitter never expected to get this big
b) The developers lacked the knowledge/foresight/intelligence to at least used an UNSIGNED integer as their primary key
c) The developers were too cheap to spend the extra 4 bytes of disk space per tweet to make the primary key 64bit

Posted May 19, 2009 06:08 PM

François Caron

Are you certain of that? It could be a 32 bit unsigned integer. Or if Twitter is running on a 64 bit operating system, the theoretical limit will be reached some 2 BILLION years from now, assuming the same rate of growth.

Posted May 19, 2009 06:53 PM

gukid

So you make one unique identifier for the user, and another for the post of that user, thus exponentially increasing the limit, it's easy. There are actually hundreds of different ways of dealing with this problem.

This, is just a publicity stunt. People will join, and post, to try and "crash" twitter, but it will never happen, and their user base will increase.

Posted May 25, 2009 02:58 PM

Chris Thomson

Twitter's not going to be setting status_ids to negative numbers. As Matt Sanford, a Twitter API developer, has said:

"There is no change to the format of responses and the number will continue to grow upward."

Some clients that cannot properly interpret 32-bit signed ints so large will have an issue with negative numbers.

Posted June 12, 2009 05:32 PM

« Previous Post | Main | Next Post »

Post a Comment

Disclaimer:

Note: By submitting your comments you acknowledge that CBC has the right to reproduce, broadcast and publicize those comments or any part thereof in any manner whatsoever. Please note that due to the volume of e-mails we receive, not all comments will be published, and those that are published will not be edited. But all will be carefully read, considered and appreciated.

Note: Due to volume there will be a delay before your comment is processed. Your comment will go through even if you leave this page immediately afterwards.

Privacy Policy | Submissions Policy

[an error occurred while processing this directive]
Story Tools: PRINT | Text Size: S M L XL | REPORT TYPO | SEND YOUR FEEDBACK

World »

new More than 90 killed in central Syria, activists say
Activists have raised the number of those reportedly killed by regime forces in a district of central Syria to more than 90.
new Ex-Mubarak PM vows not to recreate old regime
The last prime minister of ousted Egyptian President Hosni Mubarak is denying claims that he's trying to recreate the old regime.
analysis What a Greek euro exit could mean for Canada
A tumultuous Greek exit from the eurozone would have a harder impact on Canada's economy than the credit crisis recession of 2008 and 2009, a report from a major Canadian bank warns.
more »

Canada »

Aylmer triple stabbing leads to first-degree murder charges video audio
The estranged partner of a young mother who was stabbed to death along with her parents at their home in Aylmer, Que., has been charged with first-degree murder Friday.
Canada ending 'Buffalo shuffle' for visas, closing consulate
The federal government is shutting the Canadian consulate in Buffalo less than two years after costly renovations, while dropping a requirement for visas to be renewed outside the country, CBC News has learned.
Wildfires, high winds put northeastern Ontario on alert audio
It's going to be a tense weekend in northeastern Ontario where strong, shifting winds have been fuelling a forest fire that has blanketed the Timmins area with smoke and ash.
more »

Politics »

Dunderdale calls lack of EI consultation 'disturbing' video
Newfoundland and Labrador Premier Kathy Dunderdale says the federal government's planned overhaul of the employment insurance regime shows it is out of touch with unemployed Canadians.
Ottawa moves to limit foreign investment reviews video
The federal government is raising to $1 billion the amount of foreign money that can go into a Canadian company before the investment is reviewed. The review has been used in the past to block foreign takeovers of MDA and Potash Corp.
Canada ending 'Buffalo shuffle' for visas, closing consulate
The federal government is shutting the Canadian consulate in Buffalo less than two years after costly renovations, while dropping a requirement for visas to be renewed outside the country, CBC News has learned.
more »

Health »

Chronic fatigue may be reversed with exercise
Taking it easy is not the best treatment for chronic fatigue syndrome, rather exercise and behaviour therapy are, a large study finds.
AT&T buys T-Mobile USA for $39B US
AT&T Inc. said Sunday it will buy T-Mobile USA from Deutsche Telekom AG in a cash-and-stock deal valued at $39 billion US, becoming the largest cellphone company in the U.S.
Milky Way home to 50 billion planets: NASA
Scientists have compiled the first cosmic census of planets in our galaxy: at least 50 billion planets are estimated to call the Milky Way home.
more »

Arts & Entertainment»

video Gay characters' screen presence evolves video
New films and TV shows are addressing a new frontier in pop culture: gay characters whose narratives aren't limited to 'coming-out stories,' Deana Sumanac reports.
Modern and traditional art scores at Joyner auction
Both traditional and modern works fared well at Joyner Waddington's spring art auction in Toronto, with buyers snapping up lots by Group of Seven members as well as more contemporary artists.
Prophetic Cosmopolis premieres at Cannes video
David Cronenberg says he didn't anticipate the Occupy Wall Street movement as he prepared to shoot Cosmopolis, his new film which made its world premiere Friday at the Cannes Film Festival in southern France.
more »

Technology & Science »

Unloading of docked SpaceX capsule to start Saturday video
The privately bankrolled SpaceX Dragon capsule made a historic arrival at the International Space Station on Friday, and astronauts will begin unloading some of the 544 kilograms of food, water, clothing and other supplies its carrying starting Saturday.
South Africa, Australia to share world's largest telescope
South Africa and Australia will jointly host the Square Kilometre Array, which promises to be the world's largest telescope, the international consortium in charge of the project said Friday.
Bonavista, N.L., 'coyote' was really wolf, tests confirm
Wolves have not been seen in Newfoundland since around 1930 and were believed to have been hunted to extinction on the island, but genetic tests have confirmed that an 82-pound animal shot on the Bonavista Peninsula in March was, in fact, a wolf.
more »

Money »

analysis What a Greek euro exit could mean for Canada
A tumultuous Greek exit from the eurozone would have a harder impact on Canada's economy than the credit crisis recession of 2008 and 2009, a report from a major Canadian bank warns.
Bankia asks Spain for €19B video
The board of directors of Spain's troubled bank, Bankia, has asked the Spanish government for €19 billion ($24.5 billion Cdn) in financial support.
EI reforms aim to boost employment, Flaherty says
Finance Minister Jim Flaherty defended his government's proposals to change employment insurance, saying the aim is to remove "disincentives to employment."
more »

Consumer Life »

Honda recalls Fit subcompacts
Honda Canada says it will recall 14,640 of its 2009 and 2010 Fit subcompact cars to replace lost motion springs.
U.S. travel fee proposal criticized by Harper
Prime Minister Stephen Harper says he doesn't think much of a new border tax that's being proposed by the United States, calling it a cash grab designed to help a budget crisis.
Bell class action suit approved by Que. court
A Quebec Superior Court judge has authorized a class action lawsuit to go ahead against Bell Mobility.
more »

Sports »

Scores: NHL NBA

All the hockey finals are final: Friday night recap
In what may have been an unprecedented happening, the matchups for the Stanley Cup, Calder Cup and Memorial Cup were all locked in on the same night as a result of Friday's ice sheet results.
Henrique's OT goal sends Devils into Stanley Cup final video
The New Jersey Devils will vie for a potential fourth Stanley Cup in franchise history after defeating the New York Rangers in six games in the Eastern final, courtesy of rookie Adam Henrique's goal early in overtime.
video Scott Russell goes 1-on-1 with Jacques Rogge
CBC Sports Weekend host Scott Russell goes one-on-one with IOC president Jacques Rogge and asks him about Canada and Quebec City's enthusiasm for the Olympics.
more »

Diversions »

[an error occurred while processing this directive]
more »