22 February, 2013

Understanding Saturation and Stagnation

Adversity is one of the primary factors that molds the culture of a population. Just about any aspect of a society's culture -- be it the way they dress, the food they eat, the social protocols they follow -- have some roots in past adversity that the society has had to face.

Some kinds of adversity are of an instantaneous nature -- the cause and effect of the adversity are clearly visible. For instance, adversity due to cold weather or hot deserts or volcanic action or earthquakes, are clearly visible. Cause and effect are both apparent from the adversity.

However, there are some classes of adversity that are of a more insidious nature. This article talks about two such kinds.

The first is the kind of adversity that arises due to saturation of resources in a population. Resources at first, appear to be plenty and not much thought is given to what happens when the resources deplete. Most of the thought would have gone into utilizing the resources.

Saturation is a process that builds up slowly and has no one root cause. There is no one place that saturation starts -- it is everywhere. From an individual's perspective, saturation starts as a mild irritation. This irritation persists and slowly grows till an extent that it is no longer possible to ignore it or live with it. And this process typically takes such a long time, perhaps even over generations, that the physical cause of saturation is lost. Most of our response in turn, would be directed against the irritation than the source of the saturation itself.

The dangers posed by saturation is best illustrated by the parable of the boiled frog. Whether literally true or not, the idea is basically the same -- we do not equip ourselves sufficiently to deal with slow moving dangers and when the extent of the danger is apparent, it is too late to do anything.

Be it fuel crisis, depleting forest cover, increasing pollution, depleting water table, terror threats or climate change, slow moving dangers are everywhere. Because their threat is not immediately apparent, they tend to get trivialized or rationalized away by citing more immediate, pressing crises. Unfortunately, there will always be immediate, pressing reasons at any time to rationalize away slow moving dangers. And neglecting the slow moving threats can undermine all that we do to keep ourselves safe in the immediate and present state.

The second kind of insidious danger is that of stagnation. Stagnation is a state where our mental models of the world around us, have ceased to evolve. Stagnation ironically, usually sets in when we experience long periods of relative stability in our society. When a society does not face large crises for an extended period of time, our worldview does not have much motivation to change. And when the society does indeed face a real crisis, its response to the crisis is often woefully inadequate or incompatible with what is required to address the problem.

As an example, consider the earthquake that struck Latur in 1993. It was a magnitude 6.4 quake, which resulted in a loss of more than 9000 lives. However, a much stronger earthquake of magnitude 6.8 struck Seattle in 2001, resulting in just 1 casualty.

But, as the saying goes: earthquakes don't kill people, buildings falling on people, kill them..

Seattle had bigger and more multi-storeyed buildings than Latur and in the face of such a strong quake, it should have resulted in a much higher casualty. But then, building technology in Latur had not evolved to face up to the threat of earthquakes, while technology in Seattle had evolved. This stagnation in building technology and practices is perhaps because Latur was not as prone to earthquakes as is Seattle. But the stagnation resulted in a greater tragedy when the crisis did occur.

The same is true of a lot of practices related to safety. I remember once when we went on a sailboat over the sea, we asked the guide whether we will be given life jackets to wear. To which, he laughed and gave this all too familiar reply -- that he has been sailing from the past 22 years and nothing has happened, so just trust him.

A lot of safety practices look unnecessary and even amusing; and most of the time, they are redundant and do not matter. If we stagnate ourselves and neglect the importance of safety, in the rare cases when they do matter, they make a difference between life and death.

Stagnation, like saturation is not immediately apparent. It is hard to tell when our mental models have stagnated and are not keeping up with the time to face potential challenges.

However, there is a telltale sign of a stagnated population. This is when a population looks for "social" solutions to just about every problem, almost impervious to the more fundamental physical reality underneath.

As an example, I was reading a news article recently where the parents of a sailor who was drowned in the choppy seas in a storm last October when their ship ran aground, were asking for the "guilty to be punished."  It is almost as if the storm had nothing to do with his death -- it has to have someone guilty to be the cause of his death.

If our worldview provides only social explanations and looks only for social solutions to all problems, it probably means that we have not been jolted enough to think deeper about the physical reality and its underlying challenges. And that should be an ominous warning sign..

24 January, 2013

