Saturday, September 20, 2008
Free speech and conversions
Thursday, September 18, 2008
The Dark Knight.
Tuesday, September 09, 2008
Chrome plated world domination
So, Google has released its browser. And if you are one who is wondering why Google released yet another browser when developers are struggling to cope with the four different ones that are already in the market, welcome to the club.
It isn't that the users are going to be benefited either. There aren't many features in Chrome that aren't in the IE8 Beta. For instance, both run tabs in separate processes. Both have a private browsing mode, and both consume tons of memory. Further, IE8 while being standards-compliant, also has a IE7 mode for sites that won't comply by the time the browser is released.
And V8, while being a better Javascript engine, isn't revolutionary. Running apps in secure sandboxes isn't new either.
Nor will Google's clientele necessarily switch to Chrome. From what I know, techies who would be the ones that download and use Chrome nearly never click on ads, while non-techies are generally happy with their default browser, be it IE or Safari. Yes, the percentage of techies who use Google Docs/Spreadsheets may have a better user experience, but again, unless they click on ads, how does Google benefit?
Here is my take on the "how". This is Google's first step towards world domination. I'd written earlier (see the comments) that all Google needed after Docs and Spreadsheets was an OS and a browser that they can ship as default on systems. Not only would you then use Google software, but all your data would be on Google servers, making them indispensable. In addition to really hitting MS revenue sources, this will insulate Google from the low cost of switching that plagues its services.
Welcome, folks, to chrome-plated world domination!
(PS: Needless to say, and like every other post on this blog, this post only reflects my views and should not be construed as being that of my current/previous/future employers.)
Sunday, August 24, 2008
A new dawn in Indian sport?
Saturday, August 23, 2008
To hell with you, Apple.
- 3G is not available in India yet, and you don't know what prices these operators will charge once it does come up
- The previous point is important because like in the US, the iPhone ties you to one operator. You cannot switch (at least not officially).
- Your GPS has no driving directions (unlike the Nokia phones) and as a corollary, no audio directions either.
- The hands-free kit is extra
- There is no option for bluetooth headphones
- You cannot increase storage beyond what you're provided.
- Price: At Rs31,000 for the 8GB version, the phone is not only four times more expensive than the ones available in the US, it still subjects you to the same conditionalities, of being stuck with one operator.
As someone who fell in love with the iPhone the moment I saw it (many a time I would go to my colleague's desk only to try the touch screen), this has been a major disappointment. I am OK with all the other drawbacks (those of GPS and storage, and bluetooth headphones), but I cannot stand thae fact that I'll still be tied to one operator despite paying the full price for the phone. This is shameful and shows the utter lack of regard that Apple has for Indian customers. Just for this reason, I'll say - "Shame on you, Apple".
Monday, August 18, 2008
Gold medalist and Olympic champion, representing India
Monday, August 04, 2008
The Sethusamudram debate
What is the problem with the "Sethusamudram" project? The hullabaloo raised by the BJP, the tamil parties and various other groups over the issue has completely negated the possibility of sane, rational debate on the issue. To make matters worse, the Supreme Court has also issued directives to avoid "hurting the feelings of a community to the extent possible", thus making everyone lose sight of the real (read rational) issues that bedevil the project.
Let's first dispose the issue of the bridge being built by Lord Raama. Now, is it important that Lord Raama existed? Or as the veteran legal brain, Fali Nariman insisted on behalf of the government, is it important that he ordered the bridge to be demolished? IMHO, no. It doesn't matter if Lord Raama existed or not - what matter is whether the bridge is man-made or natural. If there is enough evidence to prove that it is man-made, it is a piece of our history and must be preserved, otherwise, it is 'just' a piece of rock and can be dealt with as such, subject to the other points I'll make now.
The two most important objection that has been raised against the project are its economic viability and the environmental cost. No party in the dispute has really focused on this, although there have been brilliant op-ed pieces in the newspapers. I'll let you read them - they are on the Indian Express website. Bottom-line: the experts think that the project is environmentally disastrous and economically unviable.
If that is so, why on earth are we hollering about Lord Raama, and the Dravida right over the channel, setting rational thoughts aside? Because, my dear readers, that is the Indian way. We love symbolism, meaningless gestures, and endless emotional debates.
What we need is to take a value of out Google - that data talks. That the right kind of data, mixed with the right kind of analysis is the way to take decisions.
Saturday, July 05, 2008
The art of Microsoft (R) Windows (TM) programming
Recently, we had a talk by Dr. Sundar Sarukkai from NIAS on the "Philosophy of Science". Suggesting that despite it's attempts, science wasn't independent of the observer, and that it had a belief system not very unlike religion, and with its language, mathematics being incomplete, science too was incomplete, Dr. Sarukkai raised a few hackles amongst the listeners. Personally, while I thought that they were all interesting observations I didn't agree with the conclusions he drew from them, but that is a story for another day.
What this talk did though is to force my train of thought towards the station of philosophy - specifically, programming philosophy for Windows. Now, Eric Raymond and Joel Spolsky make the point about the GUI being part of the application instead of being an afterthought (as in Unix), and I agree with that. But a fundamental principle of every Microsoft API is to get programmers hooked with rapid development of basic applications. As early as MFC, you could create a fully functional Notepad application without writing a single line of code. Then there was COM that attempted to hide the complexity of developing distributed applications from you. Today, we have .NET, with LINQ, giving you hidden code generators and attributes for everything from RPC to serialization to workflow management. The underlying principle of all these APIs and platforms is to give users a helping hand when they start, by hiding complexity. In short, a large part of the new Microsoft APIs are tailor-made for the novice-intermediate programmer, who wants to develop a mashup or a cool Forms picture viewer for his grandmom.
This approach has a serious drawback. Because programmers don't have to invest upfront in learning these APIs (instead relying on code generators and other tools/constructs), there is no incentive to learn the basics well. So, when something breaks, or if a programmer wants to do something that the API designer didn't anticipate, he is left high and dry, because he hasn't made the investment in knowing what is happening underneath.
In addition, many crucial features are provided as random attributes or "facts you need to know". Therefore, the transition from a novice programmer to an intermediate one is accomplished by increasing your vocabulary, something developers aren't comfortable doing (I mean, if you could remember things instead of having to learn them, why would you take up computer science instead of history?) Of course, you can turn to your favourite search engine for help, but many times, that isn't sufficient.
The other aspect I've recognized is the preference given to large, monolithic APIs and heavy integration. Of course, it serves Microsoft well to have its tools and APIs jell with each other, but the heavy levels of integration (think for instance, an ASP.NET grid view) and monolithic APIs end up leading to an all-or-none approach that developers are forced to choose between. Customization is next to impossible, and important aspects of the code get hidden from the developers leading to performance headaches and again, maintenance nightmares as the codebase evolves.
I'll update this post as I think of others.
API headaches
API design is notoriously difficult. This paper says why. Suffice to say that the task of balancing conflicting requirements, for instance, of power v/s ease-of-use, along with constraints imposed by the target language, by the large (unknown) user base, and of issues like maintainability, extensibility, and performance - you have hell on your hands.
Still, I can't help but wonder why the APIs I use on a daily basis have the flaws they have. Why, for instance, does the Linq Aggregate function throw an InvalidOperationException when I pass an empty list to it. Why, for instance, the DateTime class does not comment what its MinValue is, beyond saying that it is public, static, readonly, and is the minimum possible date. Why, for instance, should the Enumerator be modified to check for end-of-container.
I have similar problems with some language features. The illogical distinction between structs and classes in C#. The whole mess created when operator overloading (specifically, op ==) meets reference equality.
I'm just venting. The C# language and the .NET runtime have amazing utility for programmers and have replaced native C++ as my choice of programming language.
Saturday, June 28, 2008
The nuclear deal
Saturday, June 21, 2008
Teen pregnancies. Updated
http://www.rediff.com/money/2008/jun/23mrv.htm
Money v/s Work
Monday, June 16, 2008
The limits of freedom of speech and expression
The first limit is accountability. If you are making a statement, you should be willing to be held accountable for its consequences. Anonymous character assasinations are not covered under free speech. Nor is "hit and run" - false accusations, and change-of-topic when someone responds to a point you made.
Second, is preaching violence. Asking someone to kill, rape or maim someone in the name of religion, caste, ideology or any other fault-line.
The reason I'm pointing it out is because I've been reading some anonymous blog posts about a wing of my organization (search for "minimsft" on your favourite search engine), and the shameless way in which, without responsibility, people have proceeded to character-assasinate senior execs in the company. I'm not saying that the senior execs are all dyed in white (which they might be), but if you are making personal, imbecilic, and crude attacks on someone, the least you can do is identify yourself, so that the victim can respond with appropriate action.
Saturday, May 31, 2008
Yeddy, Reddy, Chaddi, and Gaddi.
Yeddyurappa's own shenanigans at the Vidhana Soudha today - conducting a 6 hour Hindu ritual in what should be a secular seat of power, doesn't give us much hope.
Earlier, Yeddyurappa agreeing to break away from the BJP and begging the Gowda's to give him chief ministership, doesn't give much hope either.
Nor does infighting in the BJP over ministries, nor the fact that the Mining Reddys who spent over 60 crores in this election will demand their pound of flesh.
In today's "ವಿಜಯ ಕರ್ನಾಟಕ", ಪ್ರತಾಪ್ ಸಿಂಹ (who is fast becoming my favourite columnist) wrote about the the damage that Yeddy's 'dream budget' has caused to the Karnataka finances. Now, I'm one who says that there is no reason for governments to turn in surplus budgets when farmers are committing suicide, or when large parts of the populace still remains illiterate. However, hand outs are not the answer to the problems facing the electorate. Yeddy doesn't seem to have the mindset required to really bring in the required change. For Bangalore, it is doubtful if Yeddy will override his partymen and restore the BATF.
However, the government hasn't even started functioning, so visit this space in a year for a proper review!
Postscript: This election has really been a mixed bag. While I'm glad that the Gowda family is not in a position to influence the government, and am glad that people like Dharam Singh, the Bangarappa family, and Bangalore's very own Vatal Nagaraj were shown the door, I can't help being sad that an excellent MLA and corporator like K. Chandrashekar (Congress, from Basavanagudi) lost. It is also tragic that the fascist Congress high command overruled its MLAs to deny Siddaramiah the opposition leader's post, instead giving it to a spineless Kharge.
Saturday, May 24, 2008
Racism, pigmentism, communalism
Sunday, May 18, 2008
Blatant International Airport Loot Ltd.
As passengers take the first flight out of BIAL, the taxpayer will be taken for a ride.
(Disclaimer: I don't know anything about running an airport, so things may be radically different once the airport actually opens.)
The reason is simple: the airport, particularly the terminal, is not designed to handle anything more than the traffic that HAL airport used to get in the early 2000s. It is tiny, particularly in comparison to what was expected of it. Terminal size of 71,000 square metres is dwarfed even by the Hyderabad airport at 105,300 square metres. And the PR folks at BIAL have the nerve to claim that they can handle 11 million passengers every year, while HIAL with nearly 50% more area claims a modest 12 million. HIAL beats BIAL in aerobridges: 12 to 8, and even in terms of runway width, which our host at BIAL acknowledged is insufficient to handle A380s. The person in question even claimed that no airline was ordering A380s in the near future, saying "why dedicate capacity to something that won't happen in the near future" (paraphrased). Apparently, he hadn't seen this: http://www.livemint.com/2008/01/13235805/Kingfisher-doubles-A380-orders.html, or a million other news items easily accessible from your favourite search engine.
We continued discussions about the airport, and he said that in Phase 2, an identical terminal would be built, taking the total capacity to 50million passengers. Now pray, according to BIAL numbers (which I completely reject), their terminal can handle 11million passengers. If you double of the area, what pot must you be smoking to let you quintuple the capacity!? When we entered the departure area, we were told that the seating could accommodate 1200 passengers, which was definitely a stretch of the imagination. Still, assuming that it can, let's examine the reality. A quick look at the departures from Bangalore between 8:00 and 9:00 PM reveals that there are around 20 flights taking off between those times. Taking a simple number of 70 passengers per flight, we have 1400 passengers. Similarly, peak hour international traffic happens between 00:30 and 2:30 hrs. Anyone who's taken an international flight during those times will testify that the cramped HAL airport had over 1000 passengers during those hours. So, we've already exceeded capacity! How will the airport handle traffic growth, which currently is at 20% per annum?
Now, this is not an accident. Ever since its inception, BIAL has refused to acknowledge the need for higher capacity in the airport, quoting dubious studies, while ignoring the ground reality - 10 million passengers took off last year - and the new airport is claiming to accommodate only 11 million (which, I'll bet is a total lie).
Let's now take a look at its finances. Are the user charges of BIAL, currently at Rs.675/- for a domestic passenger and Rs.975/- for an international passenger are too steep?
Here's a back-of-the envelope calculation. Taking an average charge of Rs. 700 per passenger, and with today's passenger numbers of 10 million per year - we get a figure of 7 billion rupees, or 700 crores as revenue from the measure. The total investment made by the partners is:
- Rs 375 crore from Karnataka Govt (32.6%)
- Rs 379.5 crore from Indian financial institutions as debt (33%), and
- Rs 51.42 crore from the three member international consortium of Siemens Project Ventures, Larsen & Turbo and Unique Zurich Airport
In addition, the airport will not allow KSTDC taxies to operate in the airport - what'll become of the livelihoods of those drivers?
These are the issues that Kiran Mazumdar Shaw, Mohandas Pai, and the rest of the rabble rousers must raise. Not travel time to the new airport.
Postscript: It is a shame that none of the channels or the newspapers that covered the airport controversy bothered to present a statistical analysis of the airport, instead relying on sound-bites and "feelings". This points to a drastic reduction in the quality of journalism caused by the increasing numbers of those who come in for the "cool"ness of the job, not its rigor. Few journalists today are trained, or are willing to train, to achieve the analytical rigor that a Sainath, a Shourie or a Gurumurthy have achieved.
Wednesday, April 30, 2008
Freak-o-name-ics
I was trying to clean up my e-mail a few days ago, when I came across a bunch of e-mails sent by my friends who had just named their children. Now, each generation goes through a different trend of "name choosing". For instance, around the time I was born (will keep both the decade and the year a secret :)), one fad was to name kids after communist leaders. So, many kids were named after Stalin, Lenin, Marx, Che Guevera, and similar leaders. Another was to name kids simple, non-godly names. So, out went the Gopals, the Krishnas, and the Ramachandras, and in came Anils, Sandeeps, and the like. My good friend, (who shall remain unnamed) once told me that in the 70s, there was a movement, not just a fad, amongst Indian Christian families to give their kids Indian names. So, out went the Johns and Michaels, and in came Ajits, Ajays, and the like.
Freakonomics writer Steven Levitt talks about how so many people decide to name their kids using similar "principles". He shows that educational levels are a factor. As are income and upward mobility. (I would go on about this, but you should simply read his book. It is AWESOME.)
A trend I observed in the recent times, particularly amongst my friends, relatives, and distant relatives, is one where they name their kids names starting with the letter "A". Anwesha, Anahita, Anagha, Arya, Ankita, Anandita, Anusha, Apoorva, Ananya, Ayush, to enumerate a few. I wondered, Freako-style, why this was the case?
One answer seems to be that there is a trend, particularly amongst the IT folks, to use Sanskritized names. Maybe, it gives an impression of being in touch with Hindu tradition - imagine, someone asks your kid's name, and you say "Anwesha", you can be sure that the next question will be, "oh, what does that mean?", giving you an opportunity to show off your knowledge of ancient Hindu names. :) Or maybe, just maybe, people tried reading Maneka Gandhi's book of Hindu names from cover to cover, and couldn't get past the letter A! :)
Well, I pitched this idea to a couple of colleagues, and one of them responded: "Maybe the names start with A because they want their kids to become accomplished researchers, and become first authors of every collaborative paper they write!". [Editor's note: If a paper has nearly equal contribution from all its authors, the accepted "policy" is to put author names in ascending order of either their first names or last names.]
So much for working in a research lab! Well, what do you think?
Sunday, April 27, 2008
How to become a hero?
Tuesday, March 25, 2008
National mess
I was watching "Chak de India" yesterday, with the book "Billions of Entrepreneurs" by Tarun Khanna in my hand, while simultaneously flipping channels to get a glimpse of a debate of sorts about Indian hockey. The movie is awesome, and is right up there with the classic "Remember the Titans", but that is not the subject of this post.
It just struck me that in the same month as the national animal is found to have suffered it's greatest loss of numbers, the national bird lost two dozen individuals and the national sport faced its worst defeat ever.
The conclusion is clear. Anything that gets tagged as "national" in our country goes to ruins. Readers that are old enough might recall the obsession with the electronics industry in the 80s. It was given "national importance" - which led to its suffocation. Programmes like Garibi Hatao that grabbed national attention were a disaster, as were attempts at "nationalization", banks, for instance, forgetting the customer completely. No one watches the national channel (DD-1) unless they are forced to, the national games are a sleight of hand, and our national interest is discarded at the bidding of opportunistic politicians, the nuclear deal being a good instance.
Similarly, our national song is submerged in controversy, our national flag represents how shamefully we allow differential treatment of our citizens, and those who give up their lives for their national cause are treated shabbily.
Is there a silver lining in the national cloud? Probably. Why don't we nationalize garbage? That may cause it to disappear. Or make corruption our national pastime? We could also try making our politicians national animals - they might go extinct then!
Any other ideas?