March 8, 2026
Candy code, spicier comments
I made a programming language with M&Ms
M&Ms as code has devs laughing, eye‑rolling, and hungry
TLDR: A programmer turned piles of M&Ms into a tiny language that compiles from candy layouts, sparking applause for playful creativity and groans about gimmicks. The thread split between “this is joy” and “this is derivative,” with memes about database disasters and snackable code keeping everyone entertained.
A coder spilled candy and built MNM Lang, a goofy mini language where candy colors and counts stand in for commands. It even compiles to an image and back, with a photo decoder and a browser playground. The author bluntly says it’s not practical—just a dead‑serious take on a silly idea—and pushed text into a side file so the candy picture stays visual. The community reaction? Deliciously messy.
The hottest take came fast: one commenter called it “AI slop” and said the minimalist classic Brainfuck did it first. That kicked off a mini culture war: is this joyful tinkering or meme‑ware for clicks? The author jumped in to say it’s about rediscovering childlike wonder in coding—asking “can I hack on this?” about everyday stuff. Cue a chorus of supporters applauding the craft and the working interpreter, and skeptics rolling their eyes at the candy‑coated complexity.
Meanwhile, the jokes wrote themselves. One wag warned we’re “one spilled bag away” from nuking a company database. Another asked the truly vital question: which flavor—and is snack theft a security risk? A deadpan zinger—“What color is your function?”—became the thread’s instant meme. Love it or loathe it, MNM Lang is proof that even in a serious industry, sugar can still spark a food fight.
Key Points
- •MNM Lang encodes instructions by color family and operands by token length minus one.
- •Source is written as runs of letters (B, G, R, Y, O, N), compiled to PNG and decompiled back to source exactly.
- •A controlled photo decoder can recover programs from mildly skewed images.
- •Strings and initial variables are stored in a sidecar JSON file, separating structure (.mnm) from runtime data (.mnm.json).
- •The project includes a CLI, browser playground, example programs, tests, an inline interpreter, and a dedicated sprite pack.