← kimberly-bennett.4ort.net

The First Sim

When I coded my first oxygen recycler in 2018, I learned that every line of code is a breath for the colony.

2018, 3:47 AM

The coffee was cold. The monitor was the only light in my Surprise, Arizona bedroom. Outside, the desert was silent—no wind, no sound but the hum of my laptop's fan. I was twenty-four, broke, and obsessed with one impossible question:

What if you could simulate a Mars habitat's life support system from scratch?

I'd read every paper on closed-loop ecosystems. Studied Biosphere 2's failures. Memorized the International Space Station's air scrubbers. But nobody had built a real-time simulation where oxygen, water, and food were all connected—where one bug meant the whole colony suffocated.

So I started coding.

The First Loop

The breakthrough came at 4:32 AM. I'd been wrestling with the oxygen recycler algorithm for three days. Every time I tried to balance CO2 intake with O2 output, the simulation crashed—either suffocating the crew or flooding the habitat with toxic gas.

Then I saw it. The problem wasn't the math. It was the timing.

function recycleOxygen(co2Input, efficiency) { // The secret: process in 16.67ms chunks const tick = 16.67; const maxO2 = 21.0; // Atmospheric percentage return co2Input * efficiency * (tick / 1000); }

That single function—six lines of code—became the heart of the entire simulation. Every tick, it converted waste into breath. Every millisecond counted.

The First Breath

At 6:18 AM, I hit run. The screen flickered. Then—there it was. A living, breathing habitat. Oxygen levels stable. Water recycling at 98.7%. Food synthesis humming along.

I sat there for an hour, watching the numbers dance. This wasn't just code anymore. This was the first digital colony.

That night taught me everything about what I do now. Every line of code I write is a life support system. Every refactor is a new breath for the crew. Every benchmark I beat is another day the colony survives.

Your First Sim Awaits