Journal · 4 min read
Freedom without free will: Spinoza for people who write deterministic code
Spinoza denied free will and still wrote a book whose last part is called 'Of Human Freedom'. An engineer's attempt to see how both can be true.
The software I write is, at the level I work on, completely deterministic. Same input, same state, same output. When a colleague says the system "decided" to route a request somewhere, nobody thinks the system made a free choice. We mean it took the path its inputs and code determined.
For a long time I assumed that, if determinism is true of us too, then talk of human freedom is the same kind of loose talk. Then I read Spinoza, who is the most thorough determinist in the history of philosophy and who also wrote an entire book about how to become free. This essay is my attempt to explain why he isn't contradicting himself, and why the explanation made sense to me partly because of my job.
The stone that thinks it flies
Spinoza is blunt. In Part I of the Ethics he argues that nothing in nature is contingent; everything is determined by the necessity of the divine nature to exist and act in a certain way. In Part II he concludes that there is no absolute or free will in the mind. Every volition is caused by another, and that by another, and so on.
Why, then, does everyone feel free? His diagnosis, in the appendix to Part I, is that people are conscious of their desires and actions but ignorant of the causes that determine them. In a letter written in 1674 he gives a famous image: imagine a stone set in motion by an external push, and suppose the stone, while it moves, could think. It would be aware only of its own effort to keep moving, and would believe itself completely free, continuing in motion because it wanted to.
Anyone who has debugged a system with poor logging knows this situation. From inside a single function, the call looks spontaneous. The causes are elsewhere, upstream, unrecorded.
He also has no patience for Descartes' account of the will. In the fourth Meditation, Descartes explains error by saying that our will is infinite in scope while our intellect is limited, so we affirm things we don't clearly understand. Spinoza flatly denies there is a separate faculty of will at all: in Part II he says that will and intellect are one and the same. An idea of a triangle already involves the affirmation that its angles equal two right angles. There is no extra act of saying yes.
Free as a property of how you are caused
So where does freedom come in? Through a definition at the start of the book that is easy to skip. A thing is free, Spinoza says, when it exists from the necessity of its own nature alone and is determined to act by itself alone. A thing is compelled when it is determined by something else.
Notice that freedom is not the opposite of necessity here. It is the opposite of external determination. Strictly, only God, or Nature, is completely free, because nothing is outside it. But finite things can be more or less free depending on how much of what they do follows from their own nature rather than from outside pushes.
The engineering analogy that helped me is the difference between a system that is driven almost entirely by interrupts, reacting to whatever arrives, and one whose behaviour follows mostly from its own internal model of the world. Both are fully deterministic. But we would naturally say the second has more autonomy. It does what it does because of what it is.
Spinoza's word for the things that push us around from outside is "passions", and Part IV of the Ethics is called "Of Human Bondage". Bondage is not being caused. Bondage is being caused by things we don't understand: fear, envy, hope, the opinions of others.
Debugging the passions
The method of Part V is the bit that convinced me. Spinoza claims that an emotion which is a passion stops being a passion as soon as we form a clear and distinct idea of it. Understanding how an emotion arises, what caused it, what ideas it is attached to, changes it from something that happens to us into something we are, in his technical sense, the adequate cause of.
I have tested this crudely on myself. When I am angry at a colleague's code review, the anger is a passion: it arrives and steers me. When I work out what the anger is actually about (usually that the reviewer is right and I am tired), it doesn't disappear, but it stops steering. It becomes information. I understand where it came from, and my response follows more from my own reasoning than from the push.
That is not a release from determinism. Nothing in my head became uncaused. What changed is the route of causation: more of it now runs through my own understanding. For Spinoza, that is the only freedom there is, and it is enough.
Where the analogy breaks
I should be honest about the limits of reading Spinoza with an engineer's eyes.
- For Spinoza, the mind is the idea of the body, and both are expressions of one substance. Nothing in my systems corresponds to that.
- His "adequate ideas" are not just better models. They are ideas that follow from the nature of the mind in the way God's ideas follow from God's nature. The comparison with a well-trained model is suggestive, not exact.
- He thought the highest freedom is the intellectual love of God, a kind of understanding of everything as following necessarily from Nature. I don't know how to write that down in my vocabulary.
But the core thought survives the translation. You can give up free will in the libertarian sense, accept that every choice has causes, and still find a real difference between a life pushed around by what it doesn't understand and a life that acts from what it does. Spinoza ends the book by saying that this path is hard, as all excellent things are as difficult as they are rare. On that point, at least, my job agrees with him.
Add your reply
Join free to reply Sign in