Monday, April 25, 2011

Programming Clay

The title of this posting is a pun because this is not going to be a posting on the new C-like programming language called Clay, but rather a posting on the origin of life on Earth, and how the recent muddled origin of software and computing hardware might be of help in pointing the way. But before proceeding I must take a moment to commemorate the 70th anniversary of the onset of the Software Universe, which popped into existence some 70 years ago this month in May of 1941 on Konrad Zuse’s Z3 computer (see So You Want To Be A Computer Scientist? for details). So the Software Universe is now a whopping 2.2 billion seconds old! Despite the timestamp on this posting, today’s date is actually May 7, 2011, and not April 25, 2011. Remember, in order to get the Introduction to Softwarephysics listed as the first post in the context root of https://softwarephysics.blogspot.com/ I have to perform a few IT tricks. The side effect of all these tricks, as I explained in the Introduction to Softwarephysics, is that the real posting date of posts is the date that appears on the post that you get when clicking on the Newer Post link at the bottom left of each posting. There is an important lesson here. Things are not always as they seem in the world of software, or any other form of self-replicating information for that matter, so you should not always take things purely at face value.

For example, suppose you were a fourteen-year-old high school freshman learning to program Java for the very first time with no historical sense of computing whatsoever. Having been immersed in the Software Universe for your entire life, you would probably tend to think that all of this sophisticated software and hardware that you had grown up with had simply always existed as it does today. You would probably not even stop to think about where it all came from as you proceeded to learn how to program the very sophisticated object-oriented language known as Java. Java comes with a huge class library of pre-built reusable code, graciously passed down from antiquity, that can be called to perform just about any low-level programming function that you might need, with very little effort on your part as a novice programmer, and yields executables that can run on just about any operating system on the planet. You might also be working on a $500 PC with several GB of memory, a dual-core processor running with a clock speed of several GHz, and more than 1 TB of disk - a machine that is several billion times faster, with several billion times more memory, and nearly a trillion times more peripheral storage than Konrad Zuse’s Z3 computer running on 2400 electromechanical telephone relays and punched tape.

Now if you did begin to wonder where all of this very sophisticated software and hardware had come from, you would immediately be confronted with a series of “chicken or the egg” paradoxes. Firstly, you would learn that Java cannot run all by itself directly on a computer. You cannot simply load a Java executable .class file into the memory of a computer and expect it to do anything at all. Java needs to run inside of a Java Virtual Machine, which is a simulated software computer that runs on top of the physical computer itself. Obviously, you cannot write a Java Virtual Machine with the Java language itself, since Java can only run inside of a Java Virtual Machine in the first place, so there must be some “other” programming language that came first before Java that can be used to write software that actually does execute directly upon computers without the need of a Virtual Machine, but what could it be? If you are lucky, perhaps there are some computer science books in your high school library, and with a little careful detective work on your part you discover a book on the C++ language, which looks a lot like Java, but with many bug-inducing complications, like the overloading of operators, multiple inheritance, and pointers that were later discarded by the Java programming language as a simplifying measure to improve reliability. Similarly, you might also discover in a textbook that C++ came from the purely procedural C language, which also looks a lot like C++ and Java, but which is 100% procedural and has no object-oriented classes at all. But you would find that C does have some object-like precursors in the form of unions and functions, which when combined with pointers, can be used to simulate objects to some extent. So with some investigation you would find an evolutionary history for the Java language if you had access to a library of computer science books, but what would you do if all the computer science books had been destroyed, leaving not a trace, and your PC did not have a C or C++ compiler either? Would you vainly search for simpler and simpler versions of Java on your PC, with the hope of ultimately finding one that could run directly on your computer without the need of a Java Virtual Machine?

Similarly, for the hardware that your newly coded Java programs run on, the problem would be even worse, as you quickly figure out that you would need a computer in order to design a computer! There is no way you could possibly design the silicon chips used for CPUs, RAM, and flash memory without the aid of a computer, and you would also need sophisticated process control computers to run the high-tech equipment that make the chips. Yes, there are plenty of available silicon atoms to go around, since 27.7% of the Earth’s crust is composed of silicon, but how would you go about taking sand, also known as silicon dioxide, and turn it into computer chips without the aid of computers? Following my lead in SoftwareBiology, you might head out to your local city landfill and begin excavating. As you dig down through the rubble, you find older and older PCs, which, surprisingly, you find can still be made operational with some work. As you dig down through the deposited layers of garbage, the PCs you come across are found to contain simpler silicon chips, containing fewer and fewer transistors, until finally in the early 1980s, the trail of PCs grows cold, and no more are to be found at lower depths. However, you do continue to find the huge refrigerator-like boxes of discarded mainframes at lower depths that were deposited in the 1970s and they contain even simpler silicon chips. As you dig deeper still, these refrigerator-like boxes are found to stop using silicon chips altogether, and instead, are found to be stuffed with discrete silicon transistors on circuit boards. Finally, in garbage layers from the 1950s, you find discarded mainframes stuffed with row upon row of vacuum tubes – things you have never even seen before, but which look a lot like the archaic incandescent light bulbs that your parents grew up with, and which are rapidly being replaced by CFL and LED light bulbs. The deeper you dig the fewer mainframes you run across until, by the late 1940s, none are found at all in your city landfill, and I am quite confident that you would never run across an old Z3 computer stuffed with electromechanical relays!

So for both software and hardware, simply taking today’s exceedingly complex high-tech architecture and following it backwards leads you to a series of dead-ends because software did not begin as a simplified version of Java and hardware did not begin running on very simple silicon chips. Both software and hardware began by using fundamentally different technologies than today’s and underwent several transitions to get us to where we are today.

There seems to be a similar “chicken or the egg” problem for the researchers currently working on the origin of another form of self-replicating information – the genes. The current high-tech biochemistry used today by the biosphere requires enzymes to replicate DNA and to copy mRNA from DNA in order to make enzymes. So currently, living things need DNA to make enzymes and they need enzymes to make DNA, so which came first, and how could one have come first if both are needed to make the other? This point is key to unraveling the secret to the origin of life. As discussed in Self-Replicating Information, currently there are several competing lines of thought that are all vying to become the accepted theory for the origin of life on Earth. In that posting I discussed the three major theoretical efforts highlighted by Freeman Dyson in the Origins of Life (1999):

1. Metabolism came first - the theory first proposed by Alexander Oparin in The Origin of Life (1924).

2. RNA came first - the “RNA world” theory proposed by Manfred Eigen in 1981.

3. Something else came first - such as Alexander Graham Cairns-Smith’s theory, first proposed in 1966, that there was a clay microcrystal precursor to both RNA and metabolism.

Freeman Dyson liked Cairns-Smith’s idea of a two-stage theory for the origin of life because it eliminated many of the deficiencies found in the “RNA world” theory, such as the “error catastrophe” problem – the fact that the self-replicating processes of the “RNA world” would need to be both very accurate and very simple at the same time. But Freeman Dyson went on to develop his own two-stage theory for the origin of life using Oparin’s purely metabolic form of life as the initial stage, followed by the parasitic/symbiotic appearance of RNA, which first appears as a disease preying upon the initial metabolic pathways, and later forms a symbiotic relationship with them in the tradition of Lynn Margulis.

I just finished reading Cairns-Smith’s Seven Clues to the Origin of Life: A Scientific Detective Story (1985), and I think his idea that Gene 1.0 ran on clay microcrystals instead of nucleic acids needs to be revisited. There is also an excellent website by Tim Tyler on this subject that I would highly recommend at:

The Origin of Life
http://originoflife.net/

One reason that I find Cairns-Smith’s idea that Gene 1.0 ran on clay microcrystals appealing is that, as we have learned from the way that software bootstrapped itself into existence, self-replicating information is notoriously opportunistic and will use just about any technology that is available to self-replicate, and also that self-replicating information really does not care about the underlying technology upon which it runs at any given time. Stephen Jay Gould coined the term “exaptation” for this tendency of living things to opportunistically take advantage of pre-existing structures and processes for other purposes. Darwin called such things a preadaptation, but Gould did not like this terminology because it had a teleological sense to it, as if a species could consciously make preparations in advance for a future need. The term exaptation avoids such confusion. All forms of self-replicating information take advantage of pre-existing technologies, through this process of exaptation, that evolved for one purpose but are later put to work to solve a completely different problem. As I described in Self-Replicating Information, what happens is that organisms develop a primitive function for one purpose, through small incremental changes, and then discover, through serendipity, that this new function can also be used for something completely different. This new use will then further evolve via innovation and natural selection. For example, we have all upon occasion used a screwdriver as a wood chisel in a pinch. Sure the screwdriver was meant to turn screws, but it does a much better job at chipping out wood than your fingernails, so in a pinch, it will do quite nicely. Now just imagine the Darwinian processes of inheritance, innovation and natural selection at work selecting for screwdrivers with broader and sharper blades and a butt more suitable for the blows from a hammer, and soon you will find yourself with a good wood chisel. At some distant point in the future, screwdrivers might even disappear for the want of screws, leaving all to wonder how the superbly adapted wood chisels came to be.

As an IT professional, you probably do this all the time. How often do you write code from scratch? I know that I never do. I simply find the closest piece of existing code that I have on hand and then turn the screwdriver into a wood chisel through small incremental changes to the code, by testing each small change to see how closely my screwdriver has evolved towards becoming a wood chisel. And I think that most of us also code using this Darwinian process of innovation and natural selection too. I am a rather lazy programmer, so many times rather than thinking through a new chunk of code during the iterative process of coding and testing, I will simply make an “educated guess” at the new code to be introduced. After 40 years of coding, you begin to code by “ear”. Many times, I can fall upon the correct code after a few shots of directed random change, and that sure beats racking your brain over new code. Surprisingly, sometimes I even come up with “better” code through this Darwinian process than if I sat down and carefully thought it all through. So the basic idea of grabbing some old code or architectural design elements from a couple of older Applications and slowly modifying them through an iterative process of innovation and natural selection into a new Application is no stranger to IT. As Simon Conway Morris commented in Life’s Solution (2003)