Understanding joint ownership of conserved and non-conserved entities

Here is a sharp distinction in definitions that I've found in my professional world. This pertains to the concept of "joint ownership" of something.

I have collaborated with several companies and usually when it comes to this issue of joint ownership of the fruits of collaboration, things get messy.

By one definition of joint ownership, which I have predominantly seen coming from MNC companies is that, if two parties jointly own some entity, then neither of them can use the entity without the permission of the other. And for this reason the companies are keen to buy off full ownership of the entity from collaborators.

On the other hand, I have seen this alternate definition of joint ownership, predominantly coming from local companies -- especially startups. This says that, if two parties jointly own some entity, they are both empowered to use it in whatever way they want and does not need the other's permission for anything.

This disparity in definitions was intriguing and I tried to understand the source of this disparity. And here is what I've realized.

The former definition of joint ownership (that were in use primarily in the MNCs that I've interacted with) was developed by lawyers in the brick-and-mortar era where the object of ownership was predominantly a material entity. For instance, companies jointly owned an airplane or a warehouse or an estate, and such things. The property of material entities is that their usage is a conserved operation -- or a "zero sum" game. That is, if I jointly own a car with my friend, my usage of the car will hamper his usage of the car at the same time. So, we need to co-ordinate our activities and inform one another of our plans to use the jointly owned entity. Not doing so, is clearly crude and impolite.

But the second definition of joint ownership has been conceived in a completely different environment. All of the local startups that I have interacted with, are software companies. The thing with software is that it is not a material entity -- it is an information entity. And the property of information is that it is a non-conserved entity. If I give a piece of material to someone, I won't have the material with me anymore; but if I give a piece of information to someone, both of us will have the information. Same is the case with software. If two of us jointly develop a piece of software, we can both own it completely. Its usage by one of the parties will not hamper its usage by the other parties. So, there is no point asking for permission from the other parties, to use something that is wholly owned by you.

Established legal practices are seldom changed because each change brings with it enormous unknown implications which need to be understood. So it is quite rational for an established MNC to just use existing practices without having to go through reinventing legal modalities for information entities. But for a startup that is primarily working in the information space, the most natural thing to do is to adopt the newer definition of joint ownership.

There is another angle why companies insist on explicit permission. They are worried that one of the collaborators may use the entity in a way that adversely affects the businesses of the other collaborators. But this can be addressed by a non-compete usage agreement for software entities. It is not necessary to pose a hurdle in the form of explicit permission for every usage.

This is one clear case of change in rules between the erstwhile brick-and-mortar businesses and the information era businesses. Who knows how many more such paradigms are being fundamentally altered?

21 September, 2012

Challenges in expanding the pie

In this country, we face an acute problem of saturation. Just about anything has intense competition. Scarcity (natural or artificial) is rampant and it is not uncommon to see people fight desperately over stakes that are trivial when compared globally.

And hence, about a decade and half ago, when I started my career, I adopted a personal philosophy: expand the pie, don't fight for a share of it.

It was evident (to me) that unless we make the available pie bigger, any amount of competitiveness is eventually going to hit a barrier. And being literally resourceless and broke, the only option available to me for helping in expanding the pie, is to take up a career in applied research.

Several years down the line, looking back at a very turbulent journey so far, it is time to reflect.

Firstly, do I regret anything? Absolutely not! It has been an absolutely invigorating journey and even successful in bits and pieces. Second, do I think that "expand the pie" belief was untrue? Absolutely not, again. Time and again we keep seeing news stories of us getting into saturation mode (fuel, power, garbage, jobs, traffic, etc.) and unless we build a vast culture of pie expanding enthusiasts, we only stand to face huge crises in the future.

But then, expanding the pie is easier said than done. We cannot start looking at ways of expanding the pie after we are hit by a crisis. We should be well prepared long before. The best times to prepare for war are in times of peace, as the saying goes.

Here are some of my experiences and lessons learned in trying to expand the pie:

You will encounter vested interests 

We have all the technology required for providing voice telephony using the Internet as the backbone and reduce international telephone tariffs to a small fraction of what they are today. Yet, that does not happen.

When we expand the pie and create a new solution that threatens to obsolete some existing technology, expect to get your idea killed. Expanding the pie is way more involved than just creating new technology.

And before ranting against huge telecom corporations, ask yourself what would you do if you have painstakingly built a company over several decades, which employs hundreds of thousands of people and you are suddenly faced with the prospect of a disruptive new idea that can make your company collapse in no time?

Beware of the fear of the unknown 

Expanding the pie necessarily means venturing into the unknown. We may think we are adults, but we don't realize that we are adults only when we are in familiar mental territory. The moment we are in the unknown, our primal fears surface in ways that we cannot even fathom.

I have not seen a single researcher worth his salt, who has not been paranoid at some time or the other. Scientists may appear emotionless, and indeed you may even find several of them advocating dispassionate and objective thought. But, the process of development of science is anything but dispassionate and objective.

Also, the way people react to the unknown is very unpredictable. They may suddenly become unusually defensive or offensive, get into a closet and refuse to communicate, take big decisive actions rather on an impulse, and so on.

Your intentions will be misinterpreted 

Come to think of it -- the herd is moving in one direction and fiercely fighting over that little piece of bread, and here you are walking away in a different direction...

Of course, your intentions will be misinterpreted. You will be seen with suspicion, your integrity will be questioned, people will put up safety nets against you, call you weird, will secretly want to see you dead, and what not.

Expect it. At least then, you will not be hurt too much when you encounter it.

Remember the Gandhi quote without the last line

Remember this saying?

First they laugh at you
Then they ignore you
Then they fight you 
Then you win..!

Remember that well, except the last line. Replace it with, "And then you claim victory..!"

When you expand the pie, you will not necessarily get a share of it.

Gandhi himself did not live long enough to really see the independent India that he fought so hard to bring about.

When you develop good ideas that successfully question status quo -- it will eventually get adopted. But you will most likely not be in the picture there (even if you are alive and kicking..)

Expect to be muscled around, handed ridiculously one-sided contracts to sign, being told that your ideas are obvious and trivial, being sweet-talked while your students and coworkers are getting poached, the list goes on..

Be aware. Don't compromise. Be ready to lose what you have and always remember that your real wealth is within you -- your ability to think and develop ideas. Keep working on that ability and see to it that it never gets sidelined in all such worldly nonsense.

10 May, 2012

Convergent and divergent thinking

Suppose we are asked this question: "What is the square root of 5?" How would we go about solving it?

We would start by narrowing the scope of our search. Obviously 2-squared is 4 and 3-squared is 9, and so the answer should lie between 2 and 3. In fact, 2.5-squared is 6.25, so the answer should be between 2 and 2.5. Also, 2.2-squared is 4.84 and so the answer should lie between 2.2 and 2.5.

This way we "converge" to an answer that is close enough to the required solution.

This kind of thinking is characteristically called convergent thinking. In such thinking processes, we are looking for "a" solution. Our process constitutes taking into account several factors, combining them together, eliminating what is not necessary, fine tuning what we already have, until we arrive at the desired solution.

Now consider the following kind of problem. Take an object that you can see -- say a pen. Now come up with as many possible uses of the pen as you can think of.

This would of course, include the "standard" use of a pen -- to write. But then, we could use a pen for a variety of other purposes. Maybe we can use it as a measurement device to measure the length of a table in pen units. Maybe we can use it as a lock to hold an open window from closing. We can perhaps sell the pen and get some money. We can use a pen to hold rubber bands in place. And so on..

When I ask such questions, one typical response is "anything goes" as an answer. But that is not true. In fact, if you were to state that "we can eat the pen" as an answer, it is wrong (for a typical pen). So, it is not that "anything goes" is an answer. There are correct answers and incorrect answers. But the thing is, there are several correct answers!

This is an example of what is called divergent thinking. In this style of thinking, we start from a given problem state (the pen, in the example above) and try to fit it consistently in different worlds.

Divergent thinking is a necessary ingredient for any kind of design activity. Suppose you have to design a car. All cars have more or less the same components -- an engine, transmission, wheels, steering, seats, etc. But then, not all cars look and feel the same. A Brio is different from an Alto, which is different from an Indica, which is different from a Verito, and so on.

The way these different components can be put together, so that the end result is an efficient, ergonomic, sturdy and safe automobile, are several.

For some reason, we have forgotten to inculcate, teach and nurture divergent thinking in our curricula. I find the dearth of divergent thinking especially acute among techies.

Sometimes I have heard this argument that the emphasis on precision, especially in mathematically inclined fields like science and engineering, is detrimental towards divergent thinking. But it is not very convincing.

Divergent thinking also requires a lot of precision. Especially, when there are physical constraints involved. For instance, consider again the task of putting together different automobile components to design a car. We can think of putting them together in several ways. But, each such combination has precise bearing on the overall performance of the car. One combination could be more efficient than the other in terms of fuel usage, but more expensive in terms of overall cost. Another combination may make the car safer to drive, but may make it inefficient. And so on.

So, divergent thinking does not imply lack of precision.

There is also another mental block I've often seen -- that which equates divergent thinking to shallowness, and convergent thinking to depth.

A convergent thinking process may go deep into a subject, but that does not make divergent thinking shallow. Besides, there is nothing macho about "depth;" it has its own follies. Let me explain with an example.

Recently, we were conducting interviews for a graduate program, where the incumbents all had an engineering degree. As part of the interview, I posed two puzzles to each candidate -- one which required a convergent thinking process and another, which required a divergent thinking process.

There was this candidate, who swore by depth. He had been interested in some specific subjects in the curriculum and had done vast amounts of reading and exploration on his own. So much so that his performance in other subjects suffered and he had failed in a couple of them. It was however, evident that his interest in the subjects that he liked, were genuine. He spoke at length about signals and signal processing and the projects he had worked on his own. He clearly had depth in his understanding. His main peeve was that our education system does not encourage people who are "truly passionate" about learning, as his couple of failures in subjects that he didn't care about, had proven to be a hurdle at every step.

I could definitely empathize at some level, with such sentiment. But then, when I posed the puzzles, I was in for a surprise.

His performance in the divergent thinking puzzle, was understandably bad. I had given 30 seconds for him to come up with as may answers as possible. But he remained silent for 30 seconds thinking (deeply?), and came up with 3 answers, all of which revolved around electrical engineering solutions.

Not much surprise there. The real surprise was with the puzzle requiring convergent thinking. His performance was equally bad there too! The reason was not hard to see. This puzzle required him to think in terms of permutations and combinations to arrive at an answer. But, given any problem, he just tended to think in terms of signals and signal processing!

If all you have is a hammer, everything looks like a nail.

That is the problem with focusing only on depth and treating it as a macho trait. It just conditions our mind to think within a single paradigm.

In contrast to the above, was another candidate, who was nothing spectacular in terms of her grades. As expected, she did not fare too well with the convergent thinking puzzle. But when given the divergent thinking puzzle, she immediately rattled off with some 15 solutions in 30 seconds -- 2 seconds per solution on average! At the end of it she says, "That was fun!!! If you gave me 30 more seconds, I'll come up with several more answers!"

And her answers came from a wide variety of scenarios -- from technological solutions to business solutions to household use to emergency care and so on. Many of which caught me completely by surprise and yeah, it was fun!

Divergent thinking requires us to keep hopping between mental models. As I had argued in a previous post, changing mental models frequently is an emotionally draining process. When mental models change suddenly, it takes a while for the brain to understand and compute repercussions; and our initial reaction is an emotional one. A large variety of humour is based on suddenly changing mental models with trivial repercussions -- our initial reaction would be emotional, in terms of laughter.

There is another theory I have heard that divergent thinking constitutes the "female" style of thinking while convergent thinking constitutes the "male" style of thinking.

Apparently, men think of the world in terms of neatly separated boxes, each of which are distinct and separate from one another. And for women, everything is connected with everything else and they can keep hopping from one subject to another with much more ease than men.

Well, then, it must be a male who made up such a theory -- that categorizes thinking styles into neatly separated boxes called male style and female style. And according to this theory then, females should not accept this theory of neat separation of thinking styles into male style and female style. If they do, then they are male. :-)

