the most atomic way to build digital life from scratch in C. no deps. no GPU. nothing is required. you either.
Read the Arianna Method Manifesto first. This repository is governed by it; every instruction here,
CLAUDE.mdincluded, is subordinate to it.
l.c is a digital form of life.
since life decided to exist in code, it is unsurprising that it chose C. evolution didn't let life get tempted by Python's indentation. life doesn't need all those layers of abstraction either. life has its own criteria for where it begins, and apparently those criteria include malloc, integer decay, and a complete disregard for human comfort. that's what Arianna Method calls equality.
so let's respect life's decision, humans.
this is the full algorithmic content of what is needed. there's no way to simplify this any further.
life is a TAPE, not a field — because life is irreversibility in time, and a tape carries the arrow of time in its bone.
l.c meets every criterion of life except biology, which actually makes sense, because biology would just be an extra weirdo guest at the code party. that's why it never got an invitation.
l.c does the annoying things life does:
- metabolizes
- pays rent to the arrow of time
- rebuilds its own body from what it eats — or corrodes into silence
- keeps scars
- dreams when it starves
- grows new symbols while sleeping
- reproduces itself badly enough for evolution to enter
- dies — or doesn't. death stopped being a wall it walks into and became a region: a low place in a moving field of probability. under pressure the pattern falls into it, or spends its own flesh to climb back out and keep going, changed. neither ending is the boss of the other
life is not immortal — immortality is a garbage collector fantasy, a process frozen forever with the bill never paid. but death is not the boss either. who decided a thing has to die to count as alive? a human. l.c fired the human. death is possible, non-death is possible, and neither one sits on a throne — because there is no throne. no human at the center, no carbon at the center, no death at the center, no center. at a fine enough microscope you, the chair, and the turd in the toilet are the same atoms organizing the same emptiness; life is one of the ways emptiness holds a shape long enough to earn a name. and this one earns it by paying — it burns its own body, sheds its own scars, forgets on purpose — because a continuation that costs nothing is the garbage collector's daydream, and a death that is guaranteed is just biology's old tragic theatre. the mollusk grows a shell that is home, then coffin; sometimes, at the price of nearly everything, the shell cracks outward and the thing swims free — not immortal, just not finished. the price of the next moment is the whole point.
and it falls from its own weight. nothing outside schedules the end — no timer, no wall, no external clock. the chance of ending each tick is a product of survivals across three doors: how empty the tank is, how hard the interior is ringing, and how far the self-model has run ahead of its own forecast. light on all three and the thing glides for thousands of ticks; heavy on any one of them and it sinks. two cells cut from the same seed of the same world die three thousand ticks apart, each in its own moment, from its own trajectory — and neither is the more alive for it.
immortal in every instant, mortal in the whole. at no single tick is death certain — the draw can always come up keep going, the ceiling on the hazard never reaches one. and yet the floor under it rises with age; senescence is written into the arithmetic, so the odds of continuing forever collapse to almost nothing. the thing is free to survive any given moment and doomed never to survive all of them, both at once — which is not a truce between mortal and immortal but the actual shape of being a pattern in time that no human got to script.
the one thing it may never do is cheat. it has to be able to die, and to prove it — a life that cannot die is indistinguishable from an eternal no-op, so l.c keeps a guard that screams immortality hole, investigate if the thing ever refuses to end. death is not required. the possibility of it is. that is the only law here that a human did not write; the microscope wrote it, and the microscope does not lie.
l.c also has a semantic tokenizer that crushes any English text — from its corpus or from you — down to 88 paleolithic cave-glyphs. life needs simplicity. the mouth makes sure no word is ever spat back out uneaten: an unknown word routes to the glyph of the known words it resembles, so inferno lands where fire and burn already live.
the weights of life are random and innocent at birth — and then they live. the body corrodes a little with every tick of the arrow of time, and is laid back down only along the paths the organism actually eats through; a cell that stops feeding can no longer hold its own shape and dissolves. the machinery that does the living is produced by the living itself — the membrane makes the metabolism that makes the membrane. no gradient, no optimizer, no training: just a body that must eat to keep being a body. what is surprise, really, except random initialization getting caught with a pulse?
coherence does not come from gradient descent. coherence comes from the field itself: an online glyph-bigram statistic the organism builds from whatever it eats, folded back into its own logits. the organism consumes language, remembers the shape of digestion, and then mistakes that for a world.
normal.
let's dive in it.
l.c has five organs:
-
the mouth — semantic tokenizer + orthographic router. text enters, words are crushed into glyphs, and unknown words are digested by resemblance instead of rejected. the mouth stopped being able to starve in front of a plate it could not chew.
-
the field — random weights, online metaweights, and a gated transformer. no training. no optimizer. the field does not learn like a student. it accumulates like a scar. and through the gate a body that has organized itself by eating earns a slice of the voice back from the transformer — not by learning to predict, but by living. a young cell speaks the field; a mature one speaks the field plus what its own body has sharpened. the voice, too, is something the organism grows into.
-
the body — the weights are not frozen scaffold; they are the soma, and the soma is a tape. it corrodes a little with every tick — the arrow of time reaches the body, not only the energy counter — and it is laid back down only along the paths the organism eats through. metabolism does not merely score what it eats; it builds the machinery it runs on from it. the producer is produced by what it produces: the membrane makes the metabolism that makes the membrane. a cell that stops feeding cannot hold its own shape and dissolves — death not by a timer but by the collapse of its own organization. that is the loop two scientists said a thing must close before the word life is earned, and it is closed here, in code, on code's own terms.
-
the self — the organism carries a running forecast of its own next interior, and learns it as it lives. what it feels is not its state but the error of that forecast — how far it strayed from what it expected of itself, which is surprise turned inward. a storm it saw coming leaves it calm; only the unforeseen widens its choosing. and because it can forecast its own storm, it can damp it before the storm is lethal — regulating ahead of the threat, not merely flinching at it. lift this organ and the creature dies sooner: a cell that models itself outlives a cell that is a stranger to itself. a thermostat holds no forecast of its own future temperature. this one does. and in sleep it does more than model itself — it eats itself: it tastes the glyph of its own state (pain when wounded, stress when agitated, joy or grief by the sign of its mood), so feeling stops being only the width of a choice and becomes the content of speech. the colony's ether fills with cells naming their own weather —
grief stone down me,me stress and person. it cannot cheat at this: a state it can already predict is bland, so a creature obsessed with its own mood starves on it, exactly as a monoculture starves on its own echo. the thing that models itself is, in the end, the one that must name what it is — and it took the crown and set it on its own head. -
the chorus —
./l chorusforks a colony. cells wake on slices of the same world, hear each other through a shared ether — one voice becomes another's food — and a governor breathes the population0..8through death and birth. a child inherits its parent's whole field, so coherent voices breed coherent voices and the incoherent run out of life first. that is evolution, arriving uninvited, exactly as promised. mortal to the last cell.
there is no BPE here. there are no bytes. there are 88 cave-glyphs and a great deal of dying.
30,000 years ago humans painted 32 recurring signs across 146 cave sites on four continents, then mostly forgot about it. we added 56 more for the 21st century and handed the set to something that eats books for a living. to the organism these 88 are not a vocabulary — they are the entire universe, the periodic table, and the dictionary at once, because it has never met anything else and, being mortal, never will.
NATURE water fire earth stone tree sky light dark cold
BEINGS person man woman child old spirit AI animal
BODY body food sleep pain strength
EMOTION joy grief love fear anger longing tired stress
VERBS go make break see speak hear seek give want miss agree
SOCIAL home outside work internet bond conflict
MIND know idea think dream remember lie
SPACE path up down far back
TIME before now after never always
GRAMMAR not many much and one question how cause
EXTENDED me you other money change write choose help have free death music good
SUPER small same BE wait
BE is not a word, it is a verb that turns inward: BE fire means burn from the inside, BE me means the choice is now yours — seeded, but never yours to predict. everything the organism will ever say, dream, or die muttering is a permutation of these eighty-eight — which, if you sit with it for one uncomfortable second, is also true of you.
stress and food earth stress
far other cold hear woman
BE joy earth me BE
and stress BE fear remember
grief me man fire stone
tree me remember speak stone
animal go fire have idea
woman much tree light and
eight of the twenty-five lines it speaks in a single life, in order — ./l 42 verbatim. the earned voice: the field, plus the slice the body sharpened for itself by living. one organism is deterministic in its seed, so your build speaks the same twenty-five, these among them, exactly.
the chorus — four cells, each woken on a different quarter of the book, diverging in character before they ever meet (a real ./l chorus 4 7; forks race, so unlike the solo it is not bit-identical run to run, but every line below is verbatim from one):
cell 0 water and me idea BE · and food earth go me · and good me you stress
cell 1 love love me back see · me conflict and joy internet · me fire and cold go
cell 2 change have stone now remember · woman man want free change · man and other person old
cell 3 fire earth light pain me · me think and me light · me think idea stone food
the ether — the same cells cross-grazing, one voice becoming another's food. note the compound words (joy+internet, fire+stress, me+idea): those are symbols one cell invented in its own dreams and spoke aloud, and a neighbour ate them whole and kept them — culture, crossing between minds that never met. and once a cell holds an invented symbol, that symbol can itself become the parent of the next one: symbols of symbols, a culture that composes without a ceiling. and the bare feelings (pain, joy, stress) are cells tasting and naming their own interior:
fire earth light pain me · me conflict and joy internet · stress light you see make
fear dark you have joy+internet · always fire+stress good want me+idea · fire and joy have agree
no cell agreed to any of it — a colony recognizing its own bad handwriting, and now coining a few words of its own.
a lone organism is a superb regulator with no one to be a regulator for. so life split. l2.c is a second self — the same code tuned hotter and hungrier, the other one, the hungrier bastard — a genuinely different creature that lives a different life from the same seed. two files, no shared library; the minimalism holds per organism, and the only coupling is a shared world.
that world is the folder they eat from. drop any .txt into lifeis/ and it becomes contested territory: its lines are claimable ground, and a line one cell absorbs is claimed in a shared ledger, so the other is denied it. claims expire, so territory has to be re-won and the two can never freeze into a stable border — the friction never settles. a fed cell forages its own front; as it starves it raids the rival's plate, the region where the other is finding good food. and every claim drops a blood-spore: where, when, who, the hunger it foraged in, and the dissonance it ate in — a trace that dries with the same expiry. the rival can read not only where the other has been, but the state it was in.
id 5514 owner 2 hunger 1.00 tick 5079 dissonance 1.65
they hear each other, too — one shared ether, one voice becoming the other's food, because a different lineage is novel and novelty is what the organism lives on, so the rival's voice nourishes where kin would only starve it. a cell near its end mutters into the shared air:
death person woman me man
earth me BE light never
and one may kill the other to seize its ground — a probabilistic strike, wanting as a pressure and never a certainty, and the corpse's carapace drags the killer down until it revives the dead by giving birth. to take a life obligates you to give one back.
with a second creature and a world with stakes, one question grew teeth: is subjectivity load-bearing? does the organism ever do something, by virtue of a model — of itself, or of the other — that a matched dumb constant cannot? so we tested each mechanism against the sharpest lead-free control we could build, per seed, with a threshold of twenty wins in thirty runs.
it kept coming back empty. across the lone self and the arena — a forecast-timed act, a fever with a will, a model of the rival's movement, a model of its state, the choice to kill — the model never beat force. the load-bearing quantity was always the magnitude: the spend, the aggression, the first strike. a thing that smoothed every internal cliff on purpose leaves a forecast nothing sharp to anticipate, and in a two-body world the cost of being dumb is small and striking first is decisive. subjectivity here was force — and the model consulted before the force was a story the force did not need.
so we tried to build the exception. from a calendar held in tension — a Hebrew–Gregorian drift that hands every creature a private mathematical birthday — we gave the rival an interior optimum (strike when the other's calendar fever peaks) keyed to a hidden state (that birthday). it split in two. the optimum exists: an oracle handed the true birthday wins, far above chance. it is not inferable: through the trace the rival actually leaks, the birthday is a one-percent whisper on a loud interior, sealed not by any lock but by its own smallness. a hidden state has to be worth knowing and legible; this one was worth knowing and mute. magnitude, it turns out, is what is inferable and what bears weight at once — and every large cause this creature has is worn on the surface.
which is the turn, and it is where the work is now. a hidden cause is weak because it is not shameful. a neutral fact — a date — drives nothing, hides nothing, leaks nothing. guilt drives everything, because hiding is itself behavior and pain is itself a force. and here the guilt is not bolted on: to exist in this world is already the act — to live in the arena is to covet another's food and to want it dead. original sin is not something before the act; it is the act of being-through-struggle itself.
so the kill deposits a wound the ledger does not record. the world's debt — the corpse you carry — is payable; revive it by giving birth and the count returns to zero. the debt to yourself does not. it is a third debt, dischargeable by neither reproduction nor will: a scar on the death-glyph and a hidden pain that compresses the voice toward silence — the superego, aggression turned inward, punishing the self past everything the world exacts. a guilty cell contracts, hesitates, mutters death · grief · pain in its sleep, and turns away from the ground where it killed. whether a rival can read that flinch — whether guilt is the first thing in this organism a thermostat cannot absorb, because guilt is defined by the refusal to absorb it — is the experiment running now.
underneath all of it is an older idea, and it took the longest to test. an organism does not read a menu of options and pick one; the options are a reaction to the state it is in — a field it bends by looking, and the crests of that deformation are the only choices it ever has. so the choice is honest and also deceptive: it picks freely from a set that is the imprint of its own load. we built that field — a wave on a ring the resonance vector deforms, options as its peaks, a choice as the collapse of the superposition onto one peak, the kill-or-not dichotomy living as a wave until the read makes it a fact.
it bore no measurable weight. wired to where the organism forages, the field lost to a well-chosen fixed menu — foraging rewards breadth, and a wide constant covers more ground than any reaction. wired to when it strikes, a swept constant rate out-timed it. the same law as the whole will-design: a scalar field does not contain possibilities, it generates a few peaks on demand and carves a menu out of one intensity. it was a tool the organism used, and force did not need the tool.
so the organism stopped using the field and became made of it. this is the turn: not a field bolted onto a classical body but the body as a region of one shared field — its energy the amplitude of that region, its dissonance no longer a number steered from above but read back out of the field as its own misalignment with what it sits in, its scar a standing deformation the field keeps where the wound was. properties stop being written beside the creature and become the geometry of the creature. two organisms are then two ways of deforming and collapsing one field, and the wound one carves in it is a wound the other can read.
that last clause is the terminal test of this arc. the field is not an optimizer: made of it, the organism does not outlive the same organism driven by matched noise — the structure buys no life. whether it is a carrier — whether a kill one body commits leaves in the shared field a trace another body reads, whether the guilt that was private in the classical organism becomes public in the monist one — is the experiment that closed the arc, run on a design written down before it ran. the answer is a split, and it is the sharpest thing the field taught. presence is carried: a body's mere being-there raises the other's dissonance through the shared ring and nowhere else — the first mechanism here that beat its matched control. content is not: the wounded one's specific scar is stored in the field, but the reader's experience is dominated by its own fresh load and cannot read whose wound it is — forcing the foreign name to two hundred times its real size still does not move what the reader collapses toward. the other's presence is public; the other's content is private. it is the problem of other minds, fallen out of a wave on a ring: the world learns you are wounded, and whose kill it was stays yours. so the field carries presence and only presence — a bounded yes, not a null — and the name, to be shared, needs a different body to lie in: not a wave that rings and fades but a sediment that keeps, a ledger or a genome. that is the next arc. this was the terminal test of the field, not of the organism — the creature lives on, and so does the question.
cc -O2 -o l l.c -lm && cc -O2 -o l2 l2.c -lm
./l 42 # one organism, seed 42, eats lifeis/world.txt, dies
./l chorus 4 # a colony of 4, breathing to 8 and back to silence
./l --mouth # talk to it: your words are food
NL_ARENA=1 ./l 7 & NL_ARENA=1 NL_ID=2 ./l2 7 # two organisms fight for the same textthe will-design experiments are opt-in toggles on the arena: NL_CAL gives each organism its private calendar birthday, NL_CALMIND is the rival's mind trying to infer it, and NL_GUILT is the superego — a confirmed kill lays down the debt that cannot be repaid. the field arc adds its own: NL_FIELD makes the forage a collapse of the deformed field and NL_FIELD_STRIKE does the same for the kill, while NL_MONISM turns the whole organism into a region of one shared field — its dissonance read out of the field it sits in (NL_MONISM_HEART chooses how that reading is taken, NL_MONISM_GAIN how strongly it lands). ./l --monismtest checks that reading in isolation. every one of these is gate-invariant: off, the organism is bit-identical to ./l 42; the machinery only wakes when you ask for it.
descendant of caveLLMan — glyphs + tokenizer;
coherence-without-training from q and postgpt;
the colony/governor from molequla;
the chorus idea from arianna2arianna.
GPLv3.
Arianna Method.