We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
QoLfuck
Jump to navigation
Jump to search
QoLfuck (pronounced cal-fuck) is an brainfuck derivative by User:RandomAnonyomous. It adds quality of life features such as functions and shorthands for various things.
Commands
| Command | Function |
|---|---|
+-><[]., |
Same as brainfuck |
+c |
Increment current cell by the ASCII value of c (default 1) |
-c |
Decrement current cell by the ASCII value of c (default 1) |
>c |
Move pointer ASCII value of c cells left (default 1) |
<c |
Move pointer ASCII value of c cells right (default 1) |
≶c |
Jump to cell with index of the sum of ASCII values of each character in c
(Zero indexed, pointer starts at cell 0) |
[code]c |
Run code ASCII value of c times |
˙ |
Output current cell as number |
߸ |
Input number and store in cell, throws error if input is not a number |
%c |
Set current cell to itself modulo the ASCII value of c |
「text」 |
Print text |
sc |
Set current cell value to the ASCII value of c (default 0) |
λname:codeλ |
Define function with name name that runs code when called |
λname; |
Call function with name name |
u |
Undefined behavior |
Note: Underlined text is placeholder text
Escape characters
| Escape character | character to escape |
|---|---|
␀␁␂␃␄␅␆␇␈␉␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟␡ |
Corresponding control character |
⊕⊖⧁⧀⟨⟩⊙、 |
Corresponding brainfuck lookalike |
ⓢ |
s |
ⓤ |
u |
Example Programs
All brainfuck programs work in this esolang.
Hello, world!
「Hello, world!」
99 bottles of beer
+c.[「 bottles of beer on the wall,
」.「 bottles of beer
Take one down, pass it around,
」-.「bottles of beer on the wall
」]b「1 bottle of beer on the wall,
1 bottle of beer,
Take one down, pass it around,
No more bottles of beer on the wall
No more bottles of beer on the wall,
No more bottles of beer,
Go to the store and buy some more,
99 bottles of beer on the wall」
Truth machine
߸[˙]˙
With undefined behavior if neither 0 nor 1:
߸[[>+>+<<-]>-[u]>[˙]]˙
Turing Completeness
QoLfuck is Turing complete because it is a superset of brainfuck.