
cazala
1.6K posts




















this ralph thing is insane. it took me months to develop the second runtime (webgpu) after having completed the first one (all with the help of claude + codex) yesterday night i left ralph running with the task of implementing a third runtime: webgl2 this morning I woke up and after a few iterations to solve a few issues, it had something that works: forces/render modules (environment, boundaries, collisions, interactions, trails) and a new runtime switcher 🤯



this ralph thing is insane. it took me months to develop the second runtime (webgpu) after having completed the first one (all with the help of claude + codex) yesterday night i left ralph running with the task of implementing a third runtime: webgl2 this morning I woke up and after a few iterations to solve a few issues, it had something that works: forces/render modules (environment, boundaries, collisions, interactions, trails) and a new runtime switcher 🤯

Ralph may be the most important thing to learn in AI right now. Someone used this technique to deliver an entire contract that would have cost $50,000 to outsource. Total API costs: $297. At a Y Combinator hackathon, teams shipped 6 working repositories overnight using the same approach. Geoffrey Huntley, who invented this, built an entire programming language over 3 months while barely touching his keyboard. Ralph is a bash loop that runs an AI coding agent repeatedly until a task is done. That’s it. While you sleep, while you eat dinner, while you do anything else, the loop keeps going. It picks up a task, builds it, checks if it works, saves the progress, picks the next task. When you wake up, features are finished. Why this works when normal AI coding fails: most people open Cursor or Claude with a vague idea and no structure. 45 minutes later they’re fixing the same bug for the third time. The AI forgot what they were building. The context got polluted. They’re frustrated and nothing shipped. The problem is task size. One feature has 20 pieces. The AI tries to hold all of them at once. It can’t. It hallucinates. It contradicts itself. You end up babysitting. Ralph fixes this by breaking work into pieces small enough that the AI finishes each one before it forgets what it’s doing. Each loop iteration starts fresh. Clean context. No accumulated confusion. Memory persists through git commits, a progress file, and a task list. The AI reads what happened last time, learns from mistakes, picks the next task. The workflow: Step 1: Describe what you want in plain language. Talk for 2-3 minutes. “I want users to filter tasks by priority. High, medium, low. A dropdown with all three options plus ‘all’. Selecting one filters the list immediately.” Then tell the AI to convert your rambling into a formal requirements list. Step 2: Break requirements into atomic tasks with binary success criteria. Good: “Add a priority column that defaults to medium.” Bad: “Make it work well.” The AI needs to know when it’s done without asking you. Pass or fail. Yes or no. Step 3: Run the loop. Ralph grabs a task, builds it, runs tests, commits if it passes, moves to the next one. You set a limit (10 rounds, 14 rounds, 20 rounds). It runs until everything passes or hits your limit. The math is brutal. A typical Ralph run: 10 iterations, roughly $30 in API costs. A senior developer costs $400-600 per day fully loaded. If Ralph gets you 90% there and you spend an hour on cleanup, you just converted an 8-hour workday into 1 hour plus $30. That’s $500+ of labor arbitrage per feature. Compound that across a month of building. Ralph can replace the majority of outsourcing for greenfield projects. The technique is “deterministically bad in an undeterministic world,” meaning when it fails, it fails predictably. You tune it like a guitar. When Ralph screws up a specific way, you add a guardrail to the prompt. The failures become instructions. The real shift is in role. You stop being the person who writes code. You become the person who writes requirements, defines acceptance criteria, and reviews output. Product designer, not engineer. “Software development as a profession is effectively dead. Software engineering is more alive than ever.” The people who understand systems, architecture, requirements, and quality will thrive. The people whose value was typing code faster are already obsolete. The gap forming right now: builders who know Ralph are shipping 5-10x more than everyone around them. Nobody understands how. The technique is free and open source. The barrier is just knowing it exists and spending 30 minutes to understand the pattern. Three months from now this will be in every YouTube tutorial and paid course. The window is right now, while most developers are still prompting Claude one function at a time and wondering why AI “doesn’t work for them.” github.com/snark-tank/ral…

@juancazala Yes, sph is more compressible, so it forms fluid with pressure gradient, and particles on top are like sand or a gas. Doesn't look as satisfying as pic/flip. Also pic/flip is faster and easier in implementation.





