What Hacker News really needs is a list of cities ranked on minimum cost of living: how little can a foreigner spend on housing, meals, entertainment, etc. in a given city, without being in danger of crime, disease, ceiling collapse, frostbite, or an unstable internet connection? That figure is far lower in Shanghai and even Hong Kong than in New York ...
That is an awesome request, and I would gladly help compile some figures if someone wants to take point on such a project.
Anecdotally, I lived for several years in Southeast Asia (2002-2004) and at that time Hồ Chí Minh City in Việt Nam definitely had the best "hacker price index". Cost of living was miniscule, yet internet connectivity was still decent. (Better than, for example, Bangkok or KL.)
I would expect that there are plenty of small US cities that are cheap for those who don't want to deal with a new country while they are trying to set up a startup, however....
I think Wikipedia uses this one too. Apparently all these lists are flawed because they rate them against the dollar.
Also, peg aside, the RMB has been strengthening in value over the past decade, and the Euro, I believe, has definitely gained against the dollar. So while NY may be expensive in the US, it is increasingly cheap when compared to certain other countries.
And it's very surprising that shanghai would be nearly as expensive as new york, a city that is already considered fairly expensive.