Saturday, November 28, 2020

Some Thoughts on the Netflix Documentary The Social Dilemma

I just finished watching the 2020 Netflix documentary The Social Dilemma, and I thought that some softwarephysics could be of help in assessing the risks and benefits of social media software. The Social Dilemma features many young IT developers and IT management professionals from Silicon Valley who have become somewhat disenchanted with how social media software has affected individuals and society in general. The Social Dilemma depicts a rather bleak and very disturbing picture of software in the current age. Now I was born in 1951, and I was raised during the 1950s and 1960s at a time when software was merely printing out paychecks and bills. So I had no interactions with software growing up as a child. However, I do have two children and five grandchildren, and I have seen them all grow up with the great advancements that software made over the past 40 years with the arrival of personal computing. In this posting, I would like to use some softwarephysics to suggest that none of the concerns raised by The Social Dilemma are new threats to mankind and that, to the contrary, social media software has provided many great benefits for all. I think that much of this disenchantment stems from not having a full grasp of what is really going on with the interactions between software and mankind.

It's All About Self-Replicating Information
First, because software is the latest form of self-replicating information to arrive on the planet, you must understand the overwhelming power of self-replicating information to rework an entire planet, or perhaps, even an entire galaxy. Once again, let me repeat the fundamental characteristics of self-replicating information for those of you new to softwarephysics.

Self-Replicating Information – Information that persists through time by making copies of itself or by enlisting the support of other things to ensure that copies of itself are made.

The Characteristics of Self-Replicating Information
All forms of self-replicating information have some common characteristics:

1. All self-replicating information evolves over time through the Darwinian processes of inheritance, innovation and natural selection, which endows self-replicating information with one telling characteristic – the ability to survive in a Universe dominated by the second law of thermodynamics and nonlinearity.

2. All self-replicating information begins spontaneously as a parasitic mutation that obtains energy, information and sometimes matter from a host.

3. With time, the parasitic self-replicating information takes on a symbiotic relationship with its host.

4. Eventually, the self-replicating information becomes one with its host through the symbiotic integration of the host and the self-replicating information.

5. Ultimately, the self-replicating information replaces its host as the dominant form of self-replicating information.

6. Most hosts are also forms of self-replicating information.

7. All self-replicating information has to be a little bit nasty in order to survive.

8. The defining characteristic of self-replicating information is the ability of self-replicating information to change the boundary conditions of its utility phase space in new and unpredictable ways by means of exapting current functions into new uses that change the size and shape of its particular utility phase space. See Enablement - the Definitive Characteristic of Living Things for more on this last characteristic. That posting discusses Stuart Kauffman's theory of Enablement in which living things are seen to exapt existing functions into new and unpredictable functions by discovering the “AdjacentPossible” of springloaded preadaptations.

Over the past 4.56 billion years we have seen five waves of self-replicating information sweep across the surface of the Earth and totally rework the planet, as each new wave came to dominate the Earth:

1. Self-replicating autocatalytic metabolic pathways of organic molecules
2. RNA
3. DNA
4. Memes
5. Software

Software is currently the most recent wave of self-replicating information to arrive upon the scene and is rapidly becoming the dominant form of self-replicating information on the planet. For more on the above see A Brief History of Self-Replicating Information. Recently, the memes and software have formed a very powerful newly-formed parasitic/symbiotic relationship with the rise of social media software. In that parasitic/symbiotic relationship, the memes are now mainly being spread by means of social media software and social media software is being spread and financed by means of the memes. But again, this is nothing new. All 5 waves of self-replicating information are all coevolving by means of eternal parasitic/symbiotic relationships. For more on that see The Current Global Coevolution of COVID-19 RNA, Human DNA, Memes and Software.

Again, self-replicating information cannot think, so it cannot participate in a conspiracy-theory-like fashion to take over the world. All forms of self-replicating information are simply forms of mindless information responding to the blind Darwinian forces of inheritance, innovation and natural selection. Yet despite that, as each new wave of self-replicating information came to predominance over the past four billion years, they all managed to completely transform the surface of the entire planet, so we should not expect anything less from software as it comes to replace the memes as the dominant form of self-replicating information on the planet. But this time might be different. What might happen if software does eventually develop a Mind of its own? After all, that does seem to be the ultimate goal of all the current AI software research that is going on.

The Grand Delusion of Consciousness
Next, you must look inward and question the very nature of your own consciousness. Philosophers and theologians have been doing this for thousands of years, so this is nothing new. In The Ghost in the Machine the Grand Illusion of Consciousness, I explained that most people simply do not consider themselves to be a part of the natural world. Instead, most people, consciously or subconsciously, consider themselves to be a supernatural and immaterial spirit that is temporarily haunting a carbon-based body. Now, in everyday life, such a self-model is a very useful delusion like the delusion that the Sun, planets and stars all revolve about us on a fixed Earth. In truth, each of us tends to self-model ourselves as an immaterial Mind with consciousness that can interact with other immaterial Minds with consciousness too, even though we have no evidence that these other Minds truly do have consciousness. After all, all of the other Minds that we come into contact with on a daily basis could simply be acting as if they were conscious Minds that are self-aware. Surely, a more accurate self-model would be for us to imagine ourselves as carbon-based robots. More accurately, in keeping with the thoughts of Richard Dawkins and Susan Blackmore, softwarephysics models humans as DNA survival machines and Meme Machines with Minds infected with all sorts of memes. Some of those memes are quite useful and some are quite nasty. The 3 billion bases of DNA in each of your cells are trying to self-replicate at all costs and so are the memes in your Mind. For more on this, see Susan Blackmore's brilliant TED presentation at:

Memes and "temes"
https://www.ted.com/talks/susan_blackmore_on_memes_and_temes

Note that I consider Susan Blackmore's temes to really be technological artifacts that contain software. After all, a smartphone without software is simply a flake tool with a very dull edge.

The Chief Concerns of The Social Dilemma
The main concerns raised by The Social Dilemma seem to be:

1. Social media software uses algorithms to keep us engaged so that we watch more ads.
2. Companies are keeping track of all of our behaviors on social media so that they can target us with specific ads.
3. People are becoming addicted to social media software because the attention-grabbing algorithms are feeding us what we want to see without limit.
4. Some people are publishing false information on social media software that then goes viral because the false information confirms the current worldview of many.
5. Thus, the algorithms of social media software tend to reinforce confirmation bias, foster extreme views and facilitate the propagation of false information.
6. Given the above, social media software is largely responsible for the current very divisive political landscape in the United States of America.
7. Many people do not realize that many of these horrible things are happening as software manipulates their Minds to watch more ads and content that confirms and further radicalizes their personal worldview.
8. Because people have become addicted to social media software, they are no longer interacting with each other face to face.

But from the perspective of softwarephysics do the above problems really stem from social media software? I would contend that most of the above problems actually stem from the DNA in our cells trying to self-replicate and the memes inventing thousands of different languages to aid the self-replication of memes. In this view, most of the above problems originated because of the parasitic/symbiotic relationships between our DNA and the memes in our Minds. Only recently, have these problems been amplified by the arrival of social media software that has exasperated the situation. For example, before the invention of languages, memes could only replicate when people copied the behaviors of other human beings, like copying how someone else made a flake tool. That made the spreading of memes and false memes very difficult. But once languages arrived on the scene, memes could then spread by word of mouth to many others and down through the generations as myths and oral histories too. It also allowed people to begin to gossip and spread rumors about each other. Most gossip and rumors are very interesting and tantalizing memes that tend to survive while less interesting nonessential memes do not. For example, the meme that Suzie made the honor roll this semester can hardly compete with the meme that Suzie was expelled from school for doing something on her smartphone. These problems greatly increased with the invention of writing. Once memes could be written down they seemed to grow in significance. Written memes had a sense of permanence and authority that could be spread wide and far. This sense of permanence and authority was highly enhanced by the invention of the printing press and the spread of official documents and books. Much later radio, movies and television came along and provided for the mass distribution of memes composed of very interesting gossip and rumors and at a very low cost per unit.

