esolang

Dotfuck

A program is a row of dots. Only how many there are matters.

None1, 2023 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: x

The idea

None1 made Dotfuck, or .fuck, as a clone of Unary that uses dots. The number of dots is written in binary, cut into groups of three bits, and every group is one brainfuck command. Ten dots is binary 1010, padded to 001 010, which is ,., a cat that copies one byte.

Read the story

The - command is given up so that no group is 000, which would make leading zeros vanish. Without -, a cell only goes down by wrapping round, 255 steps up. So programs grow fast. Printing HELLOWORLD takes a number of dots with 1,358 octal digits, more than 10 to the power 1,200, far more than there are atoms in the universe.

The machine

BitsCommand
001 ,010 .
011 <100 >
101 [110 ]
111 +

The translator also takes the number itself instead of the dots. That is the only way the HELLOWORLD program can be written down.

Example

The second is that many dots: 72 pluses and a print, then 33 more pluses and a print, in octal.
Expected: Hi

The second is that many dots: 72 pluses and a print, then 33 more pluses and a print, in octal.

Further

Ideas it shows

Dotfuck builds on Brainfuck.

Zero-dimensional languages

Brainfuck equivalents

Write your own in Run Convert a program from Dotfuck

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run dotfuck -e '..........' --input 'x'
shib manual dotfuck

Source

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

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

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