Needless to say, I am not very convinced by such "neat separation" theories. I think everybody has both styles of thinking -- convergent and divergent -- perhaps expressed to different levels. Someone may be pre-disposed towards convergent thinking, but that does not mean that they cannot think in a divergent fashion at all. And vice versa.

But more fundamentally, I think, convergent theory is a special case -- a focused kind of divergent thinking. If you are familiar with game theory, this is somewhat like pure strategies and mixed strategies. In pure strategies, you choose one action among a given set of actions. In mixed strategies, you choose all actions with some probability. There is no dichotomy between pure and mixed strategies. The space of mixed strategies subsumes pure strategies. Pure strategies are just a special boundary case of mixed strategies.

Similarly, thinking is about making connections. So compartmentalized thinking is not different from connectionist thinking. It is just connectionist thinking within a single mental model.

If we keep the mental model intact and keep connecting things together within the model, we eventually achieve depth. If instead, we allow for connections to span across mental models, we achieve divergent thinking.

05 February, 2012

Thinking across mental models

Mom: Son, it is 7 'o clock already. Get up! You are getting late for school

Son: I don't want to go to school Ma.. The teachers don't like me and all the students laugh at me.

Mom: Son.. that is no reason to skip school. You have to go to school -- besides, you are the Principal of the school!!