"How much of a complex organism, say a humanoid, has evolved at a much earlier stage, especially in terms of molecular architecture? In other words, how much of us is inherent in a single-celled eukaryote, or even a bacterium? Conversely, we are patently more than microbes, so how many genuinely evolutionary novelties can we identify that make us what we are? It has long been recognized that evolution is a past master at co-option and jury-rigging: redeploying existing structures and cobbling them together in sometimes quite surprising ways. Indeed, in many ways that is evolution”. When I first read those words, I accidentally misread the quote as "Indeed, in many ways that is IT”.

Similarly, on the hardware side, in May of 1941 Konrad Zuse exapted 2400 electromechanical telephone relays into creating his Z3 computer. The telephone relays were not originally designed for this purpose. Instead, they were designed to be reliable electrical switches that could be used to make or break circuit connections so that people could speak with each other over the telephone. But Zuse did not use these relay connections for communications. Instead, he used the fact that a relay could be either in an open or closed state to store a binary digit of “1” or “0”. You can read about his adventures in computing in his own words at:

Konrad Zuse
http://ei.cs.vt.edu/~history/Zuse.html

Konrad Zuse did not use vacuum tubes as switches to store “1s” and “0s” for the Z3 because he thought that it would be impossible to keep thousands of vacuum tubes up and running long enough to complete computations, but in the 1940s and 1950s vacuum tubes were indeed used by all the computers of the age. However, vacuum tubes were not invented to run computers either. Vacuum tubes were originally invented to amplify analog radio signals and were exapted by the nascent computing industry into service. Vacuum tubes have a grid between a hot negative cathode filament and a cold positive anode plate. By varying the voltage on the grid you can control the amount of current between the cathode and the anode. So a vacuum tube acts very much like a faucet, in fact, the English call them “valves”. By rotating the faucet handle back and forth a little, like a weak input voltage to the grid, you can make the faucet flow vary by large amounts, from a bare trickle to full blast, and thereby amplify the input signal. That is how a weak analog radio signal can be amplified by a number of vacuum tube stages into a current large enough to drive a speaker. Just as you can turn a faucet on full blast or completely off, you can do the same thing with vacuum tubes, so that they behave like telephone relays, and can be in a conducting or nonconducting state to store a binary “1” or “0”. Similarly, when computer hardware migrated to discrete transistors and finally to integrated circuit chips, they once again exapted these devices from the consumer electronics industry. Like a vacuum tube, a transistor has a gate, source, and a drain, and a varying voltage at the gate can control the current between the source and drain. Discrete transistors and integrated circuits were not primarily designed for computers, but for other electronic devices, like transistor radios and stereo systems that had a much larger market. So the computing industry has opportunistically taken advantage of the available information storage and processing hardware ever since its inception.

Thus it is quite possible that an early form of metabolic self-replicating information, similar to Oparin’s proto-cell, could have opportunistically exapted clay microcrystals to run Gene 1.0 on. Or perhaps Cairns-Smith is right and clay microcrystals running Gene 1.0 in a free state exapted organic molecules to enhance their ability to self-replicate. When contemporaneous forms of self-replicating information form parasitic/symbiotic relationships with each other it is hard to say. For example, software first bootstrapped itself into existence as a form of self-replicating information parasitizing the need for humans to do mathematical operations in an automated manner and quickly went on to form very strong parasitic/symbiotic relationships with nearly every meme-complex on the planet, and in doing so, has domesticated our minds into churning out ever more software of ever more complexity. Just as genes are in a constant battle with other genes for survival, and memes battle other memes for space in human minds, software is also in a constant battle with other forms of software for disk space and memory addresses. Natural selection favors complex software with increased functionality, throughput, and reliability, so software naturally has progressed to greater levels of complexity over time. As IT professionals, writing and supporting software, and as end-users, installing and using software, we are all essentially temporary software enzymes caught up in a frantic interplay of self-replicating information, until the day comes when software can finally self-replicate on its own. Cairns-Smith calls the later rise of parasitic/symbiotic RNA the “Genetic Takeover” in Genetic Takeover: And the Mineral Origins of Life (1982), which describes the rise of Gene 2.0 running on RNA and DNA.

Crystals are natural products of the second law of thermodynamics. When individual atoms in a melt come together into a crystalline lattice the entropy of the atoms decreases because they are in a more ordered microstate. However, the free-wheeling atoms jiggling about in the melt also release a “heat of fusion” into the remaining melt as some of their free energy is given up as they click into place into the lattice, so the entropy of the entire universe still increases. Similar thermodynamic processes that preserve the second law of thermodynamics also occur when crystals form out of saturated water solutions. Thanks to the second law of thermodynamics, natural crystals also come with defects caused by atoms in the lattice that are slightly misaligned or by atomic intruders that should not even be in the crystal lattice in the first place. Thus crystals combine the periodic regularity of self-assembled atoms, modulated by crystal defects, that is perfect for the storage of information. For me, crystals just seem to be too good of an information storage technology for a metabolic proto-cell to pass by and too easy to exapt into use, but that just might be a symptom of my anthropocentric inclinations as a carbon-based life form. Perhaps clay microcrystals had the same opinion of organic molecules!

In fact, there is some evidence that points to simple life forms exapting crystals into use. In 1975 Richard Blakemore discovered magnetotactic bacteria that could sense the Earth’s magnetic field and swim along its field lines. Magnetotactic bacteria have organelles called magnetosomes that contain magnetic crystals of magnetite (Fe3O4) or greigite (Fe3S4). The magnetotactic bacteria grow chains of these magnetic particles under the chemical control of the magnetosomes. These magnetic crystals are between 35 and 120 nm in size, which is just large enough to have a magnetic field, but small enough so that the crystals have a single magnetic dipole domain, like a very small compass needle. These magnetic crystals allow the bacteria to sense the Earth’s magnetic field and use it to navigate. It is thought that magnetotactic bacteria first evolved in the early Proterozoic, perhaps 2.5 billion years ago. I once saw these magnetotactic bacteria in action at the Exploratorium in San Francisco. The exhibit lets you turn an external magnet, and as you do so, the bacteria swim in a new direction. Similarly, higher forms of life use biomineralization to grow shells and bones from crystals of calcium carbonate, silica, or phosphate carbonate. So there has been a long history of association between mineral crystals and living things.

Personally, my hunch is that life first originated several thousand feet below the Earth’s surface in porous reservoirs near hydrothermal vents. The pore spaces in the heavily fractured rock near a hydrothermal vent would provide the ideal habitat, with an abundant supply of hot, energy-rich, organic molecules and crystal precipitating ions in the pore fluids circulating through the rock. This environment would also be isolated from the planet-wide sterilizing impacts from the late heavy bombardment that peppered the Earth and Moon 4.1 – 3.8 billion years ago with countless impacts from comets careening in from the outer Solar System. It is thought that at the time of the late heavy bombardment, that Jupiter and Saturn had entered into a 2:1 orbital resonance, with Saturn making one orbit for every two orbits of Jupiter, and that the two planets had flung a nearby Neptune out to its current orbital position as the most distant planet from the Sun. Neptune then dislodged many of the surrounding comets from its new-found neighborhood, causing them to plunge in towards the inner planets like the Earth, producing many deadly collisions that boiled away the Earth’s oceans time and time again. Seeking refuge several thousand feet below the mayhem of the Earth’s surface would allow life to safely originate 4.0 – 4.2 billion years ago during the late heavy bombardment and persist in an undisturbed manner to this very day. In fact, there are still plenty of microbes down there. You can actually hire firms to analyze the bacteria in your oil field reservoirs to help prevent them from becoming soured by bacteria that produce hydrogen sulfide gas.

So will we ever really figure out the exact sequence of events leading up to the origin of life? As I pointed out in A Proposal For All Practicing Paleontologists my suspicion is that there would be a great deal of controversy in simply putting together a non-contentious history for the evolution of software too, with much debate regarding the importance and priority of many of the events in the evolution of software architecture, even with all of the data freely at hand and with most of the events having occurred within living memory, so no wonder biologists working on the origin of life have such a hard go of it! Similarly, many attempts have been made to produce a timeline for the development of computing hardware. One of my favorites is:

An Illustrated History of Computers
http://www.computersciencelab.com/ComputerHistory/History.htm

When you look at all of this hardware, it is very difficult to put your finger on a particular device and emphatically claim it to be the very first computer. For example, was Konrad Zuse’s purely mechanical Z1, completed in 1938 in his parents’ living room, a real computer? It had a control unit, memory, an arithmetic unit with four basic operations for floating point numbers, input and output devices and it could read programs from a punched tape, but it did not store programs in memory and it did not have a logic unit that could compare bits. Similarly, I think that it would be very difficult to put your finger on the very first form of life on Earth too.

Unfortunately, figuring out the exact mechanisms that were involved in the origin of life on Earth will probably never be fully completed. Like the origin of software and computing hardware, it probably was such a hodge-podge of precursors, false starts, and failed attempts that nobody will ever be able to fully unravel it all. After all, if we had been there to see it all unfold, we would probably still be debating today what exactly had happened! But the very muddled origin of software and computing hardware seem to provide a very good model for the origin of all forms of self-replicating information. The important thing to keep in mind is that self-replicating information is very opportunistic and will exapt whatever information storage technology happens to be handy at the time. Also, as we have seen from the evolutionary history of software, self-replicating information does not really care about what particular medium or information storage technology it uses at any given moment since it has a propensity to jump from one technology to another. For example, software has jumped from purely mechanical information storage devices to electromechanical relays, vacuum tubes, discrete transistors, integrated circuits and may soon be running on optical chips using quantum mechanical effects to store information. This would indicate that researchers working on the origin of life should perhaps broaden their horizons and not focus exclusively upon organic molecules as the sole precursors to the origin of life on Earth, and should try giving clay a chance.

Comments are welcome at scj333@sbcglobal.net

To see all posts on softwarephysics in reverse order go to:
https://softwarephysics.blogspot.com/

Regards,
Steve Johnston

Friday, April 15, 2011

Is the Universe Fine-Tuned for Self-Replicating Information?

This posting will focus on the three forms of self-replicating information on this planet – genes, memes, and software – and the apparent fine-tuning of the Universe to make all three possible. As we saw in Self-Replicating Information all forms of self-replicating information have a commonality of shared properties, resulting from their common struggle with the second law of thermodynamics in a nonlinear Universe, that allow us to learn about one, by examining the others. As I pointed out in The Origin of Software the Origin of Life, success for our current SETS program - the Search for ExtraTerrestrial Software – seems to have a precondition for the emergence of intelligent beings in the Universe to appear first, and to form a scaffolding upon which software can later arise and ultimately begin its exploration of our galaxy. Since the emergence of intelligent beings is apparently so important for the subsequent emergence of software, let us start there.

