I think it is probably a typical experience for any beginner of Erlang: The equal sign in Erlang actually works differently comparing most other imperative mainstream application. I were a little bit surprised when I first realized the subtle difference.
In erlang, the equal sign is actually an pattern matching operator. For example,
[H|T] = [0, 1, 2, 3, 4]
In the case, H is actually matched with the head of the list [0..4]. Although it effectively initialised the values of variable H and T, it is fundamentally a different concept.
Another application of this language feature is that it serves as a mean to enforce assertion. For example,
ok = module:func().
If func return an atom failure instead of ok, an exception will be automatically generated.
Isn’t it neat?
Erlang Syntax 1
1 2 | |
This is equivalent to
1
| |
Very interesting syntax.
The R-word
Recession is now being discussed again.
I vaguely remembered that there was an academic study of the correlation between number of published news articles and the occurrence of recession. I believe the conclusion is that the article numbers is probably a good leading indicator to a looming recession.
Todays, can we use the blogsphere as a data source? A quick Google search gave the following result:
Year | Count |
|---|---|
| ‘07 | 133,933 |
| ‘06 | 66942 |
| ‘05 | 19049 |
It is a very rough sketch. It did not take into account the blog entries that existed during the surveyed time period. It did not check the context either.
But if blogshpere serves as a place for collective rumbling, maybe there are messages to be mined out of it.
House of Cards
Some high-profile resignations:
Michael Brown of FEMA resigned on 12 Sep, 2005
John Bolton, UN Ambassador, 4 Dec, 2006
Donald Rumsfeld’s resignation took effect on 18 Dec, 2006
Pual Wolfowitz, World Bank, 30 Jun 2007Karl Rove left the White House on 31 August, 2007.
Alberto Gonzales’s resignation will be effective on 17 September, 2007.
These are the people President Bush trusts and believes to have done a helluva job.
Without a doubt, Bush administration has become a lame duck government.
And, where is Dick Cheney in all these? In this sense, he is very smart: he is able to pull off the Iraq war but yet seemingly immune to any political trouble.
Unfolding of Events (Subprime Market)
The Fed has cut down the discount rate by half a percent last Friday (17 Aug). We can see it as a move of FRB (Federal Reserve Board) to allow those financial institutes in trouble to have access to liquidity without yielding to demand for a board Fed Rate cut. “The money-changers must accept some kind of haircut and should not expect bail-out” seems to be the signal of the move.
Probably as long as no major financial institutes go belly up, we can say the crisis is contained within the financial sector? But then, it is a very narrow definition of containment. Like Daniel Gross of Slate.com said, if containment of Cold War was as effective as this one, we will all be speaking Russian and farming collectively. A recession is inevitable.
NY Times has this piece of reporting on the subject. One theme in this articles is “somehow, the best brains in the Wall Street just did not see it coming”. Yeah, Ken Lay did not know anything about accounting in Enron either.
More plausible explanations are the following:
- Of each of these well-known financial power houses, the role of research departments to traders are like the “fair and balanced” Fox news to the Republican party. Research reports from these Wall Street firms are the smoke and mirror in their proprietary trading and M&A activities. Long gone are the days when (some) researchers can write about their honest opinion. Therefore obviously the research departments said very little about the riskiness of the subprime market.
- Traders in hedge fund and their counterparties in the financial powerhouses, who profited immensely from the paper profit from these subprime securities, simply do not have the will nor incentive to do the right thing. If the trend in the market is to buy these secularization products on leverage in order to make that outrageous return, why not follow the flow? At least one has to be in the game to show that he/she is professional. After all, it is the management fee/brokerage fee these fund managers and deal maker care about. Repercussion that may surface five years from now? It cannot be quantified as a number on P/L anyway, so no one care.
- It is of absolutely no one’s interest to forestall a bubble. No Fed chairman or regulatory bodies will do it. When the time is good, any proactive measure will be perceived as ‘spoil the party’. When thing turns sour and the Fed have to engineer a rescue, the players just have to sit back, play dumb and blame the market. Ultimately, the financial institutions will be very likely be bailed out by Fed; Fund managers and broker have already pocketed their bonus in good years; Fed chairman emerges the Hero.
An article by Edward M. Gramlich of FRB on Subprime.