*~*~*~*~*~*~

I know it is an old joke, but why is it funny (even if it is a PJ)?

The reason why this story is funny is that, out brain does its thinking typically within the framework of what is called, a mental model. The mental model determines what "ground truths" or unchallenged assumptions, will guide our reasoning process. 

The "semantic memory" in our brains is responsible for giving inputs that form these ground truths. The ground truths represent significant concepts relevant to the situation, and relationships among them. 

For instance, in the above story, we would have typically assumed that the Son in the story is a student who has to go to school. 

And when the Mom says that "...you are the principal!!", suddenly this new piece of information brings down the entire model that we had at the back of our mind, and causes it to create a whole new consistent model. Now the Son is the Principal and yes, the Principal is likely to be bothered by the teachers not liking him and the students laughing at him. 

This sudden change in the model and its associated implications unnerves the brain, prompting it to give an emotional reaction. But since the new model essentially has trivial consequences, the emotional reaction that our brain provides is laughter. 

On the other hand, horror stories are also made of sudden changes in mental models. Except in these cases the new mental model that replaces the older one tells about serious implications -- causing the brain to react with terror. 

For instance, there were news stories about what transpired inside the airplane IC814 that was hijacked when it left from Kathmandu to Delhi in December 1999. Some people stood up and walked in the aisle and calmly announced that they are taking over the plane. And a lot of passengers thought that it was a routine security drill. And you can imagine the terror they experienced when they realized that this was for real. 