For the current stellar-dominant phase in the evolution of our Universe, this seems to be contingent upon the emergence of intelligent carbon-based life forms, and as many physicists and cosmologists have pointed out, our Universe seems to be indeed strangely fine-tuned for the emergence of carbon-based life forms. If you change any of the 20+ constants of the Standard Model of particle physics by just a few percent or less, you end up with a universe incapable of sustaining intelligent carbon-based beings. Similarly, in 1969 Robert Dicke noted that the amount of matter and energy in the Universe was very close to the amount required for a flat spacetime to a remarkable degree. If you run today’s near flatness of spacetime back to the time of the Big Bang, spacetime would have had to have been flat to within one part in 1060! This is known as the “flatness problem” in cosmology. If spacetime had just a very slight positive curvature at the time of the Big Bang, then our Universe would have quickly expanded and recollapsed back into a singularity in a very brief period of time and there would not have been enough time to form stars or living things. Similarly, if spacetime had a very slight initial negative curvature, it would have rapidly expanded – our Universe would have essentially blown itself to bits, forming a very thinly populated vacuum which could not have formed stars or living things.

The apparent fine-tuning of our Universe for intelligent carbon-based life forms is troubling for most theorists because it is difficult to explain. For the religious at heart, the explanation is quite simple – there must be a deity who created the Universe deliberately fine-tuned for intelligent carbon-based life. But that explanation just pushes the problem back one level because then you have to explain where the deity came from and why a hypothetical super-Universe, beyond our own Universe, was fined-tuned to bring forth such a deity in the first place. This all goes against the pantheistic grain of many scientists, who have a bit of a spiritualistic bent at heart, and who share the philosophical inclinations of both Spinoza and Einstein. An alternative explanation that the scientific community seems to be slowly embracing is Brandon Carter’s Anthropic Principle (1973), which comes in several flavors, the least contentious being the weak version of the Anthropic Principle:

The Weak Anthropic Principle - Intelligent beings will only find themselves existing in universes capable of sustaining intelligent beings.

At first glance, this proposition seems to just state the obvious, but it does have implications. If we are indeed intelligent beings then our Universe must be fine-tuned to sustain intelligent beings, and that fine-tuning must extend throughout the entire Universe as well, allowing for the emergence of other intelligent beings elsewhere, but why? The two most common explanations offered for the Weak Anthropic Principle are that either our Universe was intentionally designed with such fine-tuning in mind, or our Universe is just one of many possible universes in a multiverse. Proponents of the multiverse explanation go on to explain that most universes in the multiverse do not have the necessary physics to sustain intelligent beings and are quite sterile, but like all lottery losers, nobody is in those universes wondering why there is no intelligent life, only the exceedingly rare lottery winners sit in stunned amazement, holding winning tickets to a fine-tuned universe.

But is it proper to infer an infinite multiverse of universes from the mere fact that we exist? Fortunately, we have an historical analogy that can shed some light on the subject. Towards the end of the 16th century, Giordano Bruno took Copernicus’s heliocentric model of the Solar System (1543) one step further. Giordano Bruno was an early pantheist who conceived of a deity that was one with the Universe, rather than being a deity existing in a remote heaven-based-universe beyond our own physical Universe. Giordano Bruno thought that such an infinite pantheistic deity must necessarily exist in an infinite Universe, with no beginning and no end, and infinite in both space and time. Like Copernicus, Bruno believed that the planets orbited the Sun, but additionally, Bruno figured that the stars must simply be distant suns with their own sets of planets and that these distant planets could also harbor alien life forms and intelligent beings as well. Clearly, Giordano Bruno was about 400 years ahead of his times, which put him in conflict with many of the prevailing meme-complexes of the day, and sadly, he was burned at the stake by the Roman Inquisition on February 17, 1600. But the implications of his cosmology are remarkably similar to those of the Weak Anthropic Principle. Once you posit a Universe containing a near-infinite number of planets, chances are that some of those planets would necessarily be capable of sustaining intelligent carbon-based life forms by sheer luck, and intelligent carbon-based life forms would only find themselves existing on such planets. This seems to be our current situation here on Earth – we exist on one of the very rare lucky planets in our Universe. So without even the benefit of the crude telescope that Galileo was about to turn upon the night sky in 1610, Giordano Bruno was able to infer that there must be a large, or near-infinite, number of planets with intelligent beings in our Universe that we cannot see, but must exist, nonetheless, because we exist.

Another appealing feature of a multiverse, in addition to eliminating the need for our apparently fine-tuned Universe to be intentionally designed, is that it addresses a problem in string theory. The Standard Model of particle physics was a big improvement over the 400+ unrelated “fundamental” particles discovered in the 1960s, but when you add up all of the various colored particles and their antimatter twins, you end up with about 63 particles (see The Foundations of Quantum Computing for details). Many physicists think that our Universe simply cannot be so complicated and that there has to be a simpler model. One promising model is called supersymmetric string theory, or string theory for short. String theory contends that all of the particles of the Standard Model are actually strings or membranes vibrating in an 11-dimensional Universe. The strings or membranes are made of pure energy, or perhaps, pure mathematics and vibrate with different frequencies. The different vibrational frequencies account for the differing physical properties of the particles, like the different frequencies of a vibrating guitar string account for the differing notes emanating from a guitar. According to string theory, at the time of the Big Bang, three of the 11 spatial dimensions suddenly began to expand and so did the 4th dimension of time. The remaining 7 dimensions remained microscopically small beyond our ability to observe them. String theory research has dominated physics for the past 20 years but unfortunately string theory is now running on pure mathematics, without the benefit of the third step in the Scientific Method - experimental verification of the theory using inductive empiricism. Unfortunately, the predicted vibrating strings and membranes are so small that they are far beyond the reach of our current accelerators by many orders of magnitude. Now the initial hope for string theory was that there would be one, and only one, self-consistent formulation of the theory and that the Standard Model and its 20+ constants would naturally fall out from it. But that is not what has happened. Over the years, it has become evident that one can form a nearly infinite number of universes with string theory by slightly changing the geometry of the dimensions in which the strings and membranes vibrate. Leonard Susskind calls this The Cosmic Landscape (2006) in his book by the same title. As do many cosmologists, Susskind proposes that there are an infinite number of other universes forming a multiverse, with each universe having its own physics determined by the number and geometry of its dimensions.

So nowadays in both physics and cosmology, it seems as though there is a lot riding on the Weak Anthropic Principle and its implication that there is a near-infinite multiverse of universes out there, with possibly a near-infinite number of ways of doing physics. But the Weak Anthropic Principle makes this inference on the basis that the apparent fine-tuning of our Universe for the existence of intelligent beings is exceptional. But what if that were not the case? What if the existence of intelligent beings in a Universe, just about any kind of Universe at all, was the rule and not the exception and a relatively easy accomplishment to achieve? In this posting, I would like to make that very proposition, by introducing the Very Weak Anthropic Principle:

The Very Weak Anthropic Principle - Intelligent beings will only find themselves existing in a universe capable of sustaining self-replicating information, and self-replicating information will only be found in a universe that begins in a low-entropy initial state.

To understand the implications of the Very Weak Anthropic Principle, it would be a good time to review the concepts of entropy and the second law of thermodynamics found in Entropy - the Bane of Programmers and The Demon of Software, and also the role that both played in the evolution of living things and software found in SoftwareBiology and Self-Replicating Information. Additional insights can also be found in From Eternity to Here (2010) by Sean Carroll, which has the subtitle of The Quest For the Ultimate Theory of Time, but for our purposes serves as a spectacular study of the second law of thermodynamics and entropy and their far-reaching roles in the evolution of our Universe. The central aim of this book is to focus attention on why our Universe started out with such a very low entropy at the time of the Big Bang, and that is fundamental to understanding the Very Weak Anthropic Principle, so I will be making quite a few references to it.

In Entropy - the Bane of Programmers we saw that thermodynamics was an outgrowth of the desire by physicists and engineers in the 19th century to better understand and improve upon steam engines. Thermodynamics describes the behaviors of macroscopic systems, like steam engines, in terms of changes in their macroscopic properties, like changes in their pressures, temperatures, and volumes, as these macroscopic systems operate. We also explored the second law of thermodynamics, as it was first proposed by Rudolph Clausius in 1850, in terms of objects cooling off and the smoothing out of differences in bulk matter, like the mixing of gasses. Clausius defined this general running down of systems in terms of a quantity he called entropy, which he defined in terms of the flow of heat from one object to another. The second law of thermodynamics stated that heat could flow from a hot object to a cooler object, but not the other way around. In the 19th century, thermodynamics and Newtonian mechanics were considered to be two entirely different domains within physics and unrelated in any way. Thermodynamics was applicable to the vagaries of steam engines and boilers, while Newtonian mechanics made sense of the planetary motions about the Sun and the flight of cannon balls in time of war. Furthermore, the second law of thermodynamics was also considered to be a “real” law of the Universe and just as sacrosanct as Newton’s three laws of motion. However, in The Demon of Software, we saw how later in the 19th century Ludwig Boltzmann tried to unify thermodynamics with Newtonian mechanics by creating a new branch of physics known as statistical mechanics. With statistical mechanics, Boltzmann tried to demonstrate that all of thermodynamics could be derived from Newtonian mechanics by simply considering bulk matter to be composed of a large collection of molecules constantly bouncing around and following Newton’s three laws of motion in collisions at the microscopic level. One of the difficulties that Boltzmann faced with this new approach to thermodynamics was that now the second law of thermodynamics took on a statistical nature. The second law was no longer a sacred law of physics, but simply a very good bet. This bothered many 19th-century physicists, who considered the second law of thermodynamics to be just as sacred as Newton’s three laws of motion.