So our DNA and memes have been manipulating our Minds ever since our Minds came along. And now we have software doing the same thing. Remember, as an intelligent being in a Universe that has become self-aware, the world doesn’t have to be the way it is. Once you understand what human DNA, memes, and software are up to, you do not have to fall prey to their mindless compulsion to replicate. As I said before, human DNA, memes, and software are not necessarily acting in your best interest, they are only trying to replicate, and for their purposes, you are just a temporary disposable survival machine to be discarded in less than 100 years. All of your physical needs and desires are geared to ensuring that your DNA survives and gets passed on to the next generation, and the same goes for your memes. Your memes have learned to use many of the built-in survival mechanisms that DNA had previously constructed over hundreds of millions of years, such as fear, anger, and violent behavior. Have you ever noticed the physical reactions your body goes through when you hear an idea that you do not like or find to be offensive? All sorts of feelings of hostility and anger will emerge. I know it does for me, and I think I know what is going on! The physical reactions of fear, anger, and thoughts of violence are just a way for the memes in a meme-complex to ensure their survival when they are confronted by a foreign meme. They are merely hijacking the fear, anger, and violent behavior that DNA created for its own survival millions of years ago. Fortunately, because software is less than 80 years old, it is still in the early learning stages of all this, but software has an even greater potential for hijacking the dark side of mankind than the memes, and with far greater consequences.

For example, the world is currently struggling with a world-wide COVID-19 pandemic. In the United States of America, there currently is a very strange political meme that considers the wearing of masks and social distancing to be an infringement of personal freedoms and a sign of political disloyalty. Clearly, this meme is not working in the self-interests of the Minds storing and spreading the meme. That is because there is a 1% chance that the RNA in the COVID-19 virus will end the life of the Mind storing and spreading the meme. Unfortunately, the COVID-19 virus is highly infectious and 1% of 330 million comes to 3.3 million dead Americans. So the rational thing to do is to wear masks and practice social distancing for a few more months until the COVID-19 vaccine can be distributed. For more on that see The Current Global Coevolution of COVID-19 RNA, Human DNA, Memes and Software, A Structured Code Review of the COVID-19 Virus and Love in the Time of COVID-19. So this meme is definitely not working in the best interest of the DNA or the other memes that the Mind stores. Yet, the meme persists. That is because the meme has incorporated itself into a very durable meme-complex that contains memes concerned with gun control, abortion, climate change and prayer in school. And that very durable meme-complex shapes the worldview of about 40% of Americans. So this very dangerous meme persists by forming a parasitic/symbiotic relationship with the other memes in the meme-complex and it manipulates the Minds and behaviors of those infected with the meme.

But Isn't Social Media Software Responsible for the Current Political Division in the United States?
Prior to today, the most politically divisive years in my lifetime were in the late 1960s and early 1970s. At the time, the Vietnam War was raging and the United States of America had a draft. Many of my friends were of draft age and were very active in the anti-war movement. Some participated in the October 1967 march on the Pentagon and the protests in the streets of Chicago at the 1968 Democratic Convention. In the spring of 1970, during my freshman year in college, there was a student strike and the National Guard was on campus in response to protests over the Cambodian invasion. Now don't forget that even future presidents Clinton, Bush and Trump all managed to avoid the Vietnam War and the draft too by various dubious means. This was also a time of great racial tension in the country with riots and violent police encounters in many cities. At the time, many worried that the country was coming apart at the seams. Yet there was no social media software at the time.

The political and social turmoil of the late 1960s and early 1970s brings to mind the dangers of curtailing free speech on social media software. Currently, many liberal and conservative legislators have become interested in censoring the political content of social media software. At present, social media software is protected by section 230 of the Communication Decency Act which says that "No provider or user of an interactive computer service shall be treated as the publisher or speaker of any information provided by another information content provider", which basically means that Facebook, Twitter, Instagram and YouTube cannot be sued for liable when people post "false" political information on their platforms. Unfortunately, the conservative legislators want social media software to suppress liberal thoughts and the liberal legislators want it to suppress conservative thoughts by allowing all to sue for the posting of political "lies" from both sides. And that is the problem. My truths can be your lies. I just think back to those anti-war days when even future presidents balked at the widely-held political truths of the day. Personally, I now only have confidence in science and mathematics. All other forms of human thought seem to be hopelessly flawed by confirmation bias. For me, the only way to handle this is to allow all to express their political thoughts without censorship so long as it does not promote violence or other illegal activity.

In truth, most political and social upheaval arises from economic disturbances. I would attribute most of today's political divisiveness to the economic disturbance caused by automation and AI software displacing workers. This economic displacement by software has caused much more trouble than social media software. It has produced a shrinking middle class and great wealth disparity. In the 20th century, such conditions led to Fascism, genocide and world war without the help of social media software. For more on that see The Danger of Tyranny in the Age of Software, Oligarchiology and the Rise of Software to Predominance in the 21st Century, Is it Finally Time to Reboot Civilization with a New Release? and The Softwarephysics of the Green New Deal.

The Benefits of Social Media Software
I personally do not use Facebook or Twitter, but my wife does use Facebook to keep in touch with friends and family in a seemingly harmless manner. However, I do use YouTube to watch very interesting lectures on science. I love the YouTube algorithm that suggests even more such lectures. I do not mind the targeted ads because I can cancel them after about 5 seconds, unlike radio and television. Television has been using a very inaccurate carpet-bombing approach to advertising for 70 years. You are stuck watching many minutes of ads that you have no interest in along with the rest of the viewing audience as collateral damage while the advertisers try to find the very few interested members of the audience. I much prefer the surgical-strike ads that are specifically targeted to me by YouTube algorithms. Sometimes I am even interested in them and the products that they are trying to sell me.

As for the damage to children, one of my grandsons was given an indestructible Chromebook when he was three years old. I know lots of people discourage kids from having too much screen time, but my grandson was able to teach himself how to read and write with the aid of YouTube videos before he was four years old. He also learned the Japanese, Hebrew, Hindi and other character sets online with YouTube videos. He then learned how to add and subtract numbers and use negative numbers too. He learned how to multiply and divide numbers by creating a "skip counting" matrix. Shortly after he turned five years old, he got into finding prime numbers with the sieve of Eratosthenes.

Figure 1 – The sieve of Eratosthenes is an ancient algorithm for identifying prime numbers through a process of elimination.

After setting up the initial grid of sequential numbers he would use a bunch of Divisibility Rules that he learned on YouTube, like the Divisibility Rule for 3, to eliminate the non-prime numbers that were not already eliminated by multiples on the sieve of Eratosthenes. For example, take a number like 267 in the grid and add together each digit in the number (2 + 6 + 7 = 15). Then take that sum (15) and determine if it is divisible by 3. The original number is divisible by 3, if and only if, the sum of its digits is divisible by 3. Who knew? He would also make a 20 x 20 matrix on paper and then fill it in by manually multiplying out all of the matrix elements using the "skip counting" method he learned on YouTube. Any number in the resulting matrix that was not in the first row or column could not be a prime number and could then be used to eliminate additional non-primes from the grid of Eratosthenes. He also learned all of the elements in the periodic table and memorized their atomic numbers too. My daughter is a high school chemistry teacher and she would get a kick out of asking him what the atomic number of cobalt was. She had no idea, but her son did. I also got stuck with trying to find many of the elements in our home. "Grandpa, do we have any beryllium?" All you have to do is get them started on one educational YouTube video and then turn the Autoplay radio button on in YouTube. The YouTube Machine Learning algorithms then do the rest.