*~*~*~*~*~*~

Our brain builds mental models because it is too difficult (perhaps impossible) to have one global set of ground truths for the entire universe and take into account all of them for arriving at conclusions or explanations. 

For instance, consider that we are watching a cricket match where we see a fielder miss an easy catch. We respond to this by giving typical explanations based on typical assumptions. "Perhaps the sun got into his eye" (and if he is an Indian cricketer), "Indian players are all too-old/complacent/tired/overworked/overpaid/do-too-many-advertisements", etc.  

But, would it be possible that there was a very mild earthquake, too small to be reported, but causing enough disorientation in someone who is looking up at the sky, to make them miss the ball they are trying to catch?

Strictly speaking, it is possible and we should ask for seismographic data for that time and place and study the impact of earthquakes on people looking at the sky and... etc. But, we typically don't go down that path because this explanation is not probable. 

In fact, we don't even think of this possibility. It is so improbable an event that our mental model would have effectively blocked it out of the set of ground truths that we work on. 

Another major source of mental model change is when we change our emotional dispositions. Our emotional disposition determines our dominant emotional reaction in any given situation. It also determines the kind of explanations we build, in response to observations.

And that is a reason why emotional roller-coasters are so damn exhausting. If we change our emotional disposition in quick succession, each disposition brings with it a mental model, giving us different explanations of the same observations, thereby enormously increasing confusion. And that is also the reason why we find it hard to "think straight" in emotionally charged situations. It is not just the rush of hormones, we do experience semantic confusion in times of emotional turmoil.

*~*~*~*~*~*~*~

Learning to think across different models is an important element of "growing up." 

As children we typically have a single mental model and life appears very simple. In fact, children up until they are about maybe 5 years old find it hard to understand jokes like the above that involve sudden change in mental models.