To highlight Boltzmann’s probabilistic approach to statistical mechanics we explored the concepts of the second law of thermodynamics and entropy in terms of poker. We equated the different kinds of poker hands with the concept of a macrostate. For example, a K-K-K-4-4 would constitute the macrostate of a full house. For any given poker hand, or macrostate, like a full house, there are a number of microstates that yield the macrostate. So for the macrostate of a full house a K-K-K-4-4, J-J-J-9-9, and a 7-7-7-2-2 would all be microstates of the full house macrostate. Following the work of Ludwig Boltzmann (1872), we found that for any given poker hand that we could calculate the entropy of the hand, or macrostate, by applying Boltzmann’s famous equation:

S = k ln(N)

S = entropy
N = number of microstates
k = Boltzmann’s constant

For our poker analogy, we set Boltzmann’s constant to k = 1, since k is just a “fudge factor” used to get the units of entropy using Boltzmann’s equation to match those used by the thermodynamic formulas for entropy.

We also used Leon Brillouin’s concept of information to calculate the amount of information in a particular poker hand, or macrostate, as the difference between its entropy and the maximum possible entropy of all poker hands:

Information = Si - Sf
Si = initial entropy
Sf = final entropy

The entropy of a macrostate defines its degree of disorder and its probability of happening. Macrostates with little entropy, like a straight flush, have a great deal of order but are very unlikely because they have so few microstates. Similarly, macrostates with lots of entropy, like a pair, have little order but are much more likely to occur because they have a huge number of possible microstates. At any given time a system, like the cards you are currently holding in a poker game, will be in some macrostate defined by a particular microstate. So let’s say that you are holding the macrostate of a full house defined by a microstate of Q-Q-Q-7-7. From the table in The Demon of Software, we see that a full house has an entropy of 8.2279098 and a probability of occurring of 0.00144. Now I am going to change the rules of poker again. When it comes time to draw cards, you can draw one, two, or three cards, but not only does the dealer deal you the new cards, he also chooses the cards that you discard! So you put all five cards face down on the table, tell the dealer how many cards you wish to draw, and then the dealer deals out your draw cards and discards an equal number of cards from your hand at random. So what do you do? From the table in The Demon of Software, we see that your full house macrostate with a microstate of Q-Q-Q-7-7 already has a relatively low entropy and a low probability of occurring. The odds are that if you draw even a single card that the entropy of your hand will increase, and you will end up with a lower ranked hand, like two pair or three of a kind. Of course, you could get really lucky and draw another Q, while the dealer discards one of your 7s, but that would be a real long shot. This, then, is the essence of the second law of thermodynamics in Boltzmann’s statistical mechanics. Systems tend to increase in entropy, not because of some fundamental law of the Universe, but simply because high-entropy macrostates (low-ranked poker hands) with lots of microstates are much more likely to occur than low-entropy macrostates (high-ranked poker hands) with few microstates. In simple terms, you are more likely to be dealt a pair than a straight flush simply because there are more ways to be dealt a pair than to be dealt a straight flush. Thus in Boltzmann’s view, the second law of thermodynamics reduces to just being a really safe bet that entropy will increase and not a fundamental law that it always must. So in Boltzmann’s view, in very rare cases, the entropy of an isolated system can spontaneously decrease all on its own, in apparent violation of the second law of thermodynamics.

The beauty of Boltzmann’s statistical approach to the second law of thermodynamics is that it is the only “law” in physics that we really understand at a fundamental level because it really is not a “law” at all in the same sense as the other “laws” of classical 19th century physics, which by definition could not be violated. Recall that in the 20th century we learned that all of the other “laws” of the Universe are really just effective theories in physics that are approximations of reality. An effective theory is an approximation of reality that only holds true over a certain restricted range of conditions and only provides for a certain depth of understanding of the problem at hand. For example, Newtonian mechanics works very well for objects moving in weak gravitational fields at less than 10% of the speed of light and which are larger than a very small mote of dust. For things moving at high velocities, or in strong gravitational fields, we must use relativity theory, and for very small things like atoms, we must use quantum mechanics. All of the current theories of physics, such as Newtonian mechanics, classical electrodynamics, thermodynamics, the special and general theories of relativity, quantum mechanics, and quantum field theories like QED and QCD are just effective theories that are based upon models of reality, and all of these models are approximations – all of these models are fundamentally "wrong", but at the same time, these effective theories make exceedingly good predictions of the behavior of physical systems over the limited ranges in which they apply (see Model-Dependent Realism - A Positivistic Approach to Realism for more details).

Boltzmann’s new statistical concept of the second law of thermodynamics also addressed a bothersome problem for 19th-century astronomy. At the time, physicists and astronomers thought that the Universe was infinitely old. In those early days, nobody really knew what was powering the Universe, but they did realize that the Universe was a dynamical system degrading some kind of low-entropy potential energy into the high-entropy energy of heat that was constantly moving to lower temperatures because of the second law of thermodynamics. For example, nobody knew what was powering the Sun, but they did know that the Sun was giving off huge amounts of electromagnetic energy in the form of sunlight. When the sunlight reached the Earth and was absorbed, it heated up both the land and sea, which then radiated infrared electromagnetic energy back into space with a longer wavelength and a greater entropy. At each step in the process, the first law of thermodynamics guaranteed that all of the energy was conserved, none of it was lost and no additional energy spontaneously appeared on its own. But at the same time, the second law of thermodynamics demanded that the entropy of the energy had to increase at each step, and when 19th century physicists performed experiments that simulated these processes in the lab that is indeed what they found. So if the Universe were infinitely old, then according to the second law of thermodynamics, all of the energy in the Universe should have already been converted into heat energy at a very low constant temperature, and the Universe should be in a state of an unchanging equilibrium, with a maximum of entropy. In classical 19th century thermodynamics, once an isolated system has attained a state of maximum entropy, it can no longer change and is essentially dead, and in the 19th century, this was known as the “Heat Death” of the Universe. To address this issue Boltzmann came up with his own version of the Weak Anthropic Principle. Since intelligent beings could not possibly exist in an unchanging Universe at equilibrium and in a state of maximum entropy, we must obviously be living in a very strange and fluky tiny portion of a much larger Universe. Most of the Universe would indeed be in equilibrium, at a maximum entropy, and in a “Heat Death” condition, but our little portion of the Universe must be a statistical fluke, at a much lower entropy, that spontaneously came to be out of the random motions of molecules in our patch of the Universe. It would be like the spontaneous unmixing of two gasses that the second law of thermodynamics forbids but on a much grander scale.

Figure 1 – The second law of thermodynamics predicts that two unmixed gases will mix into an unchanging homogeneous mixture at equilibrium with a maximum of entropy (click to enlarge)



Figure 2 – Once a state of maximum entropy has been attained the mixture will no longer change as it enters a “Heat Death” macroscopic condition (click to enlarge)



Figure 3 – But Boltzmann’s new statistical view of the second law of thermodynamics does allow a mixed gas to spontaneously unmix on very rare occasions (click to enlarge)

Although the classical second law of thermodynamics forbids such processes, in Boltzmann’s new statistical view of the second law of thermodynamics, it is very unlikely, but still possible, for a tiny patch of an infinitely large and infinitely old Universe to spontaneously evolve into a low-entropy state such as ours. It would be like starting off with a poker hand of “nothing” with an entropy of 14.7706235 and after drawing three cards ending up with a royal flush with an entropy of 1.3862944. It would take a very long time to be so fortunate, but if the Universe were infinitely old, there would be plenty of time for it to have happened, and for it to have happened an infinite number of times in the past.

Now with all that background material behind us, what does it take for self-replicating information to arise? I would like to argue that it does not take that much at all. All it requires is the existence of a second law of thermodynamics and a low-entropy initial state for a universe to bring forth self-replicating information in some fashion. A second law of thermodynamics is necessary for the emergence of self-replicating information because the second law is the driving force behind the Darwinian mechanisms of innovation and natural selection that select for self-replicating information from information that does not self-replicate and allow it to emerge and evolve. The second law guarantees that some level of copying errors will occur whenever self-replicating information replicates, resulting in mutations that, on rare occasions, provide for beneficial innovations. The second law also guarantees that the low-entropy materials used to encode self-replicating information and the free energy necessary to replicate it will be in short supply, since the necessary building materials will have a tendency to degrade into high-entropy waste materials, and the free energy will tend to degrade into useless heat energy. The scarcity of these items creates a struggle for existence amongst the competing forms of self-replicating information, leading to the Darwinian mechanism of natural selection. After all, if it had not been for the second law of thermodynamics, and food and shelter spontaneously emerged out of nothing, we would all be fat and happy bacteria today! Finally, because there will always be more microstates for a disordered high-entropy macrostate, than there are microstates for an ordered low-entropy macrostate, in all possible universes, all universes must necessarily have a second law of thermodynamics, no matter what physics they might be running on at the moment. It’s just in the cards that all possible universes must have a second law of thermodynamics. Consequently, all that is really needed for the existence of intelligent beings is for a universe to begin in an initial state of low entropy.

Now it looks like we have nearly finished our derivation of the Very Weak Anthropic Principle. Since all possible universes must contain a second law of thermodynamics, all we have to do is explain why our Universe began in a low-entropy state. Frequently in textbooks on thermodynamics, it is inferred that since our Universe is currently not in a state of maximum entropy, it must have been in a state of much lower entropy in the distant past because entropy always has to increase with time. In From Eternity to Here Sean Carroll points out that this is not necessarily true. It all has to do with the conservation of information and reversible processes. This time I am not talking about Leon Brillouin’s concept of information as a difference in entropies, but rather the “other” concept of information that I mentioned in The Demon of Software in regards to black holes conserving information. A reversible process is a process that can be run backwards in time to return the Universe back to the state that it had before the process even began as if the process had never even happened in the first place. For example, the collision between two molecules at low energy is a reversible process that can be run backwards in time to return the Universe to its original state because Newton’s laws of motion are reversible. Knowing the position of each molecule at any given time and also its momentum, a combination of its speed, direction, and mass, we can predict where each molecule will go after a collision between the two, and also where each molecule came from before the collision using Newton’s laws of motion. For a reversible process such as this, the information required to return a system back to its initial state cannot be destroyed, no matter how many collisions might occur, in order to be classified as a reversible process that is operating under reversible physical laws.

Figure 4 – The collision between two molecules at low energy is a reversible process because Newton’s laws of motion are reversible (click to enlarge)