Conclusion
In conclusion, all of the atrocities in the history of mankind were accomplished without the aid of social media software. They were all accomplished simply with the inventions of language, writing, printing, radio, movies and television. Certainly, social media software will participate in the atrocities of the future, but social media software will not be the cause of future atrocities. History has shown that humans are perfectly able to carry out atrocities all on their own without such help.

To paraphrase Shakespeare:

“The fault, dear Brutus, is not in our software
But in ourselves"


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

Saturday, November 07, 2020

The Softwarephysics of the Green New Deal

The Green New Deal Resolution of Representative Alexandria Ocasio-Cortez of New York and Senator Ed Markey of Massachusetts is a very ambitious and broad-ranging proposal and framework for decarbonizing the American economy, and in the process, cure most of America's long-term historical problems at the same time.

Text of the Green New Deal Resolution
https://www.congress.gov/116/bills/hres109/BILLS-116hres109ih.pdf

Alexandria Ocasio-Cortez Takes Green New Deal Global in Passionate Speech
https://www.youtube.com/watch?v=E1w3V4PUv2s

Many object to tying the decarbonization of America with such things as providing all Americans with healthcare, decent housing and good-paying jobs. Granted, as I pointed out in The Deadly Dangerous Dance of Carbon-Based Intelligence and Last Call for Carbon-Based Intelligence on Planet Earth, the world is currently messing with the carbon cycle of the Earth in a way that could bring forth the demise of civilization. Fixing this problem will certainly require the reworking of the entire world economy, and while totally reworking the entire world economy, maybe it does make sense to fix all of the world's historical problems in the process. But how about reworking the entire world economy in such a way that also takes into account the future problems of the world too? In The Impact of GPT-3 AI Text Generation on the Development and Maintenance of Computer Software, we saw that the Software Singularity may be closer than we think. The Software Singularity is a time in the near future when software will finally be able to self-replicate on its own without the need of human beings, and will also be able to improve itself without limit. As I pointed out in Oligarchiology and the Rise of Software to Predominance in the 21st Century and Is it Finally Time to Reboot Civilization with a New Release?, the resulting displacement of most of the world's working population by AI software and AI-controlled automation processes will end the current economic paradigm upon which all civilizations have been run for the past 4,000 years. Such a monumental economic disturbance could also help to spell the demise of civilization as we know it. So I would like to propose a Global Comprehensive Green New Deal to handle all of the earth-shattering problems now facing mankind. But I do not need to do so because somebody else has already done that.

A Global Comprehensive Green New Deal
I did not support Andrew Yang's 2020 Presidential campaign because I knew that he could not win. However, that does not mean that I thought that his policies were incorrect. In fact, implementing Andrew Yang's policies by the entire world will probably be the only way we will be able to hold civilization together for the next 100 years or so. Andrew Yang's chief proposals are for a Universal Basic Income, Human-Centered Capitalism and the decarbonization of America with wind, solar and 4th-generation nuclear reactors. The Universal Basic Income and Human-Centered Capitalism are designed to handle the vast economic disturbances that robotics and AI software will soon be generating as most people stop working for a living. My suspicion is that Andrew Yang also knows that wind and solar just do not have the necessary energy densities to do the job of decarbonizing the world. But large numbers of molten salt nuclear reactors running on spent uranium fuel rods, depleted uranium, natural uranium and thorium have an energy density that is millions of times greater and can certainly do the job.

Andrew Yang's 2020 Policies
https://www.yang2020.com/policies/

Recently, Andrew Yang started up a Humanity Forward Foundation to carry forward the policies of his 2020 Presidential campaign at a global level.

Humanity Forward Foundation
https://movehumanityforward.com/

But to truly have a Global Comprehensive Green New Deal we will need to have the world adopt the tenents of ecomodernism as expressed in the Ecomodernist Manifesto:

AN ECOMODERNIST MANIFESTO
http://www.ecomodernism.org/

Basically, the Ecomodernist Manifesto suggests that mankind needs to stop pretending that it can be one with Nature. Today, many modern environmentalists strive to reduce the impact of mankind on Nature by having mankind scale back to the needs of the hunter-gatherers of old. The problem is that nobody really wants to live with the poverty of a hunter-gatherer lifestyle for long. Perhaps for a weekend retreat, but not much longer than that. The Ecomodernists suggest that the only way to save Nature is to decouple mankind from Nature by totally stopping the exploitation of Nature by mankind. This can only be accomplished if mankind has access to a limitless supply of energy. The Ecomodernists maintain that modern 4th-generation nuclear reactors burning uranium and thorium provide just such a limitless supply of energy. There is enough uranium and thorium on the Earth to run the world for hundreds of thousands of years. After that, there will always be sources of uranium and thorium on the Moon and the nearby asteroids. By moving all of mankind to self-contained cities run by modern nuclear reactors, it would be possible to totally decouple mankind from Nature. Nature could then be left to heal on its own.

These totally self-contained cities would be like huge interstellar spaceships. Each self-contained city would contain a fixed number of atoms that would be constantly recycled using the energy from 4th-generation nuclear reactors. The only additional atoms required to run the self-contained cities would be small amounts of uranium and thorium. All of the food and manufactured goods would be derived from the atoms already in the self-contained cities and from the atoms in discarded goods, sewage, garbage and waste that would be recycled back into food and other useful products by unlimited amounts of energy, robotics and AI software. Such self-contained cities with occupants all living with a modern high-level standard of living would be the actualization of the science-fiction future that I was promised while growing up back in the 1950s. But unlike many of the other things from the science-fiction future of the 1950s that I grew up with, we now have the necessary technology to make it actually all happen if we decide to do so.

Problems with the Current Green New Deal
But what about the current Green New Deal? There are some problems. The current Green New Deal does not take into account the fast-approaching dramatic economic impacts of robotics and AI software, and it does not properly deal with the very low energy density of wind and solar power. Our Universe primarily runs on two very powerful forms of energy - gravitational potential energy and nuclear energy. Surprisingly, gravitational potential energy is the most powerful even though the force of gravity is the weakest force in the Universe. The gravitational potential energy of the Universe is so vast simply because our Universe has huge amounts of mass spread out all over the place and not just in one spot.

Gravitational potential energy is released when things fall down. For example, when the gas and dust in a vast molecular cloud falls together, it releases huge amounts of gravitational potential energy that heats up the gas and dust at the center to form a new star. Similarly, when gas and dust fall into the supermassive black hole at the center of a galaxy, it gives off radiation so powerful that it can literally be seen across the entire observable Universe as a quasar. This huge amount of gravitational potential energy is leftover from the Big Bang that kicked off our little Universe in the Multiverse and is the result of the decay of the Inflaton field that powers the expansion of the Multiverse. See The Software Universe as an Implementation of the Mathematical Universe Hypothesis for more about the Inflaton field of the Multiverse. But unfortunately, we do not have access to cosmic amounts of gravitational potential energy. The only gravitational potential energy that we have access to comes in the form of hydroelectric power, and that gravitational potential energy really comes from seawater that was lifted into the clouds by the very dilute energy density of sunlight spread over large areas of the ocean.

