Grounded
Every line is an hour of being grounded, and at 9:30PM you go to bed.
Cinnamony, 2023 · Turing complete: no · ●●○ moderate · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
Cinnamony made Grounded in 2023, after a time of being grounded from the computer. The program is the grounding. It starts on Friday at 7:30AM, every command takes an hour, and at 9:30PM the only thing left to do is sleep. Three days of grounding make a program of exactly 45 commands, 14 and a sleep for each day. Bothering your parents adds a day, so 15 more.
Read the story
What you do in those hours drives a small tape machine. Making plushie movies counts up, uninstalling an app counts down, watching cartoons moves along the tape and making a book prints a letter.
The machine
| Command | Does |
|---|---|
make plushie movie | Add 1 to the cell |
make plushie movie series | Add 10 |
uninstall app on tablet | Take 1 away |
daydream | Double the cell |
watch steven universe watch adventure time | Move right or left |
make book | Print the cell as a letter, 1 is A and 26 is Z |
read | Read a letter into the cell |
wait | Nothing, at most twice in a row |
tech lab | Nothing, and only on Saturday at 12:30PM |
bother parents | One more day of grounding |
sleep | Go to bed at 9:30PM and wake at 7:30AM |
A // starts a comment. There are no loops and no jumps, so a program runs once from top to bottom and the calendar fixes its length. A sleep at any other hour, or a program that stops while still grounded, is an error. The specification leaves daydream open, and this implementation doubles the cell.
Example
The Hello world.
The Hello world. Each comment gives the time after its line. The bother parents on Sunday night buys the Monday it needs for the last L and the D.
Five cells hold the letters. The third prints the O of HELLO on Saturday, then the O, R and L of WORLD, counting down from R to L across Sunday night.
The cat reads one letter on Friday morning and prints it at once. The rest of the grounding still has to be served, and it fills those three days with 39 daydreams.
Further
See also
Also in Jokes
Write your own in Run Convert a program from Grounded
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: grounded.
Command line
shib run grounded program.txt --input 'G'The program is long; save it as program.txt first.
shib manual groundedSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/grounded.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org