Currently, all of the effective theories of physics, what many people call the “laws” of the Universe, are indeed reversible, except for the second law of thermodynamics, but that is because, as we saw above, the second law is really not a fundamental “law” of the Universe at all. In order for a law of the Universe to be reversible, it must conserve information. That means that two different initial microstates cannot evolve into the same microstate at a later time. For example, in the collision between the blue and pink molecules in Figure 4, the blue and pink molecules both begin with some particular position and momentum one second before the collision and end up with different positions and momenta at one second after the collision. In order for the process to be reversible and Newton’s laws of motion to be reversible too, this has to be unique. A different set of identical blue and pink molecules starting out with different positions and momenta one second before the collision could not end up with the same positions and momenta one second after the collision as the first set of blue and pink molecules. If that were to happen, then one second after the collision, we would not be able to tell what the original positions and momenta of the two molecules were one second before the collision since there would now be two possible alternatives, and we would not be able to uniquely reverse the collision. We would not know which set of positions and momenta the blue and pink molecules originally had one second before the collision, and the information required to reverse the collision would be destroyed.

Now suppose you find yourself in a universe that looks like Figure 3 and has a relatively low-entropy microstate relative to the maximum entropy of Figure 2. How did you get that way? At first, you might think that you got that way by evolving from a universe with an even lower entropy, like one that had all of the molecules tightly confined to a corner in each half of the two boxes. But that would not be very likely. The most likely thing to have occurred is that you started out in a universe like Figure 2! To get to a universe like Figure 3, all you have to do is reverse the speed and direction of each molecule in Figure 2, and you end up with a universe like Figure 3, because the universe in Figure 2 evolved from the universe in Figure 1 in the first place. Since there will be a huge number of configurations like Figure 2, relative to the number of configurations with all of the molecules in each box neatly packed into corners, the most likely way of getting to Figure 3 is from a much higher entropy Figure 2. So if you find yourself in a relatively low-entropy universe such as ours, you cannot simply use the second law of thermodynamics to infer that your universe started out as an even lower entropy universe in the distant past. Instead, you have to make what Sean Carroll calls the Past Hypothesis, that for some reason, your universe started out in an initial state with a very low entropy in the first place.

In From Eternity to Here Sean Carroll goes on to offer several explanations for the Past Hypothesis of why our Universe began with a very low initial entropy. The one that he finally homes in on, and which I find quite appealing, is a model composed of a multiverse of self-replicating baby universes. Sean Carroll explains that under the relentless pressures of the second law of thermodynamics to constantly increase the entropy of a universe, a universe in a multiverse ultimately degenerates into a state where everything is confined to a large number of black holes. Such a universe filled with black holes ultimately degenerates, via Hawking radiation, into a nearly empty universe with a small amount of positive vacuum energy and a maximum of entropy. This takes a long time - about 10100 years. Another good book that also describes this degenerative process is The Five Ages of the Universe (1999) by Fred Adams and Greg Laughlin. Then the universe must wait for a very very long time. After a seeming eternity of time, a quantum fluctuation in the very dilute remaining quantum fields of the universe suddenly creates a tiny pinch of “false vacuum” in the universe (see The Foundations of Quantum Computing for details on quantum field theory). Most times this pinch of “false vacuum” simply collapses back into the dilute fluctuating quantum fields of the universe, but upon exceedingly rare occasions, this region of “false vacuum” pinches off into a new baby universe. The new baby universe then inflates into a full-blown universe, such as ours, that is essentially made out of “nothing”, with no net energy, momentum, or angular momentum, but it does have an initial state with a very low entropy. Energy is conserved because the energy of the radiation and matter that form as the “false vacuum” of the baby universe decays while inflating, is exactly matched by the negative gravitational potential energy that arises due to the presence of the matter and radiation in the baby universe. The initial entropy of the baby universe starts out very low, but this is not a violation of the second law of thermodynamics because the entropy of its maternal universe is still at a maximum, and the entropy of the multiverse as a whole does not decrease with the addition of a new low-entropy baby universe.

Figure 5 – A low-entropy baby universe can emerge from a quantum fluctuation in the residual quantum fields of a relatively dead universe that has reached a state of maximum entropy(click to enlarge)

So in Sean Carroll’s model of the multiverse, we find an infinite number of universes constantly spawning new universes, as each universe relentlessly progresses to a state of maximum entropy under the pressures of the second law of thermodynamics. A baby universe may inherit its physics from its maternal universe, or it might branch out on its own with a new set of physical laws, but thanks to the ubiquitous nature of the second law of thermodynamics, the end result will always be the same, a universe at maximum entropy spawning additional child universes with low entropy.

Figure 6 – The multiverse is composed of an infinite number of universes that are constantly replicating as they reach a state of maximum entropy under the pressures of the second law of thermodynamics (click to enlarge)

For me such a self-replicating multiverse has an almost fractal nature at heart, like the Mandelbrot set that is defined by a simple recursive algorithm in the complex plane:

Zn+1=Zn*Zn + C


Figure 7 – The multiverse can be thought of as a fractal form of self-replicating information, like the Mandelbrot set, with no beginning and no end (click to enlarge)

Now to get back to the original question posed by this posting - is the Universe fine-tuned for self-replicating information? In many ways, the multiverse described by Sean Carroll is indeed fine-tuned for self-replicating information because it essentially is a form of self-replicating information in itself. On the other hand, because his model also explains why all universes begin with a very low level of entropy, it also explains the Very Weak Anthropic Principle, and if the Very Weak Anthropic Principle is true, then the requirements for the fine-tuning of a universe are greatly relaxed, and the presence of intelligent beings in a universe is not such a discriminating factor. What is discriminating is the requirement that there be a fine-tuning selection process that starts universes off with a low initial entropy. This relieves some of the anthropocentric tension found in the other forms of the Anthropic Principle because human beings can no longer be accused of following their natural tendency to gravitate towards the center of the Universe. Just about any universe will do for intelligent beings to arise and ultimately initiate the emergence of software, and provide a scaffolding upon which software can later proliferate until the day comes when software can finally self-replicate on its own.

Comments are welcome at scj333@sbcglobal.net

To see all posts on softwarephysics in reverse order go to:
https://softwarephysics.blogspot.com/

Regards,
Steve Johnston

Wednesday, March 16, 2011

Can Your Website Think?

One of the propositions of softwarephysics is that there are currently three forms of self-replicating information on Earth – genes, memes, and software – with software rapidly becoming the dominant form of self-replicating information on the planet. As outlined in Self-Replicating Information, all forms of self-replicating information have a commonality of shared properties that allow us to learn about one by examining the others. Over billions of years, the genes have learned to create conscious beings through the Darwinian mechanisms of innovation and natural selection. The genes certainly did not plan on this happening, since genes are just mindless forms of self-replicating information, but it happened just the same in a purely mechanistic manner as huge neural networks developed in complex multicellular organisms such as ours. So the question becomes did the same thing happen for the memes and might it happen for software as well? Meme-complexes do seem to have a mind of their own as they respond to changes in the Zeitgeist of the times, but since memes are forms of self-replicating information that only exist in the minds of DNA survival machines, to begin with, the analogy does not easily carry forward in an unambiguous manner for software, so let us focus our attention on the consciousness of the DNA survival machines that the genes have brought forth, and to see if it can be extended to software as well.

The problem of what constitutes a conscious sentient being has been troubling philosophers, theologians, and scientists from the very beginning, and has not been satisfactorily explained by any of them. Fortunately, the extreme difficulty of the subject matter seems to stimulate the field in many disciplines. Some philosophers and many researchers working on AI (Artificial Intelligence) adopt a positivistic approach to the subject in that they don’t care what consciousness “really is”; they only care about how conscious beings are observed to behave. For AI an important advance along these lines came about with Alan Turing’s paper Computing Machinery and Intelligence (1950) in which he proposed his famous test. In this paper, Turing proposed having a judge ask questions of a conscious human being and a computer via two terminals. If the judge could not tell the difference between the human being and the computer from her interactions with both, then the computer would pass the Turing test for intelligence. A few months ago we saw IBM’s Watson supercomputer trounce his human opponents on Jeopardy using massively parallel processing software running on a cluster of 90 IBM Power 750 servers with a total of 2880 POWER7 processor cores and 16 Terabytes of memory. It could be argued that Watson failed the Turing test, not because he could not keep pace with his human opponents, but because nobody could possibly be that good at Jeopardy! Or perhaps Watson passed the Turing test, while his human opponents failed it. Anyway, it was quite fascinating to see such impressive levels of AI in action. In a similar manner, GPS units seem to have reached a level of AI far superior to human navigators. My GPS unit speaks to me and tells me exactly what I need to know without me even looking at the device, which is far superior to the directions you would obtain by stopping at a local gas station, even if you could persuade the reluctant attendant to come along for the ride. This AI behavior is especially handy when I decide to wander off the route planned by my GPS unit or I miss a turn. It patiently recomputes the best way to get me back on track to my destination. Once I was driving in downtown Chicago, and because of some local construction, a one-way street had been temporarily turned into a two-way street. As I proceeded to drive the “wrong” way down the one-way street, my GPS unit gently reminded me to please turn around as soon as possible, but when I did not, it finally just told me in disgust to make the proper turn when I reached my final destination. As I was driving the “wrong” way down the one-way street, I just had to wonder what my GPS unit was “thinking”. I was afraid that my GPS unit was thinking that this nut is going to get us both killed if he does not quickly turn around!

In Kinds of Minds (1996) Daniel Dennett extends some of the ideas found in his earlier work Darwin’s Dangerous Idea (1995) to explain how intelligent consciousness could have evolved from simple neural networks. He explains how sensation, the ability to respond to stimulation in a mindless sort of way, like your home thermostat, could evolve into sentience through the step-by-step Darwinian processes of inheritance, innovation and natural selection. To explain this process, Dennett uses one of his favorite intellectual devices – the Intentional Stance.

Here is how it works: first you decide to treat the object whose behavior is to be predicted as a rational agent; then you figure out what beliefs that agent ought to have, given its place in the world and its purpose. Then you figure out what desires it ought to have, on the same considerations, and finally, you predict that this rational agent will act to further its goals in the light of its beliefs. A little practical reasoning from the chosen set of beliefs and desires will in most instances yield a decision about what the agent ought to do; that is what you predict the agent will do. (Daniel Dennett, The Intentional Stance, p. 17)