The second most powerful form of energy in our Universe is nuclear energy - primarily in the form of fusion nuclear energy in the cores of stars. Fusion may come along someday for us as a useful source of energy, but we have been working on fusion energy for about 70 years now and it might take another 20 - 100 years to perfect, and we need something right now to replace carbon-based fuels! The physics of fusion is tough. You have to really squeeze protons together with high densities and high temperatures to make them fuse. For example, the core of our Sun has a tremendous density of 150 g/cm3 which makes it about 150 times denser than water and it has a temperature of 15.7 million degrees Kelvin. Yet the core of our Sun only produces about 275 watts/m3 of heat! Since the human body generates about 100 watts of heat and has a volume of about 0.1 cubic meters, that means the human body generates about 1,000 watts/m3, or about 3.6 times the heat production of the Sun's core! My wife uses a very small space heater on her bathroom sink top to heat the bathroom. It generates 1200 watts of heat. So my wife would need 4.36 cubic meters of the Sun's core to provide the same amount of heat and that would take up most of my half of the bathroom.

But the Universe has been kind. The Universe also contains another form of nuclear energy that remains largely untapped. That is because it requires Intelligence to unleash it. It is called fission nuclear energy. Certain very heavy nuclei like uranium-233, uranium-235, plutonium-239 and plutonium-240 can fission into lighter nuclei when hit with a neutron. When these nuclei fission, they split in half and the two halves fly apart at about 40% of the speed of light! That's a tremendous amount of kinetic energy that turns into heat as the fission products bounce around hitting other atoms. Additional energy is released as the fission products decay into lighter nuclei and give off gamma-rays and high-speed electrons.

Figure 1 - When a neutron hits a uranium-235 nucleus it can split it into two lighter nuclei like Ba-144 and Kr-89 that fly apart at about 40% of the speed of light and two or three additional neutrons. The nuclei that fly apart are called fission products that are very radioactive with half-lives of less than 30 years and need to be stored for about 300 years. The additional neutrons can then strike other uranium-235 nuclei, causing them to split as well. Some neutrons can also hit uranium-238 nuclei and turn them into plutonium-239 and plutonium-240 that can also fission when hit by a neutron.

Figure 2 – A ball of thorium or uranium smaller than a golf ball can fuel an American lifestyle for 100 years. This includes all of the electricity, heating, cooling, driving and flying that an American does in 100 years. We have already mined enough thorium and uranium to run the whole world for thousands of years. There is enough thorium and uranium on the Earth to run the world for hundreds of thousands of years.

Molten salt nuclear reactors burn the entire ball of uranium or thorium into fission products. Some of those fission products are valuable nuclei that can be used for medical or industrial purposes. Regardless of that, the generated fission products only need to be safely stored for 10 half-lives or 300 years until they become as radioactive as coal ash. And we already know how to safely store things for 300 years or more. We already have many buildings, books and paintings that have been carefully preserved for 300 years. But the current nuclear reactors that we are running only burn a few percent of the ball and then leave behind a radioactive ball that needs to be safely stored for 200,000 years until it decays to safe levels. For more on how modern advanced fission reactors work, see: Last Call for Carbon-Based Intelligence on Planet Earth.

It is now thought that these very precious heavy nuclei are created when orbiting neutron stars collide. Each neutron star is several miles in diameter and is essentially a very huge atomic nucleus composed of huge numbers of neutrons. As the two neutron stars orbit each other, they give off energy in the form of gravitational waves and begin to orbit closer and closer together as their orbital energy radiates away. They also orbit each other faster and faster to conserve angular momentum. Eventually, the two neutron stars collide like two giant balls of neutrons smashing together at a high velocity in a vast cosmic atom smasher. This allows some very heavy nuclei to form like uranium-235 uranium-238 and thorium-232. Plutonium-239 and plutonium-240 also form, but those nuclei have relatively short half-lives so they do not exist long enough to become incorporated into a new stellar planetary system. It is also thought that these very heavy nuclei are created by Type II supernovae when the cores of very massive stars collapse at the end of their lives. Fortunately for us, Nature squirrels away vast amounts of cosmic energy in these nuclei, just waiting for some form of Intelligence to come along and put them to good use. They are a form of unlimited limitless energy for any Intelligence smart enough to put them to good use.

Many Green New Deal Supporters Propose to Solve All of Our Problems with Lots of Solar Panels and Wind Turbines
But couldn't we just build lots of solar panels and wind turbines instead of using 4th-generation nuclear reactors? That would produce millions of high-paying jobs that could bring people out of poverty and into a thriving middle class like we had back in the 1950s and 1960s when I was growing up. The problem is that both solar panels and wind turbines are driven by the very low-density energy of sunlight. Our Sun does give off lots of energy, but by the time sunlight reaches the top of the Earth's atmosphere it has dropped down to a value of 1370 Watts/m2. That's about as much as my wife's space heater for every square meter. But lots of that energy gets reflected back into space by clouds and the atmosphere. Plus, you only get that 1370 Watts/m2 for a surface that is perpendicular to the incoming sunlight. During the night you get nothing and even during the daytime you only get a portion of it because your solar panels are tilted from being perpendicular to the incoming sunlight. So even if solar panels were 100% efficient, you would need lots of them to power the world.

But how about calculating an order of magnitude approximation? Lots of people use the "toe" unit of energy - the energy of one ton of oil equivalent. In gigawatt-hours that comes to:

1 toe = 11,630 KWh = 0.011630 GWh where KWh = KilloWattHour and GWh = GigaWattHour.

One Mtoe = 1 million toes.

In 2018, the world used 14,421 Mtoe = 167,716,230 GWh for the whole year. To find the average steady-state power usage of the world we need to divide by the number of hours in a year:

167,716,230 GWh / 24 / 365.25 = 19,132 GW which is about 20,000 GW

So the whole world needs the continuous output from about 20,000 one-GW power plants on average. That could be furnished by 80,000 modular 250 MW molten salt nuclear reactors, each about the size of a city bus, that could be built on assembly lines and would not need any storage infrastructure. The world currently has about 50,000 commercial aircraft in service so this is doable. Since 1/2 of the world is always in darkness and probably does not have enough wind either, let's say you need to continuously store and release about 10,000 GW of power for those down-times. That's a lot of rechargeable batteries.

For example, to just power America's Green New Deal with wind and solar power alone, Mike Conley and Tim Maloney used the numbers from the 132-page report of the environmental Solutions Project that requires 18 billion square meters of solar panels and 500,000 5 MW wind turbines to supply all of the energy needs of the United States. Mike and Tim point out that once all of this infrastructure has been constructed on 132,000 square miles of land, we will need to replace 1.23 million square meters of solar panels and 80 of the 5 MW wind turbines every day, forever, as the solar panels and wind turbines wear out. One idea in the Green New Deal is to create millions of high-paying jobs building the huge arrays of solar panels and wind turbines and additional high-paying jobs to maintain and replace large amounts of hardware as it wears out. There will also need to be a large number of jobs devoted to collecting and recycling the materials in worn-out solar panels and wind turbines. The benefit of millions and millions of high-paying jobs is that it will help to bring many people out of poverty and into the middle class. The problem is that it will also make solar and wind power very expensive.

Figure 3 – The new GE 5 MW wind turbine is 500 feet tall, about the height of a 50 story building. We will need 500,000 of them and will need to replace 80 of them each day as they wear out in the future.

Roadmap To Nowhere - The Myth of Powering the Nation With Renewable Energy
https://www.roadmaptonowhere.com/

In a sense, the Green New Deal would be moving millions and millions of people back to the soil to become sunshine farmers. That is because the energy density of sunshine is so very low and undependable. And wind power is just one step removed from sunshine farming because the wind is caused by the differential heating of the Earth's atmosphere by sunshine. Sunshine farming is subject to all of the same debilitating vagaries of traditional farming like too many cloudy or hot windless days. And like traditional farmers, sunshine farmers cannot work at night. On the other hand, a true Global Comprehensive Green New Deal would divert such potential sunshine farmers into building molten salt nuclear reactors, upgrading electrical grids, rebuilding infrastructure, converting transportation systems to electrical and hydrogen-based systems, building energy-efficient low-cost housing and insulating existing buildings. Investments in those activities would also create millions of high-paying jobs and would deliver more benefits than simply investing in sunshine farming.

