Go one step beyond that, and countries are going to begin blockading shipping and closing borders entirely. Finally, there is the danger of war as the only recourse that some leaders will decide is needed to set matters straight again.
Think of Chinese support for North Korea: Pyongyang relies on Beijing for virtually all its oil and a large percentage of its food, among many other items. If the US fails in its dialogue with North Korea over denuclearisation and the danger of war again hovers over the Korean peninsula, China would surely side with North Korea, as it did in the Korean war.
The stand-off with China extends all round the rim of Asia, down to the South China Sea and on to the Indian Ocean and the Arabian Sea, and beyond.
Korea’s trade surplus with the US last year was US$23.1 billion, down from a high of US$28.3 billion in 2015 but still considerably more than US trade officials would like.
Japan, whose surplus with the US last year reached US$68.8 billion, down from a peak of US$76.4 billion in 2012 but still far too high.
With numbers like these, it’s easy to see why Trump is talking so tough about the trade deficit while America’s trading partners are outraged by moves to cut it.
The fear, however, is that these nasty battles could eventually explode into armed conflict in which hundreds of millions, maybe billions, would perish. Policymakers and negotiators have to keep this risk at the top of their concerns as they confront one another in a global trade war that could someday erupt into the third world war.
The wealthy are plotting to leave us behind
Last year, I got invited to a super-deluxe private resort to deliver a keynote speech to what I assumed would be a hundred or so investment bankers. It was by far the largest fee I had ever been offered for a talk — about half my annual professor’s salary — all to deliver some insight on the subject of “the future of technology.”
I’ve never liked talking about the future. The Q&A sessions always end up more like parlor games, where I’m asked to opine on the latest technology buzzwords as if they were ticker symbols for potential investments: blockchain, 3D printing, CRISPR. The audiences are rarely interested in learning about these technologies or their potential impacts beyond the binary choice of whether or not to invest in them. But money talks, so I took the gig.
Continue reading “Survival of the Richest”
- In Go a type definition is neither pointer nor value, it’s just a type.
- Go doesn’t have classes
- Go doesn’t have inheritance, it has interfaces for polymorphism and some sugar for automatic delegation (“struct embedding”).
- Simple build system. Want to compile for linux arm from your MacBook?
GOOS=linux GOARCH=arm go build.
- Implicit interfaces.
- Great standard library. Go’s standard library covers JSON, Templating, HTTP (production grade), testing, benchmarking, etc, etc.
- Standard formatting.
- Documentation for free.
1. Make sure the app is running fine locally.
2. Install dep, with the project in $GOPATH/src/<user>/<project>, run dep init inside the project directory, dep ensure to generate the vendor files
3. Download and install Heroku CLI, run heroku login to login and heroku create to create the app, then heroku buildpacks:set heroku/go to set the build environment (ref: https://devcenter.heroku.com/articles/buildpacks)
4. Edit Gopkg.toml to include metadata.heroku section
go-version = "1.0"
build = [.]
5. Configure semaphoreci.com to load the git repo from Github.com and deploy to Heroku, all continuous build, test and integration.
- decoupled and overlapped reader/writer access to a binary stream
- buffer management (pooling, recycling)
- threading awareness
- rich backlog control
- over-fill protection via back-pressure
- the data is more simply a “first in first out” queue
- a writer API that can push data in at one end, and a reader API that can pull the data out at the other
Creating a Side Project:
8 Stages, 43 Strategies & 59 Tools
A practical guide on how to become a Viking and beat every problem you will face when building a side project.