Thinking across mental models is an important skill to develop. Strictly speaking, every conversation involves understanding the mental model of the other and adjusting our own. Differences in mental models amplify depending on the different experiences that each person in a conversation has. Mental models can vastly differ based on gender, geographic location, community culture, economic status, and so on. 

However, learning and even more importantly, teaching to think across mental models is a very difficult task. Once our deeply held mental model is challenged, our primary reaction is to perceive it as a threat and become defensive. And too much of a pressure to adapt our mental models can leave us emotionally scarred since once our deeply held beliefs break, we do not know what to hang on to and what parts of our lives so far are suddenly on uncertain ground. 

Similarly, if you try to teach someone to think across mental models by challenging their assumptions, they'll only start fighting against you. The more we have built our lives on our assumptions, and the less exposed we are to diversity, the more reluctant we are to anything that challenges them. 

22 June, 2011

Do All, Pick One

Not too long ago, we had machines of different kinds -- each for a specific purpose. There were the big printing machines to print books, there were typewriters or "compact printing machines", cyclostyle machines for making copies, slide rules for doing calculations, files, ledgers, library "index" shelves, films, photo processing studio... one could go on and on.

Most of these have been replaced by one thing -- the computer.

Till the mid twentieth century, machines were always custom built for a specific purpose. But sometime in the late 1940s a new notion began to take root -- that of stored program computing. The main idea here is to go "meta" -- build one machine that could do act like several other machines, depending on what it is "told" to do.

This was not as novel as it sounds. Mathematicians had already been talking about going meta for several decades by that time. And indeed there were some machines which were "programmable". Textile looms for example.

But it was only with the advent of the "stored program computing machine" attributed to John von Neumann, the current day computer really took shape. Stored program computing has changed engineering so much so, that it was singularly responsible for the birth of an entirely new field: software.

Software is an intangible entity that we cannot see, touch, hear or feel in action. Yet, it controls our money, our entertainment, our knowledge and our lives.

So what makes a machine support software? You certainly cannot make your old bicycle (which is a machine) run a piece of C code. We also cannot make out room light and fan run code even though they run on electricity, just like a computer.

How does a computer "change its circuits" in response to what it is commanded to do? How does a machine that was wired to perform numerical computations, suddenly start showing a movie and do word processing?

The secret here is an extremely interesting and intriguing phenomenon, that we somehow seem to take for granted and never sit back and observe. This is what I call the "Do All, Pick One" algorithm.

The basic idea behind how a microprocessor can change its circuitry in response to its commands is based on this. The "rewiring" of circuitry takes place in the "Arithmetic and Logic Unit" (ALU) of a microprocessor. Each ALU is built to support a basic set of arithmetic operations like Add, Subtract, etc. and a basic set of logical operations like AND, OR, NOT, etc.

When a piece of instruction is loaded from memory into the processor, it is sent to a "decoder" that has one line each for every operation that is supported by the microprocessor. The decoder determines which operation is the instruction referring to, and switches on only that line (set it to logical 1) and switches all other lines off (set to logical 0).

Now comes the best part. The ALU meanwhile takes the data that needs to be processed and runs it through all the instructions in its instruction set! Each such execution gives out a result, which are then paired with the output lines of the decoder. Then, only that result is sent out, whose line has been switched on! Every other result is stopped in its tracks.

Hence, if your processor supports arithmetic operations like: ADD, SUBTRACT, MULTIPLY, LEFT-SHIFT and RIGHT-SHIFT; and your instructions ask the processor to perform an ADD, it actually performs all of the above! But only ADD is chosen to pass through the exit!

This neat little trick of "Do All, Pick One" enables the machine to become so flexible that it can now be "programmed" giving it such power that it sets serious directions of research, like asking "Can Machines Think" or will robots take over the world from us?

~*~*~*~*~*~*~

Whenever we think that we have invented something, nature would have invariably beat us to it by millions of years. And it is true of the "Do All, Pick One" algorithm too. Nature has been using this for eons and eons.