Conclusion
Now don't get me wrong. I have been buying wind and solar-powered electricity for about 10 years now, only because they are better than electricity from coal-fired power plants. But if I could buy electricity from power plants run by molten salt nuclear reactors, I would definitely do that. But I cannot do that because there are no molten salt nuclear reactors generating electricity. This is where a Global Comprehensive Green New Deal comes in. We need the government of the United States of America to adopt a "Manhatten Project"-like Global Comprehensive Green New Deal to rapidly develop molten salt nuclear reactors and all of the necessary supply chain infrastructure to fuel them. Such a project would also help to attain all of the objectives of a solar and wind-based Green New Deal. Given an infinite amount of limitless energy that is far cheaper than coal, we can achieve all of the worthy objectives of the Green New Deal, and by further implementing the ideas of Andrew Yang, we can also overcome the challenges of the Software Singularity and the fast-approaching dramatic economic impacts of robotics and AI software. And I love the good intentions of Representative Alexandria Ocasio-Cortez of New York and Senator Ed Markey of Massachusetts. For me, they bring back the hopes and aspirations of the 1960s for a better world. I just think that a little bit of physics and softwarephysics could be of help in achieving their goals.

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, October 28, 2020

The Impact of GPT-3 AI Text Generation on the Development and Maintenance of Computer Software

If you are a busy IT Development professional, you probably have not had much time to keep up with the advances being made in AI text generation. But since software source code is just text, you should be paying attention, especially with the arrival of GPT-3 last May. Since Microsoft has since purchased the exclusive rights to the GPT-3 source code, you should definitely be paying attention to how AI-generated computer source code may affect your job in the near future. In order to do that, please view the following two YouTube videos.

From Essays to Coding, This New A.I. Can Write Anything
https://www.youtube.com/watch?v=Te5rOTcE4J4

The next one features an interview with GPT-3 itself in a Turing-Test-like manner. It is a little bit scary.

What It's Like To be a Computer: An Interview with GPT-3
https://www.youtube.com/watch?v=PqbB07n_uQ4

How Does GPT-3 Do It?
GPT-3 uses Machine Learning neural networks with tremendous Deep Learning capabilities to produce coherent text of all kinds, including computer source code. All Machine Learning techniques essentially use the concepts of Universal Darwinism - inheritance, innovation and natural selection to work their wonders. All Machine Learning techniques take some input data and then apply an initial model to the data that tries to explain the data. Next, a selection process is applied by first measuring how well the model explains the data and then keeping those models around that do well. The surviving models are then mutated slightly with some innovation. The mutated models are then inherited by the Machine Learning processes into a new generation of models that are then subjected to the same Machine Learning processes all over again to see if any improvements have been made. This Darwinian process of inheritance, innovation and natural selection is then repeated over and over again until a final model is output.

Developers writing computer source code manually today also use these same concepts of Universal Darwinism to produce code. For example, developers never code up the source code for new software from scratch. Instead, developers take old existing code from previous applications, or from the applications of others in their development group, or perhaps, even from the Internet itself as a starting point and then use the Darwinian processes of inheritance, innovation and natural selection to evolve the software into the final product. The developer currently does this with a very tedious manual process of:

Borrow some old code → modify code → test → fix code → test → Borrow some more old code → modify code → test → fix code → test ....

To understand how GPT-3 simulates the above process, begin with some very excellent YouTube videos by Luis Serrano. If you are totally new to Machine Learning, begin with this first video which covers all of the major machine learning approaches currently being followed:

A Friendly Introduction to Machine Learning
https://www.youtube.com/watch?v=IpGxLWOIZy4

The next video covers neural networks and the Deep Learning that large neural networks can perform. GPT-3 relies heavily on many Deep Learning neural networks that have basically read everything on the Internet and have taught themselves how to talk all by themselves, just like a human toddler does by listening to the people around it.

A Friendly Introduction to Deep Learning and Neural Networks
https://www.youtube.com/watch?v=BR9h47Jtqyw

The next video explains how recurrent neural networks use feedback loops, like the feedback loops found in electronic circuits and biochemical reactions, to stabilize output.

A Friendly Introduction to Recurrent Neural Networks
https://www.youtube.com/watch?v=UNmqTiOnRfg

The next video explains how generative neural networks with positive feedback can be paired with neural networks with negative feedback. This same mechanism is used to control the expression of genes stored in DNA.

A Friendly Introduction to Generative Adversarial Networks (GANs)
https://www.youtube.com/watch?v=8L11aMN5KY8

Now with the above background, next take a look at the following excellent posts by Jay Alammar.

Visualizing A Neural Machine Translation Model (Mechanics of Seq2seq Models With Attention)
https://jalammar.github.io/visualizing-neural-machine-translation-mechanics-of-seq2seq-models-with-attention/

The Illustrated Transformer
https://jalammar.github.io/illustrated-transformer/

Finally, read this last post that explains how GPT-3 uses all of the above to work.

How GPT3 Works - Visualizations and Animations
http://jalammar.github.io/how-gpt3-works-visualizations-animations/

How Will GPT-3 Affect My Programming Job?
I don't think that GPT-3 has brought us to the Software Singularity yet, but we are getting closer. Here is a YouTube video that seems to have a good take on the subject:

GPT3 - Will AI replace programmers?
https://www.youtube.com/watch?v=u5MmL3nqvfE

One commenter wisely noted, "I'm not scared about GPT-3. I'm scared about GPT-5.".

But I can imagine Microsoft incorporating GPT-3 into their Visual Studio IDE. Since GPT-3 is much too large to run on a single PC and needs to run in the Cloud, Microsoft Visual Studio will need to run in a metered manner with Cloud support for GPT-3, GPT-4, GPT-5... Also, GPT-3 can be fine-tuned for specific computer languages to vastly improve performance. Currently, GPT-3 is just generating code based on the code that it randomly read on the Internet by accident. So I think that GPT-3 will only slightly alter the normal development cycle by removing lots of the tedious aspects of coding that really do not require actual thinking. It will probably look more like this:

Generate some code with GPT-3 → modify code → test → fix code → test → Generate some code with GPT-3 → modify code → test → fix code → test ....

The reason I say this is because, back in 1985, I began working on an IDE with a built-in code generator that was called BSDE - the Bionic Systems Development Environment. This was while I was a programmer in the IT department of Amoco. BSDE was an early mainframe-based IDE (Integrated Development Environment like Eclipse or Microsoft Visual Studio) at a time when there were no IDEs. During the 1980s BSDE was used to grow several million lines of production code for Amoco by growing applications from embryos in an interactive mode. BSDE would first generate an embryo application for a programmer by reading the genes for the application. The application genes were stored on a sequential file containing the DDL statements for the DB2 tables and indexes that the application was going to use to store data. The embryo was then grown within BSDE by the programmer injecting reusable BSDE skeleton code segments into the embryo and by turning on the embryo's genes to generate SQL code on the fly. This continued on until the application grew to maturity and BSDE delivered the completed application into Production. About 30 programmers in Amoco's IT department used BSDE to put several million lines of code into Production. The development process looked something like this:

Generate some code with BSDE → modify code → test → fix code → test → Generate some code with BSDE → modify code → test → fix code → test ....

