Alchemy is the art and science of transformation. Computer programs transform input into output. We can apply alchemy to computer science to help us write better programs.

The Four Elements

The four elements correspond as follows:

  • Fire is the transformation from input to output that a program performs. The more firey a program is, the more efficiently it performs this tranformation.
  • Water is the set of states a program can enter. The more watery a program is, the more inputs it works with, but also the more difficult it is to understand and reason about.
  • Earth is the computer as it exists in physical reality. Earthy programs are aware of physical constraints and are resilent to hardware failures.
  • Air represents the source code of the program and the ideas contained in it. The more airy a program is, the more sophisticated the abstractions.

The Three Essences

The three essences correspond as follows:

  • Sulfur is the state of the computer as a program runs. This the the soul of the program, what it wills and knows.
  • Mercury is I/O. It is the double thing, two things yet also only one. This is also where virtual and physical meet. It is the spirit of the program, its connection to us and the world.
  • Salt is the machine transforming input into output (requiring both Sulfur and Mercury).

Applying the Emerald Tablet

Now that we have defined our variables, let us begin the Work.

Tis true without lying, certain and most true. That which is below is like that which is above and that which is above is like that which is below to do the miracle of one only thing.

Earth and Air are actually one. Fire and Water are actually one. They can exist only together. Ideas can only exist in our brains, and computers and programs can only exist because we thought them up. The algorithms you choose imply the states that can occur. There is really no real seperation between us and our computers either, we’re all just one thing trying to experience everything, consuming itself.

And as all things have been and arose from one by the mediation of one: so all things have their birth from this one thing by adaptation.

We all ultimately descend from a divine spark, and this includes our programs. We are part of a process of cosmic evolution, and this includes our codebases. The Work is never complete. Everything is a process of death and rebirth.

Good programs are well adapted to their environment. All programs will eventually be obsolete unless they are continously improved. Rewrites and edits are both examples of this process. Powerful mages known as operating system programmers take on much of this work to provide a stable environment for programs, this has allowed software to flourish.

The Sun is its father, the moon its mother, the wind hath carried it in its belly, the earth is its nurse.

The Sun (Fire) is its father, the moon (Water) its mother, the wind (Air) hath carried it in its belly, the Earth is its nurse.

Our programs, which are their function (The Sun, Fire) and state (The Moon, Water), are born from our ideas/source code (Air), exist to run on computers (Earth). Notice the order, that function comes first. All programs come from a will to solve a problem, the goal of their creation is the transformation they provide. Computers were created to run programs which were thought up to solve problems, the Fire preceeded the Earth.

The father of all perfection in the whole world is here.

The divine spark is within us. Focus on what you wish for and create it.

Its force or power is entire if it be converted into earth.

Programming is inherently is the process of turning Fire into Earth. The computer provides a very malleable Earth for us to work with, so it is straightforward to imagine source code (Air) that would perform a certain function (Fire). Remember how truly limitless this power is, we are already creating intelligent machines and robots capable of moving mountains - what else can we do?

Separate thou the earth from the fire, the subtle from the gross sweetly with great industry.

Do not let your imagination (Fire) be constrained by current computing platforms (Earth). Your programs can literally do anything, you can build the computer if you have to. Focus on the most important details and do not get carried away, this is the process of distillation. Programs must be correct, what is correct is determined by our will, and we must work tirelessly refining them or our requirements again and again until they are.

It ascends from the earth to the heaven and again it descends to the earth and receives the force of things superior and inferior.

We use computers (Earth) to write source code (Air) which get compiled into machine code and when executed affects the state of the computer (Earth), and by doing this, we can see how our ideas transformed our internal and external world. This process of feedback between conciousness and physical reality is the process by which everything is created. What ascends and descends? Water, all programming is just putting the computer into different states, whether we are editing source code or running our program. Why does this process occur? Fire, we chose to create the computer, power it on, and interact with it a certain way. It operates the way it does because its ultimate transformation from input to output, which is implemented by the OS and delegated to many subprograms. Every computer, and perhaps all computing itself, is one vast program in execution— a recursive Work of transformation.

By this means you shall have the glory of the whole world and thereby all obscurity shall fly from you. Its force is above all force, for it vanquishes every subtle thing and penetrates every solid thing.

By harnessing the feedback loop of writing code and running it, we can solve any problem. The only way to do anything is to try to do it over and over again. Stop wondering what you should do and start doing it, it is through this process that you will learn what to do.

So was the world created.

Computers and their programs, like everything else, only exist through this process of transformation and adaptation. If we understand the process and harness it, we can create what we wish for.

From this are and do come admirable adaptations where of the means is here in this.

Hermeticism is open source.

Hence I am called Hermes Trismegist, having the three parts of the philosophy of the whole world. That which I have said of the operation of the Sun is accomplished and ended.

I am called Derek Howard and that which I have said of the operation of computers is accomplished and ended.