VerboseFuck
Brainfuck where + is math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255));.
David.werecat, 2012 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
David.werecat made VerboseFuck in 2012 by making brainfuck verbose. Each of the eight commands is spelled out as a line of made-up system calls that looks like a serious enterprise language. Behind it is plain brainfuck, one line per command.
Read the story
The language also asks for ceremony. Every program opens with eight lines that initialize the program, open the streams and allocate an infinite bidirectional block of memory, and closes with five lines that free it all again. There must be at least one comment for every 1000 bytes of code, so the Hello World is sprinkled with comments that say MANDATORY.
The machine
| Brainfuck | VerboseFuck, shortened |
|---|---|
< > | math.equation(pointer = pointer - void(1)); and + |
+ - | math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); and - |
[ | define(defines.label, ...); conditional(block.if, ...) { |
] | }; conditional(block.if, ...) { program.flow.labeledjump(...); }; undefine(...); |
, | math.equation(deref(pointer) = programcode(...readunbufferedchars(1)...)); |
. | program.console.standardoutput.stream.writeunbufferedchars(...); |
Spaces, tabs and newlines are removed before anything else, so a command may be broken over lines. Comments go between ~!comment!~ and ~!uncomment!~.
Example
Brainfuck's ,., which copies one byte, takes 16 lines.
Brainfuck's ,., which copies one byte, takes 16 lines.
The Hello World is 11,345 characters long and prints Hello World! and a newline.
Further
Ideas it shows
See also
VerboseFuck builds on Brainfuck.
Brainfuck equivalents
Write your own in Run Convert a program from VerboseFuck
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: verbosefuck.
Command line
shib run verbosefuck program.txt --input 'verbose'The program is long; save it as program.txt first.
shib manual verbosefuckSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/verbosefuck.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org