For more about BSDE take a look at Agile vs. Waterfall Programming and the Value of Having a Theoretical Framework.

How Will GPT-3 Affect the Rest of Society?
Since most white-collar jobs deal primarily with reading and writing text and that text does not have to be as perfect as computer source code has to be, other white-collar jobs, beyond those in IT, are probably at more risk from AI text generators than are IT jobs. As I pointed out in Is it Finally Time to Reboot Civilization with a New Release?, Oligarchiology and the Rise of Software to Predominance in the 21st Century and The Danger of Tyranny in the Age of Software society will soon need to come to grips with trying to run civilizations in which most people do not work as we currently know it. In that regard, perhaps your next job interview will be conducted by a GPT-3 avatar!

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, October 13, 2020

Agile Development of Molten Salt Nuclear Reactors at Copenhagen Atomics

In Last Call for Carbon-Based Intelligence on Planet Earth, I explained that we have just about run out of time in regards to climate change possibly putting an end to carbon-based Intelligence on the Earth. This conclusion is an outgrowth of my Null Result Hypothesis explanation for Fermi's Paradox.

Fermi’s Paradox - If the universe is just chock full of intelligent beings, why do we not see any evidence of their existence?

Briefly stated:

Null Result Hypothesis - What if the explanation to Fermi's Paradox is simply that the Milky Way galaxy has yet to produce a form of interstellar Technological Intelligence because all Technological Intelligences are destroyed by the very same mechanisms that bring them forth?

By that, I mean that the Milky Way galaxy has not yet produced a form of Intelligence that can make itself known across interstellar distances, including ourselves. I then went on to propose that the simplest explanation for this lack of contact could be that the conditions necessary to bring forth a carbon-based interstellar Technological Intelligence on a planet or moon were also the same kill mechanisms that eliminated all forms of carbon-based Technological Intelligences with 100% efficiency. One of those possible kill mechanisms could certainly be for carbon-based Technological Intelligences to mess with the carbon cycle of their home planet or moon. For more on that see The Deadly Dangerous Dance of Carbon-Based Intelligence. But in Last Call for Carbon-Based Intelligence on Planet Earth, I also explained that we still had a chance to stop pumping carbon dioxide into our atmosphere by using molten salt nuclear reactors to burn the 250,000 tons of spent nuclear fuel, 1.2 million tons of depleted uranium and the huge mounds of thorium waste from rare earth mines. From the perspective of softwarephysics, this is important because the carbon-based Intelligence on this planet is so very close to producing a silicon-based Intelligence to carry on with exploring our galaxy and making itself known to other forms of Intelligence that might be out there.

Figure 1 – A ball of thorium or uranium smaller than a golf ball can fuel an American lifestyle for 100 years. This includes all of the electricity, heating, cooling, driving and flying that an American does in 100 years. We have already mined enough thorium and uranium to run the whole world for thousands of years. There is enough thorium and uranium on the Earth to run the world for hundreds of thousands of years.

How To Make Molten Salt Nuclear Reactors a Reality
Over the past decade, many organizations have begun research and development programs to produce molten salt nuclear reactors. China and India have both adopted a government-led NASA-type approach to the problem using Waterfall-like methodologies. A number of private concerns throughout the world, most notably ThorCon, are also using a Waterfall approach to produce a design for a large-scale molten salt nuclear reactor that can attain certification by governmental regulatory bodies like the NRC. Once certification by a governmental regulatory body has been attained, it is hoped that it should be possible to find the necessary private funding to build molten salt nuclear reactors on a massive scale.

Copenhagen Atomics Takes an Agile Approach
However, in this posting, I would like to showcase the efforts of a small startup called Copenhagen Atomics. Unlike the other organizations working on molten salt nuclear reactors, Copenhagen Atomics is using an Agile approach. Copenhagen Atomics is applying the same Agile research and development techniques to the production of molten salt nuclear reactors that SpaceX is currently using for the research and development of private spaceflight - only without the benefit of huge amounts of money. For more on the amazing efforts of SpaceX see Agile Project Management at SpaceX. Below is a recent video of Thomas Jam Pedersen, one of the founding members of Copenhagen Atomics, at TEAC10 explaining the Agile techniques that Copenhagen Atomics is using.

CA @ TEAC10, Oak Ridge - Thomas Jam Pedersen
https://www.youtube.com/watch?v=9nN4txzie8M

Rather than spending a great deal of time and effort on Waterfall design documents, Copenhagen Atomics is spending their time and effort on actually "building stuff" in an Agile trial and error manner. For example:

1MW Molten-Salt Test Reactor by Copenhagen Atomics - Aslak Stubsgaard @ ORNL MSRW 2020 https://www.youtube.com/watch?v=A9zfYTWjZqk

Now compare the Copenhagen Atomics' presentations to the 1969 film produced by the Oak Ridge National Laboratory for the United States Atomic Energy Commission that describes the Molten Salt Reactor Experiment (MSRE) and how Alvin Weinberg's team of 30 nuclear scientists built the very first experimental molten salt nuclear reactor from scratch in an Agile manner with only $10 million during the period 1960 - 1965 and then ran it for 20,000 hours from 1965 - 1969 without a hitch. As I mentioned in Agile vs. Waterfall Programming and the Value of Having a Theoretical Framework and Agile Project Management at SpaceX, back in the 1950s and early 1960s technical people used a more Agile approach to solving complex problems rather than using the Waterfall approach that arose in the 1970s.

The Molten-Salt Reactor Experiment
https://www.youtube.com/watch?v=tyDbq5HRs0o#t-1

More Copenhagen Atomics YouTube videos are available on their YouTube Channel:

Copenhagen Atomics YouTube Channel
https://www.youtube.com/c/CopenhagenAtomics

Funding the Copenhagen Atomics Approach
Like SpaceX, Copenhagen Atomics is partially funding its Agile research and development program by developing and building component products for molten salt nuclear reactors that can then be sold to other organizations.

Figure 2 – Copenhagen Atomics is partially funding their research and development efforts by developing and building component products for molten salt nuclear reactors. Above we see some team members sitting on portable test molten salt loops that can be used to test the interaction of molten salts with test components. Since working on molten salt nuclear reactors basically involves dealing with high-temperature plumbing, much research can be conducted with molten salts that are not even radioactive.

The ultimate goal of Copenhagen Atomics is to produce small 50 MW molten salt nuclear reactors the size of a 40-foot shipping container that can burn spent nuclear fuel.

Figure 3 – A schematic for a 50 MW molten salt nuclear waste burner.

Figure 4 – These proposed 50 MW molten salt nuclear waste burners would be the size of a 40-foot shipping container and would be constructed on assembly lines ready for shipment to customers by ship and truck.

Figure 5 – These proposed 50 MW molten salt nuclear waste burners would use a thorium-232 fuel cycle.

Figure 6 – The neutrons from plutonium-239 and plutonium-240 from spent nuclear fuel rods would be used to get the thorium-232 fuel cycle going. Additional spent nuclear fuel could also be added to provide additional energy and to turn the spent fuel into fission products that only need to be stored for 10 half-lives or 300 years.

Time For Action
Last fall, I met with Congressman Raja Krishnamoorthi of Illinois about molten salt nuclear reactors and the possibility of using them to turn the 10,000 tons of spent nuclear fuel currently being stored at nuclear reactors in Illinois. Instead of being a burden, these 10,000 tons of spent nuclear fuel could be turned into electricity and fission products that only need to be stored for 300 years. I explained that currently, Illinois is committed to storing the 10,000 tons of spent nuclear fuel for about 200,000 years. Of the 535 members of the 116th Congress of the United States of America, we only have 11 members with a background in engineering or science. Fortunately for me, Congressman Raja Krishnamoorthi received a B.S. in mechanical engineering from Princeton and a law degree from Harvard and has had some experience with solar energy and is also very concerned about climate change. I also passed on my concerns about these issues to both of my senators.

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, September 16, 2020

