How Perl and R Reveal the United States' Isolation In the TPP Negotiations
langelgjm writes "As /. reported, last Thursday Wikileaks released a draft text of the intellectual property chapter in the Trans-Pacific Partnership Agreement. Since then, many commentators have raised alarm about its contents. But what happens when you mix the leaked text together with Perl regular expressions and R's network analysis packages? You get some neat visualizations showing just how isolated the United States is in pushing for extreme copyright and patent laws."
From TFA:
print "$_\n" for @match = $txt =~ m/(?:(?:AU|BN|CA|CL|JP|MX|MY|NZ|PE|SG|US|VN)[0-9]*\/)+(?:AU|BN|CA|CL|JP|MX|MY|NZ|PE|SG|US|VN)[0-9]*/g;
It’s ugly, but it seems to get the job done.
I agree, it's Perl^Wugly. But Python wouldn't be much better. At least we can remove the redundancy in the regex:
countries="(?:AU|BN|CA|CL|JP|MX|MY|NZ|PE|SG|US|VN)[0-9]*"
print "\n".join(re.findall("(?:{0}/)+{0}".format(countries), txt))
I would personally say it is because the USA has bet the farm on being the monopoly holder on intellectual properties. Look where Hollyweird is, where silicon valley is, etc. A goodly portion of the US's GDP is based on intellectual properties, and ventures related to or hinging upon, intellectual properties or intellectual property laws. (Hollywood, music, software, biomedical, pharmecutical, biotech, etc.)
Compare that with the economies of the other countries implicated, who have GDPs predominantly composed of the trade and sale of material goods.
Given its market position, NATURALLY, the USA would only sign on to an agreement like this, if it could leverage market dominance in that market niche.
The US is being gently pushed ( nudged ) into a beginning of rrelevance. Has already been going on for a couple of years: computer technology, aerospace tech, politics. NSA scandal accelerated it. The sun is going down over US America.
Religous speak to God. Insane are spoken to by God. When all shut up, one can finally hear Shostakovich in peace
Can we drop the nonsense that TPP is a 'free trade agreement?' A free trade agreement would be very simple. Don't bomb us or torture our citizens, and you can trade freely with us. TPP undermines free trade by forcing countries into even further support of anti-capitalism legal monopolies as a condition for not restricting trade.
This is my signature. There are many like it, but this one is mine.
I would personally say it is because the USA has bet the farm on being the monopoly holder on intellectual properties.
That's a bad bet - something more affected by corruption and propaganda (the wonders of our "post-industrial" economy!) than by any rational policy choice. The excessive and corrupt influence of the "intellectual property" and financial parts of our economy hurts the rest of the economy. There are limits to the potential value of "intellectual property". It's not as big a part of our economy as is often hyped, other countries can easily produce large parts of it (e.g. movie and music production don't have major barriers to entry), and does anyone really expect other countries to rigorously enforce IP laws that mostly benefit the US, regardless of what trade agreements say?
Why would you use something other than perl for parsing text? This is what perl was designed for and it's most likely faster than anything else scripted. I'm sure you could write a text parser in any language you happen to like, but if you have the skills then perl is the correct tool for this job.
Korma: Good
Did you ever do a "countries on springs" analysis such that countries which concur with each other are pulled together, and those that disent are pushed apart? Similar to the 3rd quartile cutoff one, but with all countries, and with distance made more significant.
;-)
One way I've done this in the past is to stick all dots on the unit sphere, anneal them into a stable position on that sphere with a suitable repulsion law, and then to squash the sphere. Chose a random point on the surface, conformally map the sphere minus that point onto a unit disc, re-anneal, and chose the outcome with lowest energy. Random point selection will naturally find the biggest open areas, bordered by the most repulsive countries, ones which deserve to be on the peripheries of the flattened diagram.
Hehe, I like the idea of the US being the most repulsive country.
Also FatPhil on SoylentNews, id 863
I'd be curious to compare the political stance before and after Harper's rise to power. To me the difference is quite stark and I feel like things went very much American when he arrived. Anti-environment, anti-science, pro-oil, pro-business, anti-social policies, etc. Heck, we've had more debates on abortion, the capital sentence and other such social issues since he came around than we've had in the decades before.