Beefydie
Every command is a line from Battle for Dream Island, and every open command ends in cake.
Fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, 2024 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Beefydie was made in 2024 after ArnoldC, with lines from the web animated series Battle for Dream Island in place of film quotes. DON'T CALL ME NEEDY prints, OMIGOSH adds one and YOYLECAKE closes whatever the last function-like command opened.
Read the story
The specification lists 41 commands and gives a Python interpreter, and the two do not agree. This implementation follows the interpreter. It spells two commands differently, NO AND THATS IT and IT'S BRAKE AT FLAKE, and has no BEEP. THE POWER OF TWO, DA and NO compare a slice of the line one letter shorter than themselves, so they never match. AW SERIOUSLY sets a variable nobody reads, and the while loop is closed by the same YOYLECAKE that would start it. So every line runs at most once and every program stops.
The machine
There is one current value, a stack, a memory and a stack of open flags. Values are Python's whole numbers of any size, floats, True and False, and text, and they print as Python prints them.
| Line | Does |
|---|---|
NOT MY CHEESECAKE UH PIN WRONG FINGER YOU PLAYED FOUR I DON'T HAVE A FAVORITE NUMBER | Set the value to 0, 1, 4 or 8 |
TEN THOUSAND IS ALSO TEN TO THE FOURTH YEAH SEEMS KINDA SUS TO ME | Set it to 10000, True or False |
COOL STORY BRO | Set it to the next line, as text |
OMIGOSH ONE TWO THREE FOUR WHO DO WE NOT ADORE | Add 1, take 1 |
I'M NOT BLUE I ONLY COUNT ONE NOW MY CHANCES OF WINNING WENT FROM | Not, length, float |
WHEN DID I GIVE YOU PERMISSION TO SPEAK IT'S BRAKE AT FLAKE | Read a line as text, or as a whole number |
OUT OF MY WAY I NEED MY SPACE WHY DO I HAVE TO GO TO FOUR | Push the value; take the stack item it names |
I WANT REVENGE YEAH YEAH WE KNOW | Store the value in memory; get it back |
DON'T CALL ME NEEDY NO AND THATS IT YEAH I KNOW SHE WAS SO SURPRISED | Open a print, an add or an equals |
WHO CARES IF YOU'RE ADOPTED WHICH IS I AIN'T GIVING UP | Open a subtract, an if or a quit |
YOYLECAKE | Finish the newest open command with the value current now |
An open command keeps the value it saw, and YOYLECAKE combines it with the value at that moment. A false WHICH IS jumps past the next YOYLECAKE. Reading input shows the current value first, because the interpreter hands it to Python's input() as the prompt.
Example
The first is Hello World.
The first is Hello World. The second is a cat, and it prints the prompt 0 before the line it copies.
The add opens with 4 and closes with 8, which makes 12. A float prints with its .0. The if is false, so its body up to the next YOYLECAKE is skipped; with YEAH in the first line it prints yes and done.
Patterns it teaches
The specification says a quine is impossible, because there is no way to write a line feed.
- Camouflage: a small imperative language dressed up as quotes from a cartoon, like ArnoldC in film quotes.
The specification says a quine is impossible, because there is no way to write a line feed.
Further
See also
Pseudonatural
Stack-based
Write your own in Run Convert a program from Beefydie
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: beefydie.
Command line
shib run beefydie -e 'DON'\''T CALL ME NEEDY
COOL STORY BRO
Hello World!
YOYLECAKE'shib manual beefydieSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/beefydie.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org