esolang

noCap

A plain scripting language, said in Gen Z slang. Variables are fr, functions cook and true is no cap.

Psuranas, 2025 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: Hello world!

The idea

Psuranas made noCap in 2025, after the book Writing an Interpreter in Go. Under the words it is an ordinary dynamic language much like JavaScript, with closures, arrays and maps. Most keywords are slang. cap is a lie, so it means false, and noCap means true. A function is cooked and yeets its result. A loop stalks a list, and printing is caughtIn4K.

Read the story

Arrays count from 1, so arr[0] is an error.

The machine

WordMeans
fr x = 1;Declare a variable
cap noCap ghostedFalse, true, null
is aint nahEqual, not equal, not
cook f(a) { } yeetA function; return
vibe (c) { } unless (c) { } nvm { }If, else if, else
stalk (x in list) { }Go through an array, a string or a map's keys
onRepeat (c) { }While
bounce passBreak, continue
caughtIn4K count spread slidePrint each value on a line; length; a range or the characters; push

Only ghosted and cap are false. A function without yeet gives the value of its last statement. The specification keeps integers and floats apart and shows 4 * 2.5 as 10.0. This implementation leaves that out. Every number is a double, printed as JavaScript writes it, so the same product prints 10.

Example

The countdown.

The countdown.

Expected: T-minus 5 T-minus 4 T-minus 3 T-minus 2 T-minus 1

The loop with pass and bounce. It skips -5 and stops at 0, before 15.

Expected: Processing: 12 Processing: 8

A closure from the specification. The outer function cooks the inner one and yeets it, and the inner one keeps the rate.

Expected: 85

Further

Also in Jokes

Write your own in Run Convert a program from noCap

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run nocap -e 'caughtIn4K("Hello world!");'
shib manual nocap

Source

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

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

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