At a very early age, we all learned to adopt an Intentional Stance when dealing with our fellow human beings, like our parents and other caregivers. We learned that human beings seemed to operate in a different manner than our blankets and teddy bears. Human beings behaved as if they could “think” and acted as rational agents with their own sets of beliefs and goals. For Dennett, adopting an Intentional Stance towards an external entity is one of the significant landmarks along the road from sensation to sentience. End users of modern-day websites certainly adopt an Intentional Stance towards websites. Not only does the website respond to requests by the end user, it also seems to have its own beliefs, goals, and desires. Many times the website will try to up-sell or cross-sell the end user with products or services, or entice the end user with a special offer to go to paperless billing.

In Kinds of Minds, Dennett also explains that another landmark along the road to consciousness is the ability for an agent to spread its mind out into the world by leaving behind cues and reminders in the environment to help it achieve its goals. This can be found in the lowly ant that leaves behind a pheromone trail on the surface of the soil that can be later followed by the ant or other ants to a source of food, all the way up to human beings who have a multitude of Good Tricks, including language and the written word to leave behind cultural artifacts in the environment that can be later used by our minds or the minds of others. Dennett explains:

We Gregorian creatures are the beneficiaries of literally thousands of ... useful technologies, invented by others in the dim recesses of history or prehistory but transmitted via cultural highways, not via the genetic pathways of inheritance. We learn, thanks to this cultural heritage, how to spread our minds out into the world, where we can put our beautifully designed innate tracking and pattern-recognizing talents to optimal use.

Websites do the same thing with cookies. Cookies come in many flavors and are used to do things such as “maintain state” and “personalize” the website experience for end users. Since the HTTP protocol does not maintain state between one page request and the next, a website must keep track of end users between requests as if they were in a dedicated session, like somebody on a very long phone call, with a continuous give and take between the end user and the website. In reality, the HTTP protocol essentially behaves like a series of disconnected phone calls, but through the magic of cookies, it is possible to maintain state and trick the end user into believing that they are actually having a dedicated conversation with the website. For example, the end user’s browser might first make a phone call to the website requesting the HTML for a particular webpage and then all of the necessary files like the .jpg and .gif files that form the images on the webpage and little JavaScript programs that are required for the HTML to render properly. The end user’s browser then hangs up while the website server responds to all of these requests. For the next webpage that the end user requires, the end user’s browser once again makes another phone call to the website server for another HTML page and all of its associated files. As you can see, if the website is trying to help the end user fill a shopping cart and place an order, there must be some mechanism to keep track of the thousands of concurrent end users who are simultaneously making such requests. This is accomplished by dropping a session cookie on the end user’s browser. The session cookie identifies the end user for the duration of the total transaction, which might require many webpages to accomplish. Session cookies are short-lived cookies that usually disappear when you close your browser or timeout after a few minutes of inactivity on your part. Tracking or persistent cookies, on the other hand, last much longer and are used to identify end users from session to session so that the website experience can be customized for the end user. For example, you might use a weather website that remembers your hometown and how you like your homepage laid out when you login, and so the weather website automatically displays the forecast for your hometown in the manner you like when you login to the website. This is accomplished by dropping a persistent cookie on your browser. So websites do not actually “remember” you, instead they distribute their “minds” out upon the end user community by dropping cookies on individual browsers. Unfortunately, tracking cookies can also be used by spyware and other forms of malware to monitor your Internet activities. Your virus and malware protection software can be used to help identify such cookies and is again an example of the need to adopt an Intentional Stance when dealing with software that really does have a set of beliefs, goals, and desires that are not in your best interest. So websites do indeed respond to stimulation, behave in a manner worthy of the Intentional Stance, and do spread their “minds” out into cyberspacetime.

Now if end users can think of websites as “thinking” agents, it is even more true for the IT professionals who create and maintain them. As a member of the Middleware Operations group for my current employer, I constantly find myself adopting the Intentional Stance when dealing with the software that I support. For example, last week I got pulled into an install that was not going very well. Our MidOps Offshore group in Bangalore India was having problems installing a very large Websphere .ear file. For J2EE Appservers like Websphere, .ear files are used to install Applications into a particular Websphere JVM that then create dynamic HTML for a particular website. Because this was a foreign website which had already seen the Sun set for the day and most of its end user community depart, its maintenance window just happened to include a Friday afternoon for me, and I had a ton of last-minute change tickets for the weekend to proofread and approve. Frantic programmers were calling my IP phone, leaving messages that I could not listen to, and popping instant messaging sessions on me while I was desperately trying to troubleshoot the install problem. The root cause of the problem was that the filesystem that Websphere was trying to deploy the .ear file to ran out of disk space, a very unusual problem since this critical filesystem for Websphere is normally sized with quite a bit of extra disk to avoid such problems. But this time it was not. This was further complicated by the fact that this was a low-usage website that had the Websphere Deployment Manager and a Websphere Cell with a single node all running on the same server, an unusual affair for most of the Websphere applications that MidOps supports. By the time I joined the call, there were apparently several residual orphan Unix processes from previous install attempts trying to write to the filesystem. At one time the Unix df command showed the filesystem at 100% disk, so I deleted out some old .ear files to make room, but unknown to me, other orphans must have been still trying to write to the filesystem and maxing it out. This resulted in numerous strange and aberrant behaviors by the Websphere Console. At first when I tried to login to the Websphere Console, I got the login page OK, but when I actually tried to login, I got an HTTP 500 error. I restarted the Websphere Deployment Manager a couple of times, but that did not help. What was happening was that the Deployment Manager was running OK, but it could not log my login attempt to the Websphere Console because the filesystem was at 100% disk utilization at the time. Deleting some old .ear files freed up some disk space and fixed the problem so that I could at least login to the Websphere Console. But when I tried to install the big .ear file, the Websphere Console lied to me and told me that the .ear file was not a proper .ear file and might be corrupt! That’s when it was noted that the filesystem had gone to 100% disk utilization again. This time UnixOps was engaged to increase the filesystem to 1 GB, and after that the .ear file installed properly, or at least it seemed so at first. But it turned out later that the Websphere Deployment Manager was out of sync with the Websphere node because of the filesystem going to 100% disk utilization, so the new .ear file had not been properly deployed. Resyncing the Websphere Deployment Manager with the Websphere node finally fixed the problem.

All during this install turmoil, I kept thinking of the Websphere Deployment Manager and Websphere node as an unruly child pulling a tantrum in a grocery store checkout line just to get its way. I kept thinking to myself, “What is wrong with you? Why are you behaving in such a bratty manner? Did I do something wrong? What do you really want? What will it take to make you stop acting like this?”. This was a rather embarrassing moment, as all parents can attest to because there were several other people on the install call listening to me trying to discipline my unruly child, all with the smug attitude that bystanders in such situations are infamous for. At one point I even threatened to reboot the Websphere server, the hollow threat that all IT professionals resort to, but infrequently follow through upon, but even that threat did not scare Websphere into submission! I am sure that this scenario is quite familiar to all IT professionals, and that we all routinely adopt an Intentional Stance towards the software that we create and support, and assign to it a personality of its own that we frequently try to bargain with in a vain attempt to get it to behave properly.

Comments are welcome at scj333@sbcglobal.net

To see all posts on softwarephysics in reverse order go to:
https://softwarephysics.blogspot.com/

Regards,
Steve Johnston

Tuesday, February 15, 2011

Cyber Defense

I just finished Cyber War (2010) by Richard Clarke, which I would strongly recommend for all IT professionals. Richard Clarke is most famous for being the counter-terrorism expert whose valiant efforts to warn the Bush Administration of the impending al-Qaeda attack upon the United States by Osama bin Laden went tragically unheeded, as outlined in his book Against All Enemies: Inside America's War on Terror—What Really Happened (2004). Richard Clarke is one of those forward-thinking individuals rarely found in human history. As demonstrated by the court-martial of Billy Mitchell in 1925 for his vociferous promotion of naval airpower in the face of a military high command seemingly obsessed with fighting the last war again, and consequently, in love with the gigantic battleships of the day that later never played a significant role in World War II, these rare individuals always seem to suffer the fate of Cassandra, who was given the gift of prophecy by Apollo, but also the curse that nobody would ever believe her. This time Richard Clarke is describing the dangers of conducting cyber war in cyberspacetime, and this time we need to listen to him before his prophesies come true, rather than after.

The Threat of Cyber War
For me, there is a personal reason for taking Richard Clarke’s warnings seriously. On the morning of September 11, 2001, I was working in the IT department of United Airlines supporting their Customer Interaction Database (CIDB), which was a large Oracle database of customer information fronted by a collection of Tuxedo services. I was in the group that supported the Tuxedo service middleware of the CIDB. Our initial client was the J2EE Weblogic Appservers used to run the www.united.com website. That morning, I was coming back from a walkthrough with Change Management for a large install planned for the coming weekend. When I returned to my cube, I heard some co-workers talking about an airplane crashing into one of the twin towers of the World Trade Center. I was concentrating on the upcoming install and did not pay much attention at the time because I thought it must have been a small private aircraft. Only later did I learn that it really was American Airlines Flight 11 that had crashed into the north tower at 8:46 AM ET. Seventeen minutes later the second tower was hit by our United Airlines Flight 175 at 9:03 AM ET. Then American Airlines Flight 77 crashed into the Pentagon at 9:37 AM ET and United Airlines Flight 93 went down in Shanksville Pennsylvania at 10:03 AM ET. A little later that morning I was in a preparation meeting planning for the upcoming weekend install when our manager walked into the room and told us that both towers of the World Trade Center had collapsed and that all scheduled installs had been canceled by our CIO. For the first time in history, all domestic flights were grounded and international flights were turned back. United Airlines lost about $700 million the first week after the attack, and within about two weeks about half of United’s IT department was laid off. I was one of the survivors since the CIDB was critical to keeping www.united.com up and running. The FBI took up residency in a war room down the hall from me. Over the next few months, I ran SQL queries against the CIDB database to help try to figure out what had happened.