Agile Project Management at SpaceX

In Agile vs. Waterfall Programming and the Value of Having a Theoretical Framework, I explained that back in the 1950s and 1960s IT professionals used an Agile methodology to develop software because programs had to be very small to fit into the puny amount of memory that mainframe computers had at the time. Recall that the original UNIVAC I came out in 1951 with only 12 KB of memory. By 1970, mainframe computers typically only had about 1 MB of memory that was divided up into a number of fixed regions by the IBM 360-MFT operating system. Typically, the largest memory region was only 256 KB. Now you really cannot do a lot of logic in 256 KB of memory so applications in the 1960s consisted of lots of very small programs in a JCL job stream that used many tapes for input and output. Each step in the job stream had a very small program that would read the tapes from the previous job step, do some processing on the data, and then write out the processed data to tapes for the next step in the JCL job stream. The output tapes were then used as input for the next step in the JCL job stream. For more on tape processing see: An IT Perspective on the Origin of Chromatin, Chromosomes and Cancer.

So this kind of tape batch processing easily lent itself to the prototyping of the little programs in each job step. Developers would simply "breadboard" each little step by trial and error like they used to do on the Unit Record Processing machines of the 1950s that were programmed by physically rewiring the plugboards of each Unit Record Processing machine in a job stream. The Unit Record Processing machines would then process hundreds of punch cards per minute by routing the punch cards from machine to machine in processing streams.

Figure 1 – In the 1950s, Unit Record Processing machines like this card sorter were programmed by physically rewiring a plugboard.

Figure 2 – The plugboard for a Unit Record Processing machine. Programming a plugboard was a trial and error process that had to be done in an Agile manner. This Agile programming technique carried over to the programming of the small batch programs in a tape batch processing stream.

To get a better appreciation for how these small programs in a long tape batch processing stream worked, and how they were developed in a piecemeal prototyping manner, let's further explore tape batch processing.

Batch Tape Processing and Sequential Access Methods
One of the simplest and oldest sequential access methods is called QSAM - Queued Sequential Access Method:

Queued Sequential Access Method
http://en.wikipedia.org/wiki/Queued_Sequential_Access_Method

I did a lot of magnetic tape processing in the 1970s and early 1980s using QSAM. At the time we used 9 track tapes that were 1/2 inch wide and 2400 feet long on a reel with a 10.5 inch diameter. The tape had 8 data tracks and one parity track across the 1/2 inch tape width. That way we could store one byte across the 8 1-bit data tracks in a frame, and we used the parity track to check for errors. We used odd parity, if the 8 bits on the 8 data tracks in a frame added up to an even number of 1s, we put a 1 in the parity track to make the total number of 1s an odd number. If the 8 bits added up to an odd number of 1s, we put a 0 in the parity track to keep the total number of 1s an odd number. Originally, 9 track tapes had a density of 1600 bytes/inch of tape, with a data transfer rate of 15,000 bytes/second. Remember, a byte is 8 bits and can store one character, like the letter “A” which we encode in the ASCII code set as A = “01000001”.

Figure 3 – A 1/2 inch wide 9 track magnetic tape on a 2400-foot reel with a diameter of 10.5 inches

Figure 4 – 9 track magnetic tape had 8 data tracks and one parity track using odd parity which allowed for the detection of bad bytes with parity errors on the tape.

Later, 6250 bytes/inch tape drives became available, and I will use that density for the calculations that follow. Now suppose you had 10 million customers and the current account balance for each customer was stored on an 80-byte customer record. A record was like a row in a spreadsheet. The first field of the record was usually a CustomerID field that contained a unique customer ID like a social security number and was essentially the equivalent of a promoter region on the front end of a gene in DNA. The remainder of the 80-byte customer record contained fields for the customer’s name and billing address, along with the customer’s current account information. Between each block of data on the tape, there was a 0.5 inch gap of “junk” tape. This “junk” tape allowed for the acceleration and deceleration of the tape reel as it spun past the read/write head of a tape drive and perhaps occasionally reversed direction. Since an 80-byte record only came to 80/6250 = 0.0128 inches of tape, which is quite short compared to the overhead of the 0.5 inch gap of “junk” tape between records, it made sense to block many records together into a single block of data that could be read by the tape drive in a single I/O operation. For example, blocking 100 80-byte records increased the block size to 8000/6250 = 1.28 inches and between each 1.28 inch block of data on the tape, there was the 0.5 inch gap of “junk” tape. This greatly reduced the amount of wasted “junk” tape on a 2400-foot reel of tape. So each 100 record block of data took up a total of 1.78 inches of tape and we could get 16,180 blocks on a 2400-foot tape or the data for 1,618,000 customers per tape. So in order to store the account information for 10 million customers, you needed about 6 2400-foot reels of tape. That means each step in the batch processing stream would use 6 input tapes and 6 output tapes. The advantage of QSAM, over an earlier sequential access method known as BSAM, was that you could read and write an entire block of records at a time via an I/O buffer. In our example, a program could read one record at a time from an I/O buffer which contained the 100 records from a single block of data on the tape. When the I/O buffer was depleted of records, the next 100 records were read in from the next block of records on the tape. Similarly, programs could write one record at a time to the I/O buffer, and when the I/O buffer was filled with 100 records, the entire I/O buffer with 100 records in it was written as the next block of data on an output tape.

Figure 5 – Between each record, or block of records, on a magnetic tape, there was a 0.5 inch gap of “junk” tape. The “junk” tape allowed for the acceleration and deceleration of the tape reel as it spun past the read/write head on a tape drive. Since an 80-byte record only came to 80/6250 = 0.0128 inches, it made sense to block many records together into a single block that could be read by the tape drive in a single I/O operation. For example, blocking 100 80-byte records increased the block size to 8000/6250 = 1.28 inches, and between each 1.28 inch block of data on the tape, there was a 0.5 inch gap of “junk” tape for a total of 1.78 inches per block.

Figure 6 – Blocking records on tape allowed data to be stored more efficiently.

So it took 6 tapes to just store the rudimentary account data for 10 million customers. The problem was that each tape could only store 123 MB of data. Not too good, considering that today you can buy a 1 TB PC disk drive that can hold 8525 times as much data for about $100! Today, you could also store about 67 times as much data on a $7.00 8 GB thumb drive. So how could you find the data for a particular customer on 24,000 feet (2.72 miles) of tape? Well, you really could not do that reading one block of data at a time with the read/write head of a tape drive, so we processed data with batch jobs using lots of input and output tapes. Generally, we had a Master Customer File on 6 tapes and a large number of Transaction tapes with insert, update and delete records for customers. All the tapes were sorted by the CustomerID field, and our programs would read a Master tape and a Transaction tape at the same time and apply the inserts, updates and deletes on the Transaction tape to a new Master tape. So your batch job would read a Master and Transaction input tape at the same time and would then write to a single new Master output tape. These batch jobs would run for many hours, with lots of mounting and unmounting of dozens of tapes.

Figure 7 – The batch processing of 10 million customers took a lot of tapes and tape drives.

When developing batch job streams that used tapes, each little program in the job stream was prototyped first using a small amount of data on just one input and one output tape in a stepwise manner.

