March 7, 2026
Euclid meets Game Boy, chaos ensues
CasNum
CasNum: Ancient geometry powers a Game Boy, and the comments go wild
TLDR: A new project makes a Game Boy’s math run on ruler-and-compass geometry, turning ancient ideas into a playful modern hack. Commenters split between dazzled praise, confused head-tilts, and meme-y “can it run Doom?” jokes, with the creator chiming in—proving delightful weirdness can still unite the internet.
The internet just stumbled onto CasNum, a passion project that turns ancient ruler-and-compass geometry into a way to do math—and then wires it into a Game Boy emulator so the console’s “calculator brain” runs on geometry. Yes, it’s as gloriously ridiculous as it sounds, and the comments are having a field day. Check out the GitHub repo.
The thread’s vibe swings between awe, confusion, and pure comedy. One user reposted the project’s tongue-in-cheek FAQ and the crowd fixated on the zingers: the eternal “can it run Doom?” meme met the deadpan “it’s a number,” while the line “I wanted arbitrary precision arithmetic, but I also wanted to feel something” had people nodding like it’s math therapy. Another commenter confessed, “I have no idea what is going on here,” capturing half the audience’s head-scratching while fans shouted, “Coolest thing I’ve seen in a while.”
There’s light drama over usefulness vs. art project: speed skeptics were disarmed by jokes like “faster than copying Euclid by hand,” as others shared learning links like this doubling the cube video. Meanwhile, the dev popped in—wholesome alert—to say thanks and ask how folks found it. Verdict from the peanut gallery: maybe not practical, but unbelievably delightful. “You can’t square the circle,” someone quips, “but apparently you can play Pokémon with Euclid.”
Key Points
- •CasNum implements arbitrary precision arithmetic using compass-and-straightedge constructions, representing numbers as points (x,0).
- •Arithmetic (addition, multiplication, division) is built via geometric methods; logical operations (AND, OR, XOR) are also supported.
- •Optimizations include efficient multiply-by-2 and a faster modulo by removing highest power-of-two multiples first.
- •CasNum integrates into the PyBoy Game Boy emulator, requiring minimal edits (opcodes_gen.py) so ALU opcodes run geometrically.
- •The repository provides runnable examples (basic, RSA) and a viewer to visualize constructions, with Python-based run instructions.