esolang

OSColang

A program is a list of object show episodes. The episode number says what to do.

Anywaydun, 2026 · Turing complete: unknown · ●●○ moderate · esolangs.org

Tested with 5 known programs · Test method

Run it

Expected: Goiky

The idea

Anywaydun made OSColang in 2026 to mark 16 years of BFDI and the object show community around it. Every line is written as Acronym Number: Title, like BFB 6: Four Goes Too Far. A program starts with BFDI 1a: Take the Plunge and ends with BFB 30: Chapter Complete.

Read the story

The specification calls a program pure when every line is a real episode and no line repeats. Its Hello World is pure. It takes Hello from the title Hello Again..., the comma from Yeah, Who? I Wanna Know, the space from A Leg Up in the Race, World from All the Time in the World and the ! from Crybaby!, and glues them together.

The machine

The Number of a line picks one of 16 instructions. The lines right after it are its arguments, one per line, and each gives the field the instruction asks for.

NumberDoesTakes
1, 11Declare a variable; clear itAcronym
2Append text to a variableAcronym, Title*
3Give the Acronym, Number or Title of a lineNumber, line
4, 5Give a word or a character of a textNumber, Title*
6Print a variableAcronym
7Jump to a line if a variable is not 0Acronym, Number
8Give a line of input
9, 10Add to or take from a variableAcronym, Number
12, 13, 14Give a variable, the code of its first character, the character of its codeAcronym
15Give the character of one variable at the index in anotherAcronym, Acronym
16Nothing

A Number that is not a number means the previous result. So does a Title* when its line's own Number is not from 1 to 9. Lines and indexes count from 1. Each print ends with a line feed, which the FizzBuzz and 99 bottles need to keep their lines apart.

Example

The cat declares BFB, reads a line, appends the previous result to BFB and prints it.

The cat declares BFB, reads a line, appends the previous result to BFB and prints it. Get in the Van is numbered 5a, which is not a number, so it stands for the line just read.

The truth machine prints its input and jumps back to line 8, the print, while the input is not 0.

Expected: 0

The XKCD random number always gives 4. It adds 4 to an empty variable and prints it.

Expected: 4

The 99 bottles of beer and FizzBuzz are impure, with lines like ? 12: ?. The FizzBuzz finds each remainder by taking 15, 5 or 3 away until the number turns negative, which it sees as a - in front.

Patterns it teaches

  • Camouflage: only the numbers and the chosen words count; the rest is a list of episodes.

Further

Also in Camouflage

Write your own in Run Convert a program from OSColang

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: oscolang.

Command line

shib run oscolang -e 'BFDI 1a: Take the Plunge 
BFDI:TPOT 1: You Know Those Buttons Don'\''t Do Anything, Right? 
ONE 1: Freefall 
BFDI:TPOT 9: Outbreak At Stake 
ONE 2: Just Tripped 
BFDI:TPOT 4: Gardening Zero 
BFDI:TPOT 6: The Great Goikian Bake-Off 
ONE 3: Screwball 
BFB 30: Chapter Complete'
shib manual oscolang

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/oscolang.js

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

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