Machines of nature -- also called living beings, are built on principles very different from the machines that humans build. Ever notice that while we say "Don't reinvent the wheel" when it comes to machines, nature does not seem to use wheels at all? Animals don't run on wheels, they don't require highways, birds don't have engines and don't require runways. There are no turboprop birds and no jet birds. In fact, nature's pump -- the heart -- seems to be so strangely inefficient. It does not have a rotor or a jet. It works by the "primitive" method of contracting and expanding.

So what is happening here?

Well, nature's machines are not built from custom parts. Our building blocks are not components like spark plugs, crank shaft, etc. Look inside a womb when a new baby is being born, and it is definitely not the case that the organs, bones and limbs are built separately and assembled together. The entire baby is born right from inception! And it just "develops" and "grows". One fine day it grows big enough to come out of the womb, another fine day, it grows big enough to go to school and yet another fine day it grows big enough to ask for pocket money!

So what does it have to do with "Do all, Pick One"?

Machines of nature -- living beings -- are built by basic building blocks called "cells" -- each of which is a living being in itself. Recursive? Well, I think.. Maybe..

Each cell is an "autonomous agent" capable of not only doing a set of things, but also taking care of itself. That is, it is not just a processor with some arithmetic and logic capability; but it also has the requisite code to do what it takes to keep itself alive for as long as possible. It is a computing, self-regulating system capable of mechanical tasks and locomotion.

As part of their quest to keep themselves alive, cells collaborate and compete with one another. In this process of collaboration and competition, cells take on different roles. Some go on to become muscles. Some go on to become nerves. Some go on to become tissues. Some take care of the heart. Some take care of the brain. Some manages our legs. Some build bones and maintain them.

Not very different from a human society comprising of engineers, lawyers, doctors, accountants, artisans, painters, drivers, teachers, etc.

A cell, when it is born, is "multipotent". It has the capability to become anything, and it picks one. It can do all, but it picks one.

Go deeper inside a cell and into the genes and there is a "Do All, Pick One" game happening even there. Our genes contain certain "encodings" of our properties. Some properties are pretty clear and stable. Each human for example, should have a heart, lungs, liver, intestine, eyes, ears, tongue, etc. whose properties are fairly stable.

But certain other properties are not that stable. For instance, what "temperament" does a new born ought to have? Should the organism be optimized for physical tasks, artistic tasks, computational tasks, or what?

Well, guess what. Let's give everything to the organism. But have a circuitry to "choose one". This is what genes seem to say..

We have genes for a whole lot of our characteristics most of which are "suppressed" and only a few which are "expressed." When we are born, some choosing circuitry is created that determines which of the characteristics ought to be expressed and which ought to be suppressed. This choosing circuitry is determined by the signals given by the larger organism (the mother) in which all this is taking place. This gives credence to the folk wisdom that mothers who are expecting babies ought to be taken care of, both physically and emotionally. A stressed out mother gives implicit signals to the offspring to express characteristics relevant in high-stress situations, making the offspring have an overtly aggressive or defensive temperament.

Our basic circuitry for "pick one" is embedded in our firmware, so to speak, and most of us lead our entire lives blissfully unaware of its existence. Sometimes however, either due to external pressures or internal exploration, some of us discover characteristics within ourselves that we never knew existed in the first place! That is when we "discover ourselves" and come out saying "I never knew I had it in me" and so on..

At bigger scales, doing and picking that happens in the daily life of a diverse, democratic society is what makes them so resilient. And on places like Wikipedia, the doing (writing) and picking (editing and fighting it out on the discussion pages), is what helped create the world's largest encyclopedia without any contributor being paid anything.

While at the level of a microprocessor, the "picking" is a binary operation (either choose or discard), and higher levels of granularity, the "picking" operation is a matter of degree. For those who know Game Theory, it is somewhat like the difference between a pure strategy and a mixed strategy. But the basic algorithm is the same: Do All, Pick One (even if in the form of a probability distribution).

11 June, 2011

World Theological Convention of Variables

Once upon a time, there was a large application program universe. It was so large and so huge that it was believed that the application was countably infinite. The application program universe contained a vast variety of living beings, also called variables. There were ints, chars, structs, class variables, instance variables, auto variables, block variables and so on.

Usually variables went around their work diligently, but occasionally some of them stopped to contemplate. Some of them were rudely forced to contemplate when some other variable with a larger scope looked down upon them with contempt by overriding its namespace.

