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.

Brainfucker

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Brainfucker is a derivative of brainfuck. Not wrapping, of course.

Architecture

Brainfucker deploys a two-dimensional Cartesian grid of numbers, this memory's dispansion being infinite along both axes. Each cell's capacity measures a scalar integer number of signed constitution, imposing in its magnitude no natural constraints.

Commands

Command Description
+ add
- subtract
* square
/ square root
. output as number
, input as number
[ jump to ] if 0
] jump to [ if non-0
> move right
< move left
v move down
^ move up

Examples

123 (not hello world thats impossible)

+++*++*++.

Series of Squares

The below code produces the series (1, 2, 4 (= 2 * 2), 16 (= 4 * 4), 256 (= 16 * 16), …), the tmema of which, commencing with the third member, employs the squaring operation * for its telos' pursuit:

++++++^+.+.v[^*.v-]

Cat Program

This repeating numeric cat program terminates on a zero-valued (0) input:

,[.,]

Truth-Machine

The following adduces a truth-machine in this language:

,[.].

See also

Interpreter

  • Common Lisp implementation of the Brainfucker programming language.