Identity and Change
Introduction
A variable is the most philosophically loaded construct in all of computing. It is a name that persists while its value changes — an identity that endures through transformation. When PCML declares $health = 100, it is not merely allocating memory. It is making a philosophical claim: that there is something called health that has a current value, that the value will change, and that the name will survive the change. This is the problem of identity through time — one of the oldest unsolved problems in philosophy — encoded in a single line of markup.
"You cannot step into the same river twice, for it is not the same river and you are not the same person." — Heraclitus of Ephesus, ~500 BCE
Heraclitus solved the problem of the variable 2,500 years before computers. The river's name ($river) persists. The water changes. The identity is in the name and the channel — not the content. Prospectus Celestial agrees: the variable's identity is its name and its scope. Its value is the water flowing through it.
Heraclitus and the River: The First Variable
Heraclitus (~535–475 BCE) is the philosopher of flux — the first thinker to argue systematically that change is the fundamental nature of reality, and that identity is the persistence of a pattern through that change. His fragments (the book he wrote has not survived; we know him only through fragments quoted by others — he is himself a collection of @fragment tags) include:
- "Everything flows and nothing stays." (Panta rhei) — All values are expressions evaluated over time.
- "The sun is new each day." — The identifier
$sunpersists; the physical state is recalculated every morning. - "Opposition brings concord; out of discord comes the fairest harmony." — The tension between a variable's current value and the expression that changes it produces the dynamics of the scene.
- "Character is destiny." — A variable's scope and access modifier determine its fate.
Parmenides, Heraclitus's philosophical opponent, argued the opposite: only the unchanging is real; change is illusion. In computing terms, Parmenides preferred constants. Heraclitus preferred variables. The history of programming languages is the history of this debate: Haskell (immutable by default, Parmenidean), Python (mutable by default, Heraclitean), Rust (immutable unless explicitly declared mutable — a careful synthesis).
The Name and the Thing: Semiotics and Variable Binding
Ferdinand de Saussure (1857–1913), the founder of modern linguistics, distinguished between the signifier (the word, the name) and the signified (the concept or thing the word refers to). In PCML, the variable name ($health) is the signifier; the integer value it holds (100, then 75, then 50) is the signified. The relationship between them — the binding — is arbitrary but stable: the name does not resemble the value, but once bound, the relationship is fixed until reassignment.
Gottlob Frege (1892) drew a related distinction between sense (the way a name picks out its referent) and reference (the actual object referred to). The morning star and the evening star have different senses but the same reference: Venus. In PCML, $playerX and #player.position.x may have different senses but the same reference — two names pointing at the same value in memory. This is the essence of the #id reference sigil: two different names, one binding, one value.
Exact technology: In computer memory, a variable is a name mapped to a memory address in a symbol table. The name $health maps to, say, address 0x7ffd4a20. The value at that address is the current integer. When the expression $health -= 25 executes, the address does not change — the bytes at that address do. The name is permanent; the bytes are the water.
Money as Variable: The Economics of Changing Value
Money is the most powerful variable civilization has ever created. A dollar bill — the physical artifact — is a signifier: a name for a quantity of value. Its face value ($100) is the type declaration. Its purchasing power is the current value of the variable, continuously updated by the market expression $purchasingPower = f(supply, demand, inflation, interest), evaluated constantly.
The US dollar has been a variable since 1971, when President Nixon ended the Bretton Woods gold standard (August 15, 1971 — "Nixon Shock"). Before 1971, the dollar was a constant: $35 = 1 troy ounce of gold, fixed by international treaty. After 1971, the dollar became a floating variable, its value determined by the global currency market's continuous @expression tick=true. The Federal Reserve's monetary policy is an expression that targets the variable $inflation by adjusting $interestRate.
Exact technology: The SOFR (Secured Overnight Financing Rate) — the benchmark interest rate for dollar-denominated derivatives since 2023 — is calculated daily from approximately $1 trillion in actual overnight repo transactions. It is a $variable re-evaluated every 24 hours from real market data, published by the New York Fed at 8:00 AM Eastern each business day. Approximately $223 trillion in financial contracts reference this single variable.
Physics: State Variables and the Laws of Thermodynamics
Physics is the science of state variables and the expressions that change them. Every physical system is described by a set of state variables — temperature, pressure, volume, entropy, position, momentum, charge — and a set of laws (expressions) that govern how those variables evolve over time.
The four laws of thermodynamics are four @expression blocks that govern the state variables $temperature, $entropy, and $energy:
- Zeroth Law: If A == B and B == C then A == C (transitivity of thermal equilibrium — the equality operator applied to temperature).
- First Law:
$energy += heatAdded - workDone(conservation of energy — the compound assignment operator applied to the universe). - Second Law:
$entropy += deltaSwhere deltaS >= 0 (entropy never decreases — a constraint on the expression's output, equivalent to PCE's layer order guarantee). - Third Law: As
$temperatureapproaches absolute zero,$entropyapproaches a constant minimum (a boundary condition on the variable's range).
The Second Law is the most profound variable constraint in all of science: it says that the expression $entropy += delta can only add, never subtract, in a closed system. This is equivalent to declaring $entropy as write-once-per-direction — a monotonically increasing variable. The arrow of time itself is a consequence of this constraint: the universe's state variables can only evolve in the direction that increases entropy, and that direction is what we call "the future."
Biology: Homeostasis as Variable Management
A living organism is a system of tightly regulated variables. Body temperature ($coreTemp), blood glucose ($bloodGlucose), blood pH ($bloodPH), blood pressure ($bloodPressure) — each is maintained within a narrow range by continuous feedback expressions. This is homeostasis (from Greek homoios, "similar," and stasis, "standing still") — the maintenance of dynamic equilibrium through continuous variable adjustment.
The insulin-glucagon axis is the most elegant variable management system in biology: when $bloodGlucose rises above ~100 mg/dL, the pancreas secretes insulin (runs the expression $bloodGlucose -= absorptionRate * insulinConcentration). When it falls below ~70 mg/dL, glucagon is secreted (runs $bloodGlucose += glycogenolysisRate * glucagonConcentration). This dual-expression feedback loop has been running in mammals for approximately 500 million years — the most battle-tested @expression tick=true in the history of life.
| Biological Variable | Normal Range | Regulating Expression | Consequence of PCRuntimeError |
|---|---|---|---|
$coreTemp | 36.5–37.5°C | Shivering (heat) / sweating (cool) | >41°C: seizure; <35°C: cardiac arrest |
$bloodGlucose | 70–100 mg/dL | Insulin / glucagon axis | <50: loss of consciousness; >600: diabetic coma |
$bloodPH | 7.35–7.45 | Respiratory + renal buffering | <7.0 or >7.8: fatal within hours |
$bloodPressure | 90/60–120/80 mmHg | Heart rate / vascular tone | >180/120: hypertensive crisis |
The Expression: The Force of Change
If the variable is the river, the @expression is the rainfall, the slope of the land, and the tides — all the forces that change the water level. An expression is imperative logic evaluated against the current values of variables to produce new values. It is Newton's second law applied to scene state: $acceleration = $force / $mass, where $force is the expression.
In physics, an equation of motion is an expression: it takes the current state (position, velocity) and computes the next state (new position, new velocity) over a small time increment (DeltaTime). Euler integration, Verlet integration, Runge-Kutta — all are different strategies for evaluating the physical @expression tick=true with maximum accuracy and minimum error accumulation.
-- The laws of physics as PCML expressions
@expression id="gravity" tick=true {
// F = ma → a = F/m → v += a*dt → x += v*dt
$velocityY += $gravity * PCEngine.DeltaTime
$playerY += $velocityY * PCEngine.DeltaTime
// Ground constraint: $playerY cannot exceed floor
if ($playerY >= 900) {
$playerY = 900
$velocityY = 0 // normal force cancels gravity at ground
$isGrounded = true
}
}
This expression is Newton's mechanics, verbatim, running at 60 ticks per second. The variable $playerY is the generalized coordinate. $velocityY is its time derivative. $gravity is the constant force. The if block is the constraint equation. The floor at y=900 is the boundary condition. The student who writes this PCML expression is, without knowing it, solving the equations of motion for a particle in a constant gravitational field — the same problem Newton solved in the Principia Mathematica (1687).
The Tick: Time Itself
The engine tick — PCEngine.DeltaTime, the elapsed seconds since the last Update call — is the discretization of time. Continuous time (the real number line) is approximated by a sequence of small finite steps. This is the fundamental act of numerical simulation: replacing the continuous with the discrete, the differential equation with the difference equation.
The accuracy of a simulation depends on the size of the tick: smaller ticks = more accurate = more computational cost. This is the fundamental trade-off of all numerical physics: climate models run at 30-minute ticks; engineering FEA runs at microsecond ticks; quantum chemistry runs at femtosecond ticks. PCE runs at 1/60 second (approximately 16.67 millisecond) ticks — accurate enough for human visual perception, which cannot distinguish changes faster than roughly 10-15ms.
PCML Variables in Practice: A Living Scene
@pcml version="1.0" name="identity-demo" {
// Declare identity: the name persists, the values flow
$playerX = 640.0 // spatial identity — where the player is
$health = 100 // vital identity — how alive the player is
$score = 0 // accumulated identity — what the player has done
$alive = true // existential identity — whether the player is
$name = "Aria" // nominal identity — what the player is called
$level = 1 // developmental identity — what the player has become
// The @expression that changes identity over time
@expression id="lifeLoop" tick=true {
if (!$alive) { return }
// Every tick: the river flows
$playerX += $velocityX * PCEngine.DeltaTime
// Event: contact changes health identity
if (hitEnemy) { $health -= 10 }
// Level threshold: accumulated identity triggers transformation
if ($score >= 1000 * $level) { $level += 1 }
// Existential boundary: identity ceases when health reaches zero
if ($health <= 0) { $alive = false }
}
}
In this scene, every philosophical problem of personal identity is encoded in six variable declarations: spatial identity ($playerX), vital identity ($health), accumulated identity ($score), existential identity ($alive), nominal identity ($name), and developmental identity ($level). The expression is the force of life itself — the current that changes the values while the names persist.
The Grand Variable Table
| PCML Variable | Philosophy | Physics | Biology | Economics | Psychology |
|---|---|---|---|---|---|
$playerX | Spatial identity (Locke) | Generalized coordinate q | Animal position in territory | Asset location / address | Sense of physical self |
$health | Vital force (Bergson's élan vital) | Energy state E | Homeostatic setpoint | Capital / net worth | Wellbeing / resilience |
$score | Accumulated karma (Hindu) | Action integral ∫L dt | Reproductive fitness | GDP / wealth | Self-efficacy |
$alive | Existential being (Heidegger's Dasein) | Phase state (alive / not) | Viability | Solvency / going concern | Sense of existence |
$name | Nominal essence (Locke) | System identifier / label | Species name / taxon | Brand / corporate identity | Self-concept |
$level | Soul's development (Aristotle's entelechy) | Quantum number n | Developmental stage | Skill / professional rank | Stage of maturity (Erikson) |
The Final Insight
The deepest truth of variables is this: identity is the persistence of a name through change. The river is not the water — it is the shape that water takes as it flows. $health is not the number 100 — it is the shape that vital capacity takes as it diminishes and (sometimes) recovers. $playerX is not a coordinate — it is the shape that presence takes as it moves through a world.
Prospectus Celestial encodes this truth in every variable declaration. Every $ sigil says: here is a name that will endure; here is a value that will change; the identity lives in the name, the life lives in the change. The scene is alive precisely because its variables flow. A scene with no expressions — no change — is not a scene. It is a painting. Beautiful, but still. The variable and the expression together are the difference between art and life.