esolang

Boring and Idiotic milk supper

Brainfuck as a day of drinking milk, where every mistake ends in a death notice.

Turing complete: yes · ●○○ easy · esolangs.org

Tested with 4 known programs · Test method

Run it

Expected: hello world

The idea

The specification calls it an esolang about a totally casual day of drinking milk, BAIMS for short. Under the milk it is brainfuck. The cells are stomachs that each hold 0 to 500 liters, and the commands are what you do with one. You sip 1 liter, drink 6 and chug 33, and fart, toilet and diarrhea take the same amounts away again.

Read the story

The specification lists ten death notices. A stomach below 0 or above 500, insulin and glucagon that do not pair up, a scream at 350 or more, more than 10,000 screams and reading past the end of the input each stop the run with the specification's own words, such as "Your stomach was so filled with milk you exploded. You died."

The machine

WordDoes
sip drink chugAdd 1, 6 or 33 liters
fart toilet diarrheaTake away 1, 6 or 33
replacement revertGo to the stomach on the right or on the left
screamPrint the amount as a character
examinationPrint it as a number with L after it
insulin ... glucagonLoop while the amount is not 0, as brainfuck's [ and ]
hunger quantityRead a character or a number
thought ... nevermindA comment

Nine words end the supper early, overdose, dehydrated, diabetes, full, bye, constipation, homework, bored and studying. Words are split at spaces and line breaks, and a word the specification does not list is its curfew error.

Example

Hello World, which the specification says comes out in lower case.

Hello World, which the specification says comes out in lower case. Three chugs, a drink and a fart make 104, an h.

The adder reads two numbers and pours the first into the second, one liter at a time.

Expected: 5 L

The truth machine. On 0 it skips the loop and screams 48, a 0. On 1 the loop screams 1 for ever, or would; the 10,001st scream kills it, so it prints 10,000 ones.

Expected: 0

The cat echoes its input and then dies at the end of it, since reading past the end is an error. "You didnt get the milk that dad promised he was getting."

Expected: milk

Patterns it teaches

  • Turing tarpit: brainfuck under other names, with stomachs for cells.
  • Camouflage: a program reads as a list of things someone does at supper.

Further

Boring and Idiotic milk supper builds on Brainfuck.

Brainfuck derivatives

Write your own in Run Convert a program from Boring and Idiotic milk supper

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: boring-and-idiotic-milk-supper.

Command line

shib run boring-and-idiotic-milk-supper -e 'hunger insulin scream hunger glucagon overdose' --input 'milk'
shib manual boring-and-idiotic-milk-supper

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/boring-and-idiotic-milk-supper.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org