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
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
| Word | Means |
|---|---|
fr x = 1; | Declare a variable |
cap noCap ghosted | False, true, null |
is aint nah | Equal, not equal, not |
cook f(a) { } yeet | A 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 pass | Break, continue |
caughtIn4K count spread slide | Print 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.
The loop with pass and bounce. It skips -5 and stops at 0, before 15.
A closure from the specification. The outer function cooks the inner one and yeets it, and the inner one keeps the rate.
Further
See also
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 nocapSource
- 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