8-bit computer from one NAND gate, a live-evolving neural net, and virtual CPU
VirtualPC is an educational project that lets you build and run a complete 8-bit computer entirely in Python. Starting from a single NAND logic gate, it constructs an Arithmetic Logic Unit, a CPU, an assembler, and a virtual machine that can run programs you write in a custom assembly language. The project includes an AI Pong game where a neural network opponent learns while you play, plus an experimental system called FluxOS where you describe what you want (like 'learn XOR') and gradient descent discovers the underlying logic gates from examples you provide. Everything runs in pure Python with no extra dependencies, and the entire machine fits in your head.
How It Works
You find a project where someone built an entire working computer from scratch, starting with just one tiny logic gate.
You launch the virtual machine and run simple programs like 'hello world' or a number guessing game, all running on a computer you can see and understand.
You open the Pong game and discover the AI paddle learns while you play. Score against it, and it gets worse. Let it score, and it gets better.
You write assembly code to make the virtual CPU calculate Fibonacci numbers, draw patterns, or run games. Everything traces back to those original logic gates.
In FluxOS, you type 'learn XOR' and then show it examples: '0+0=0, 0+1=1, 1+0=1, 1+1=0'. The machine figures out the logic on its own through training.
In FluxOS, you see the machine discover XOR, AND, and OR gates purely from examples. You can watch a live display where the circuit draws itself as it learns.
You've experienced building a computer from the ground up, watched an AI learn in real-time, and discovered that programming can mean teaching by example instead of writing instructions.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.