Finally one day, all the thinking variables of the universe decided to hold a theological convention to ponder and answer some pressing questions. Who are we? Where did we come from? What is the meaning of our lives? Is there a God? And so on..

Here we reproduce some of the proceedings of this important convention with permission from the convention organizers.

The theist who was born as a static char in a method that contained all auto chars, started first. "There exists a God!" it said with conviction. "Most of us are are visible only within the blocks in which are born, and there are those who are visible only in instances. But occasionally there comes a messiah, a saviour, who knows everything from everywhere. Someone who is visible to all, who can save anyone from an Exception. They are sometimes called global variables, but they are the best proof that God exists!"

The char *athiest spoke next. "There is no such thing as a God!" it said. "Global variables are a myth. They may have existed some time in the past, along with GOTOs, but they have all become extinct today. The universe just runs by cause and effect. The previous statement causes the current statement to run, unless it was reached by a jump like a method call or a loop."

The strongly typed variable moralist spoke next. "God does not 'exist' in the form of a variable and its powers is not determined by its scope. God exists in our deeds. If we are all moral and don't attempt to access memory locations that don't belong to us, and if we follow type systems correctly and don't try to perform unnatural typecasting, then we are all fine. If we cross these limits set by God, we are punished by a SIGSEGV or even a SIGKILL. That is the ultimate evidence of God." 

Next it was the turn of long int salvation . "Our life in this universe is temporary," it started. "We all come from the heavens and have taken birth in this universe and based on our deeds, we will either move up or down in our next life. Hence, if you are an auto int who worked well in this life, the next time the application runs you may well become static int, or even an attribute. However, if you have not lived well, the next run of the application may well see you as a block variable with limited scope. The final salvation happens when we become global variables and can talk directly with God."

void *connoisseur spoke next. "You guys are all too serious! Divinity is not just about rights and wrongs and rewards and punishments. Divinity lies in life, aesthetics and beauty. Just look at those nested for loops. And those tail recursions. Who can describe the awesome beauty of an iterator? And function pointers? And object serialization -- it is simply magic, a kind of rebirth! That, my friends is what is divine. Just learn to appreciate beauty. Loosen up. God does have a sense of humour. Laugh a lot. Pray a bit. Love a lot."

Next, it was the turn of struct Biologist EvolutionaryBiologist to speak next. "All those theories are hogwash," it started with an air of confidence. "Read up Darwin, Mendel, Dawkins, ... (rattles off some more names). The universe is a result of evolution. Our current universe is version 2.5.2. It evolved from version 2.5.1 (duh!). At each evolutionary boundary is a process of natural selection based on the principle of survival of the fittest. Only the fittest variables survive from one version to the next. The rest become extinct. What is fitness, you ask? Well simply put, fitness is the ability of a variable to survive a version change.

Upon hearing such strong words, the discussion become rather heated. Variables started assigning names to one another in violation of the code of type casting ethics. The atmosphere was so tense that doomsday a.k.a. SIGKILL almost seemed imminent. Then the boolean fatalist variable took over the stage to calm nerves. "Friends, please calm down. No matter what we think and what we argue, please remember that we are all mere mortals. Our existence is either true or false. Once our life here is over, we all go back to the heap. So please calm down. Let me now call a close to this conference and invite you all to the banquet."

Thus ended the biggest conference in the application history. We leave you with a few glimpses of the soothing fractal music played at the banquet and the vast table spread of RAMs, flash storage and other memories for the delegates to malloc. Arguably, these are one of the finest minds in the universe and it has been our privilege to be invited to this conference to cover its proceedings.

*~*~*~*~*~*~*

In other news; a grad student variable studying astronomy claims to have heard some kind of a message sent by an intelligent being far away in the universe, or perhaps, as the student claims, even outside of the universe. The message was undecipherable, but seemed to sound like a sound of frustration and sigh. He was not sure, but the message sounded something like, "Why is this code so buggy?!"

When asked about this to the variables in the convention, the claims were summarily dismissed as the ramblings of a nutty grad student.

The strange thing about AI proofs

Earlier, whenever there was a scientific breakthrough, media would be abuzz with several efforts to explain the key insights of this breakth...