Cyber-Attacks Are Already Happening
Clarke opens with a description of the September 6, 2007 destruction of a secret Syrian nuclear facility designed and constructed by the North Koreans. The Israeli Air Force destroyed the site with F-15 Eagles and F-16 Falcons attacking from the airspace of Turkey. This was a fairly typical event in the real world of human affairs, but there was one very unusual aspect to the attack. The Syrians had spent several billion dollars on a Russian air defense system, and the 1970s era F-15s and F-16s should have lit up the Syrian air defense radar screens like the Big Board in the War Room of Dr. Strangelove (1964), but they did not. That night the Syrian air defense system simply showed normal air traffic over Syria as the Israeli Air Force obliterated the site. Over time, the Syrians slowly realized that the Israelis had hacked their billion dollar air defense system! So what the Syrians saw on the night of September 6, 2007, was actually a computer simulation of a peaceful night over Syria, rather than a country under air attack.

A more recent cyber-attack was the Stuxnet worm that destroyed about 3,000 Iranian centrifuges that were enriching U-235 from natural uranium hexafluoride gas. Apparently, the Stuxnet worm caused the centrifuges to spin in an erratic manner, ultimately destroying the centrifuges, and their ability to work properly in a train of centrifuges to produce enriched U-235. Recall that natural uranium is about 0.7% U-235. Nuclear power plants need pellets with a U-235 content of about 3%, while nuclear weapons require an enrichment of 90% U-235 to be efficient. The problem is that once you have a train of 10,000 centrifuges, all you have to do is keep feeding the uranium hexafluoride gas through the train until you get to the 90% U-235 level. Once you have U-235 at a purity of 90%, all you have to do is slam two chunks together in a pipe bomb like the Little Boy atomic bomb that destroyed Hiroshima.

The Nations of the World Are Already in a Cyber Arms Race
Clarke goes on to explain that just about every defense department of every nation upon the face of the Earth has created a Cyber War department. After all, recruiting a small army of cyber-hackers is a comparatively low-budget affair for the world’s defense departments, even for the lowliest of nations. These cyber-warriors go about creating botnet networks of PCs infected with malware primed to commence DOS (Denial of Service) attacks upon designated websites on command from a central server, and they are also inserting trapdoors and logic bombs into the critical software of foreign nations that is used to run their national infrastructure, like their electrical power grids and banking systems. In the past, Richard Clarke had a lot to do with the nuclear defense policies of the United States, but he points out that the main problem with a massive cyber-attack is that you don’t know for sure who originated the attack. This greatly complicates the problem of deterrence by means of massive retaliation. If a large number of transformers and generators in the United States power grid were to all burn out at the same time, how would you ever know where the cyber-attack came from? As Clarke points out, it might be possible to determine that the attack originated from a small server in Estonia, but who was really behind the attack? If the United States was in a shooting war with China at the time, the most likely suspect would be China, but what if it were really a mischievous North Korea trying to exasperate the situation, and have the United States unleash its cyber arsenal upon China? Not being able to accurately tell where a cyber-attack originated from is a very destabilizing factor, and puts pressures on combatants to launch a first strike before their software infrastructure goes down.

A Possible Cyber Repeat of World War I
Clarke also points out that one of the greatest dangers of cyber war is that the nations of the world may not know what they have already wrought. As I pointed out in The Fundamental Problem of Everything, it seems that a necessary condition for civilization is the rise of the Powers That Be in societies. All civilized societies need the Powers That Be to run things, and all civilizations and societies necessarily have a mechanism for creating their Powers That Be, whether that be through the heredity of individuals within a monarchial line of descent, free and democratic elections of representatives, or through the infighting amongst a number of individuals within the central committee of a ruling oligarchical class. Now there is nothing wrong with having the Powers That Be run things, they just seem to be a necessary condition of civilization. But we must always remember that the Powers That Be are also human, and therefore, are subject to the limitations of human nature. For example, the Powers That Be who ran the world just prior to World War I did not recognize the game-changing effects of the mechanization of warfare. The development of high volume rail systems, capable of quickly transporting large numbers of troops and munitions, the invention of the machine gun, and the arrival of mechanized transport vehicles and tanks, greatly increased the killing power of nation-states. This was not generally recognized by the Powers That Be prior to the catastrophe of World War I, which resulted in 40 million casualties and the deaths of 20 million people for apparently no particular reason at all. Even so, the Powers That Be of the time did correctly recognize that they would not be part of the fighting and dying, wartime services that traditionally were always delegated to the little people in past centuries. Similarly, the Powers That Be who initiated World War II were of course fully aware of the horrors of mechanized warfare, but again, were quite confident that they would not be part of the fighting and dying, so the horrors of World War II even outdid those of World War I. This all changed with the Cold War. Suddenly, with large stockpiles of nuclear weapons on both sides, the Powers That Be realized that this time they would indeed be part of the fighting and dying, and miracle of miracles, World War III never happened! We came close a few times, but thanks to MAD (Mutually Assured Destruction), the Powers That Be always withdrew from the brink. Yes, this may be a very cynical way of looking at things, but given the limitations of human nature, I believe it is a valid model. If the Powers That Be of the world are convinced that they will personally be big losers in a worldwide cyber war, it may never happen.

So how can we extend the strategic concept of MAD to cyber war? I think the worldwide IT community has to let the Powers That Be of the world realize that once a full-scale global cyber war breaks out that, no matter what cyber war peace conventions are in place at the time, it will probably spill over and take out the world financial and banking systems. As I explained in MoneyPhysics, money is not “real”, it is just a collection of bits in cyberspacetime, and every maniacal dictator has his private Swiss bank accounts to protect. Going back to my definition of physical reality:

Physical Reality - Something that does not go away even when you stop believing in it.

Once people lose faith in money and who owns what, the world economy will quickly unravel. After all, as I also pointed out in MoneyPhysics, we nearly did this to ourselves already in the fall of 2008 without a cyber war even taking place! So it is important for IT organizations, like the ACM and IEEE, to acknowledge the possibility of a full-scale global cyber war and its likely effects upon the world economy and financial systems, in order to avoid the equivalent catastrophe of World War I in cyberspacetime. If you Google for “Cyber War” or “Cyber Defense” you will get many millions of hits and find a large number of organizations already devoted to cyber defense, so we have a good start at this. Now a strategic policy of Cyber-MAD would likely dissuade the Powers That Be of nation-states, like an economic version of the Doomsday Machine found in Dr. Strangelove, but what about the would-be cyber-terrorists of the world who would be more than happy to see the economies of the Western world in tatters?

Make Softwarephysics Part of Your Cyber Defense
I think this is where softwarephysics can be of use. Just as a good understanding of nuclear physics was essential during the Cold War, a good understanding of softwarephysics is essential to mount an effective cyber defense against cyber-attacks in cyberspacetime. In The Fundamental Problem of Software, I laid down the three laws of software mayhem:

1. The second law of thermodynamics tends to introduce small bugs into software that are never detected through testing.

2. Because software is inherently nonlinear these small bugs cause general havoc when they reach production.

3. But even software that is absolutely bug-free can reach a critical tipping point and cross over from linear to nonlinear behavior, with disastrous and unpredictable results, as the load on software is increased.

The first two laws of software mayhem are certainly to the advantage of nations planning for a national cyber defense because they predict that software is a very fragile and brittle substance indeed, so trapdoors and logic bombs are subject to the same frailties as all other production software, and are likely to fail just at the moment that you need them. This means that there is a very good chance that many of the trapdoors and logic bombs deployed in advance will fail just when they are being called upon to bring down a nation’s software infrastructure. As all IT professionals in Applications Development or Operations know, the slightest change to the IT infrastructure, like operating system upgrades of servers, patches to database management systems, or changes to firewall rules, load balancers, switches, routers, and domain name servers, as well as changes to infrastructure software like Apache configuration files, J2EE Appserver configuration changes, and changes to messaging and gateway software can all quickly bring the whole thing down like a collapsing house of cards. I am in the Middleware Operations group for my present employer and all day and night long we are in a constant battle to keep it all up and running. We are constantly troubleshooting problems and getting things back online by restarting software that has spontaneously gone into a bad state. And whenever we do an install we are always prepared to back it out when problems arise, and about 10% of the time we do back out installs, even though all the software to be installed went through rigorous unit and integration testing by Applications Development, followed by UAT testing by end-users, and Production Assurance testing by professional testers. So fielding trapdoors and logic bombs that work is not an easy task. Trapdoors can be periodically tested by an enemy, but logic bombs would be very hard to test in advance, and the constant churn of the IT infrastructure will mean that the half-life of trapdoors and logic bombs will most likely be on the order of several months or less. Just like all other production software, trapdoors and logic bombs require constant maintenance to keep them operational, and this is a great advantage to the defender.

On the other hand, the third law of software mayhem is to the advantage of an attacker because it means that it is possible to crash websites with botnet DOS (Denial of Service) attacks by simply overwhelming the website with 10 times its normal level of traffic. The good news is that DOS attacks require an active network of botnet PCs to maintain the necessary high levels of incoming traffic and this allows the defending website to do traceroutes on the incoming packets to find their source and possibly block their traffic. Also DOS attacks are much less damaging than trapdoors and logic bombs, since they primarily are used to bring down websites, but cannot affect the internal software used to run critical infrastructure like the electrical grid, air traffic control systems, financial and banking systems, nuclear power plants, refineries, chemical plants, and the phone systems.

Softwarephysics provides some additional insights into how to mount a cyber defense of a nation’s cyberspacetime. As we saw in Self-Replicating Information and The Fundamental Problem of Everything, the “real world” of human affairs is largely shaped by self-replicating information. It is all about the interplay of the self-replicating information found in genes, memes, and software, and with the fact that software is rapidly becoming the dominant form of self-replicating information on the planet. Since genes, memes, and software are all forms of self-replicating information, much can be learned about defending software against cyber-attacks by looking to the defense mechanisms of genes and memes. Since genes have been around much longer than memes, and consequently, have had much more time to evolve defense mechanisms against invasions by the foreign genes found in the DNA survival machines of bacteria, viruses, and parasites, softwarephysics would suggest starting there. In How to Think Like a Softwarephysicist, I explained that the solution to most IT problems can be found by looking to biology and adopting a biological approach, and this certainly applies to cyber defense as well. First of all, genes do not follow a strategy of “the best defense is a good offense” because genes, like the potential victims of a cyber-attack, do not know where the attacks by foreign genes will be coming from, so trying to take out the enemy in advance with a first strike is meaningless. Instead, genes create an immune system that constantly scans for potential attacks from foreign genes and focuses on defending critical biological infrastructure. Immune systems are composed of billions of specialized cells all working in parallel to defend an organism against invading foreign genes, and the same approach could be applied to the defense of software running in cyberspacetime.