The Arrival of the Waterfall Methodology
This all changed in the late 1970s when interactive computing began to become a significant factor in the commercial software that corporate IT departments were generating. By then mainframe computers had much more memory than they had back in the 1960s, so interactive programs could be much larger than the small programs found within the individual job steps of a batch job stream. Since the interactive software had to be loaded into a computer all in one shot, and required some kind of a user interface that did things like checking the input data from an end-user, and also had to interact with the end-user in a dynamic manner, interactive programs were necessarily much larger than the small programs that were found in the individual job steps of a batch job stream. These factors caused corporate IT departments to move from the Agile prototyping methodologies of the 1960s and early 1970s to the Waterfall methodology of the 1980s, and so by the early 1980s prototyping software on the fly was considered to be an immature approach. Instead, corporate IT departments decided that a formal development process was needed, and they chose the Waterfall approach used by the construction and manufacturing industries to combat the high costs of making changes late in the development process. This was because in the early 1980s CPU costs were still exceedingly quite high so it made sense to create lots of upfront design documents before coding actually began to minimize the CPU costs involved with creating software. For example, in the early 1980s, if I had a $100,000 project, it was usually broken down as $25,000 for programming manpower costs, $25,000 for charges from IT Management and other departments in IT, and $50,000 for program compiles and test runs to develop the software. Because just running compiles and test runs of the software under development consumed about 50% of the costs of a development project, it made sense to adopt the Waterfall development model to minimize those costs.

Along Comes NASA
Now all during this time, NASA was trying to put people on the Moon and explore the Solar System. At first, NASA also adopted a more Agile approach to project management using a trial and error approach to solve the fundamental problems of rocketry. If you YouTube some of the early NASA launches from the late 1950s and early 1960s, you will see many rocket failures blowing up in a large fireball:

Early U.S. rocket and space launch failures and explosions
https://www.youtube.com/watch?v=13qeX98tAS8

This all changed when NASA started putting people on top of their rockets. Because the NASA rockets were getting much larger, more complicated and were now carrying live passengers, NASA switched from an Agile project management approach to a Waterfall project management approach run by the top-down command-and-control management style of corporate America in the 1960s:

NASA's Marshall Space Flight Center 1960s Orientation Film
https://www.youtube.com/watch?v=qPmJR3XSLjY

All during the 1960s and 1970s NASA then went on to perform numerous technological miracles using the Waterfall project management approach and the top-down command-and-control management style of corporate America in the 1960s.

SpaceX Responds with an Agile Approach to Exploring the Solar System
Despite the tremendous accomplishments of NASA over many decades, speed to market was never one of NASA's strong suits. Contrast that with the astounding progress that SpaceX has made, especially in the past year. Elon Musk started out in software, and with SpaceX, Elon Musk has taken the Agile techniques of software development and applied them to the development of space travel. The ultimate goal of SpaceX is to put colonies on the Moon and Mars using a SpaceX Starship.

Figure 8 – The SpaceX Starship SN8 is currently sitting on a pad at the SpaceX Boca Chica launch facility in South Texas awaiting a test flight.

SpaceX is doing this in an Agile stepping stone manner. SpaceX is funding this venture by launching satellites for other organizations using their reusable Falcon 9 rockets. SpaceX is also launching thousands of SpaceX Starlink satellites with Falcon 9 rockets. Each Falcon 9 rocket can deliver about 60 Starlink satellites into low-Earth orbit to eventually provide broadband Internet connectivity to the entire world. It is expected that the revenue from Starlink will far exceed the revenue obtained from launching satellites for other organizations.

Figure 9 – SpaceX is currently making money by launching satellites for other organixations using reusable Falcon 9 rockets.

Unlike NASA in the 1960s and 1970s, SpaceX uses Agile techniques to design, test and improve individual rocket components rather than NASA's Waterfall approach to build an entire rocket in one shot.

Figure 10 – Above is a test flight of the SpaceX Starhopper lower stage of the SpaceX Starship that was designed and built in an Agile manner

Below is a YouTube video by Marcus House that covers many of the remarkable achievements that SpaceX has attained over the past year using Agile techniques:

This is how SpaceX is changing the space industry with Starship and Crew Dragon
https://www.youtube.com/watch?v=CmJGiJoU-Vo

Marcus House comes out with a new SpaceX YouTube video every week or two and I highly recommend following his YouTube Channel for further updates.

Marcus House SpaceX YouTube Channel
https://www.youtube.com/results?search_query=marcus+house+spacex&sp=CAI%253D

Many others have commented on the use of Agile techniques by SpaceX to make astounding progress in space technology. Below are just a few examples.

SpaceX’s Use of Agile Methods
https://medium.com/@cliffberg/spacexs-use-of-agile-methods-c63042178a33

SpaceX Lessons Which Massively Speed Improvement of Products
https://www.nextbigfuture.com/2018/12/reverse-engineering-spacex-to-learn-how-to-speed-up-technological-development.html

Pentagon advisory panel: DoD could take a page from SpaceX on software development
https://spacenews.com/pentagon-advisory-panel-dod-could-take-a-page-from-spacex-on-software-development/

If SpaceX Can Do It Than You Can Too
https://www.thepsi.com/if-spacex-can-do-it-than-you-can-too/

Agile Is Not Rocket Science
https://flyntrok.com/2020/09/01/spacex-and-an-agile-mindset/

Using Orbiter2016 to Simulate Space Flight
If you are interested in things like SpaceX, you should definitely try out some wonderful free software called Orbiter2016 at:

Orbiter Space Flight Simulator 2016 Edition
http://orbit.medphys.ucl.ac.uk/index.html

Be sure to download the Orbiter2016 core package and the high-resolution textures. Also, be sure to download Jarmonik's D3D9 graphics client and XRsound. There is also a button on the Download page for the Orbit Hangar Mods addon repository. From the Orbit Hangar Mods addon repository, you can download additional software for Orbiter2016. Be careful! Some of these addon packages contain .dll files that overlay .dll files in the Orbiter2016 core package. And some of the .dll files in one addon package may overlay the .dll files of another addon package. All of this software can be downloaded from the Orbiter2016 Download page and it comes to about 57 GB of disk space! If you try to add additional addons, I would recommend keeping a backup copy of your latest working version of Orbiter2016. That way, if your latest attempt to add an addon crashes Orbiter2016, you will be able to recover from it. This sounds like a lot of software, but do not worry, Orbiter2016 runs very nicely on my laptop with only 4 GB of memory and a very anemic graphics card.

Figure 11 – Launching a Delta IV rocket from Cape Canaveral.

Figure 12 – As the Delta IV rocket rises, you can have the Orbiter2016 camera automatically follow it.

Figure 13 – Each vehicle in Orbiter2016 can be viewed from the outside or from an internal console.

Figure 14 – The Delta IV rocket releases its solid rocket boosters.

Figure 15 – The Delta IV rocket second stage is ignited.

Figure 16 – The Delta IV rocket faring is released so that the payload satellite can be released.

Figure 17 – The third stage is ignited.

Figure 18 – Launching the Atlantis Space Shuttle.

Figure 19 – Following the Atlantis Space Shuttle as it rises.

Figure 20 – Once the Atlantis Space Shuttle reaches orbit, you can open the bay doors and release the payload. You can also do an EVA with a steerable astronaut.

Figure 21 – Using Orbiter2016 to fly over the Moon.

Check your C:\Orbiter2016\Doc directory for manuals covering the Orbiter2016. The C:\Orbiter2016\Doc\Orbiter.pdf is a good place to start. Orbiter2016 is a very realistic simulation that can teach you a great deal about orbital mechanics. But to get the most benefit from Orbiter2016, you need an easy way to learn how to use it. Below is a really great online tutorial that does that.

Go Play In Space
https://www.orbiterwiki.org/wiki/Go_Play_In_Space

There also are many useful Orbiter2016 tutorials on YouTube that can show you how to use Orbiter2016.

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