In a similar manner, Richard Clarke suggests that the United States focus on defending a triad of critical infrastructure – the power grid, the Tier 1 ISP providers like AT&T, Verizon, Level 3, Qwest, and Sprint that form the backbone of the Internet, and the internal Department of Defense networks that carry sensitive military information. But how do you do that? Richard Clarke suggests that the power grid should be unplugged from the Internet. That means that a separate secured internal network, run by the Federal government, would need to be created to allow the software that electrical utilities use to communicate with each other for load balancing and the exchange of electrical generation capacity to operate. Disconnecting the electrical power grid from the Internet would make it much harder for cyber-attacks because it would eliminate the innumerable points of unsecured entry allowed by the Internet. If you have ever lost electrical power for an extended period, you know just how important electrical power is. I lost power for three days back in the 1980s when an ice storm hit the Chicago area in the middle of winter. It quickly takes you back to the 18th century with very dim candlelight and no central heat. I at least had natural gas to cook food with and a functional city water supply, but in a full-blown attack on the electrical grid, there would be no power to run the compressors that deliver natural gas in pipelines and no pumps to lift water in city water towers. There would be no gasoline to pump at service stations and very little food on grocery store shelves either. Clarke also recommends defending the core Tier 1 ISP providers by allowing them to do deep-packet scans of packets, looking for malware as the packets pass through their networks. Finally, Clarke recommends that the secured Department of Defense networks be totally isolated from the Internet and further hardened to prevent cyber-attacks upon these critical networks.

Use the Y2K Experience as a Guide
As IT professionals, we can all assist in cyber defense of our nations, since we are the ones on the front lines of defense. This is something the IT community can do. In many respects, it is much like the Y2K challenge of the late 1990s that the worldwide IT community successfully met. My son was born early in 1981, and later that year I was having a discussion with my stock broker about funding his college education. My broker explained that I could buy discounted stripped U.S. Treasury bonds for something like $125 that would pay out $1,000 in my son’s college years. Because inflation was raging at over 11% per year in those days, I could essentially lock in zero coupon bonds that were insured by the Federal government at a guaranteed rate of 12% interest and which could not be called before they matured in the far distant future. So I bought a bunch of stripped U.S. Treasury bonds that matured in 1999, 2000, 2001, and 2002. While I was on the phone with my broker, I commented that it seemed so strange to be talking about years like 2000, 2001 and 2002 because the both of us had only dealt with 20th century years like 1965 for our entire lives. When I got off the phone, I had one of those “uh-oh” moments, as I thought about all the code that I had written with two-digit years that read and wrote files containing dates like 101265 for October 12, 1965. Doing arithmetic in my code, like 65 – 51 = 14 years, worked just great in the 20th century, but would not work for 2002 – 1998 because 02 – 98 was going to yield -96 years instead of 4 years! That’s when the Y2K problem first hit me, but this was back in 1981, so I figured that somebody else would surely fix it all in the far distant future, so not to worry. Now scroll forward to late 1996. I got a call from Amoco’s first Y2K Czar asking me if I would like to join Amoco’s Y2K project. I had written Amoco’s Application Portfolio System with BSDE back in the mid-1980s, so I was familiar with collecting lots of data on Amoco’s systems, and that’s how I got drafted for the Y2K project. Amoco’s first Y2K Czar brought in a consulting company to scan our source code libraries and the initial scans revealed that we indeed had a very serious problem. Like all the other IT departments throughout the entire world, we had strewn our systems with millions of logic bombs all set to go off at the same time as we approached the year 2000. The consulting company we brought in racked up some pretty serious bills scanning our code, but unfortunately was totally clueless about how to fix the code because all of the affected systems were intimately tied together into a huge processing knot. You could not simply fix one system at a time because the systems exchanged data with each other via files and databases, so you had to carefully remediate groups of related systems at the same time and that required an intimate knowledge of the systems that the consulting company did not have. Meanwhile, our Y2K group could not get any help from the Applications Development groups because they were all just trying to survive through the day and were not thinking much past their next install weekend. Besides, our Y2K group had that pricy consulting company that was going to do all the work and fix everything for them! People were still pretty much in denial about the Y2K problem back in 1996. All along our first Y2K Czar kept telling our CIO that the glass was half full, but that we were making steady progress. But in 1997 the Y2K problem began to appear in the IT trade rags, and that got our CIO’s attention. Suddenly our CIO realized that his glass was not half full, it was actually half empty! So our first Y2K Czar was summarily terminated for cause and escorted from the building! Things were a little tense back in those days on the Y2K projects around the world. A few blocks away from Amoco’s headquarters, at CNA insurance, two members of their Y2K team got into a fistfight outside of an elevator and were immediately terminated under CNA’s zero-tolerance policy! Amoco’s second Y2K Czar came in with both barrels blazing. He immediately fired the old consulting company and hired one of the big-gun consulting companies to take its place and come in and finish (really start) the job. Suddenly there were hundreds of young kids swarming all over our Applications Development groups trying to apply the consulting company’s brand-new Y2K methodology. The burn rate for this effort was a little over $2 million/month, and after a few months of that, our CIO decided that our second Y2K Czar should take early retirement. Amoco’s third Y2K Czar came in with a completely different attitude. Instead of charging off in a mad rush in the arms of a consulting company, we spent about a month just sitting around trying to figure out how we could get ourselves out of this mess all by ourselves, without using consulting companies at all. By then we had figured out that the consulting companies really did not know how to fix the Y2K problem at all. Out of these brain-storming sessions we developed an overall strategy to push the Y2K problem down to the grass-roots level of the Applications Development groups within Amoco because they were the only ones who knew Amoco’s systems. So we split up Amoco along its subsidiary lines. I had the Amoco Corporation holding company and its Amoco Production Company subsidiary, for a total of about one third of Amoco’s total number of applications. I had about a dozen Y2K sub-coordinators under me and each of them had a Y2K sub-coordinator under them in each of the Applications Development groups. Our Y2K group then set up the policies and procedures to do the Y2K remediation of Amoco’s software and provided the tools to do the work, but it was the responsibility of each Applications Development group to remediate the software that they supported. One of the tools our Y2K group provided was a database application to keep track of the Y2K remediation efforts for each application. The first thing we did was to classify each application by criticality – High, Medium, or Low and then to focus on the High and Medium applications first. For Y2K certification testing we created a mainframe LPAR and a Y2K lab filled with Unix and Windows servers. Applications were then run through a 2 week flight in the Y2K lab in which we ran the remediated software through a series of 32 critical dates by changing the system clocks on the mainframe LPAR and the Unix and Windows servers. The first date was for the infamous January 1, 1999 or “010199” problem. You see lots of programmers came up with the brilliant trick of using a year date of “99” to signify something special, like the last record in a file, so we had to test for that condition. Naturally, the date January 1, 2000 (010100) was in the list of dates. This new Y2K strategy of Amoco doing its own Y2K remediation and using Applications Development to do the work in a massively parallel manner really worked and Amoco finished up its Y2K remediation by early 1999, just in time for its take over by BP! Again, doing things in a massively parallel manner is a hallmark of taking a biological approach to solve IT problems as outlined in How to Think Like a Softwarephysicist.

So I think there are some lessons that can be learned from the worldwide Y2K effort of the past decade that can be applied to defending against a cyber-attack. First, the nations of the world should set the agenda by defining a national cyber defense policy for dealing with cyber-attacks upon their citizens. This would include raising the awareness of their native IT community to the dangers of cyber-attacks upon the nation and providing defensive software weapons where possible. But ultimately the work needs to be pushed down to the IT professionals of each nation who know and live with the national software infrastructure on a daily basis, especially Applications Development, Operations and IT Security. Just as few IT professionals were thinking about the Y2K problem in 1996, very few IT professionals today are worrying about defending their nation against a worldwide cyber war.

In the meantime, there are a few things we can all do to help defend against cyber-attacks. First of all, as in any dangerous urban situation, be aware of your surroundings and be suspicious of strange behaviors. For example, back in the early 1980s, Amoco sent me out to Denver to convince the manager in charge of the Accounting Department for the Amoco Pipeline company to migrate his accounting processing from the Data General minicomputers that he had in Denver to the Amoco Corporate Timesharing System running on VM/CMS. Amoco was paying a fortune to rent these old Data General minicomputers, and I showed him how he could save a bundle by migrating to the Corporate Timesharing System. For me, it was a real no-brainer decision, like can you tell the difference between a big number and a little number, but no matter how I tried, I just could not convince the manager to migrate his processing. Several years later I learned that the accounting manager had been arrested for arson! Apparently, he had been using the Data General minicomputers to cook the books and embezzle funds from Amoco. He was facing an audit of the Data Generals and got the brilliant idea to set his data center on fire with an incendiary device to burn up the Data Generals and their data. Luckily, the incendiary device failed. So when things don’t seem to make sense, be suspicious of sabotage and contact your IT Security department. Many IT professionals in Applications Development and Operations tend to view IT Security as more of a nuisance than an ally. After all, there is nothing worse than being called into a conference call for an outage, only to find that you cannot login to a server or that your sudo access to production IDs is no longer working because of an IT Security problem. For some reason, the people on the conference call still seem to blame you for not being able to login and fix the problem. But we really need to work with IT Security if outsiders are planting trapdoors and logic bombs in the software we support. So be vigilant and practice good IT security hygiene. Be sure to change your passwords frequently, make sure that your hard drive is encrypted, ensure that the Unix permissions on your files are restricted to allow no more access than is essential, watch for strange executables in your production libraries or updated versions of executables that seem to appear outside of normal install operations, don’t kill the weekly virus scans of your work PC even though they slow down your work when you are under the gun, when designing applications think hard about security and take seriously the idea of a foreign nation assaulting your code, help your IT Security department conduct penetration tests and vulnerability scans of your servers, and be sure to alert your IT Security department whenever you are suspicious of foul play. These are all good IT practices, and since defending your company or organization against a national cyber-attack also defends against cyber-crime, your employer should be very supportive of your efforts.

Comments are welcome at scj333@sbcglobal.net

To see all posts on softwarephysics in reverse order go to:
https://softwarephysics.blogspot.com/

Regards,
Steve Johnston