Ecstatic
A program is a row of exclamation marks. Only how many there are matters.
JWinslow23, 2013 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 4 known programs · Test method
Run it
The idea
JWinslow23 made Ecstatic in 2013, after Unary and MGIFOS. You write a brainfuck program, turn every command into three bits, put a 1 in front and write that many exclamation marks. The table is the one CompressedFuck uses, so + is 000 where Unary has >.
Read the story
The one time cat ,. is 1 101 100 in binary, which is 108 marks. The looped cat ,[.,] takes 56,623. The Hello World in the specification takes a number of marks with 113 digits.
The machine
| Bits | Command | Bits | Command |
|---|---|---|---|
| 000 | + | 001 | - |
| 010 | > | 011 | < |
| 100 | . | 101 | , |
| 110 | [ | 111 | ] |
Everything but ! is ignored. A count that is not a 1 followed by whole groups of three bits is not a program. A program written in digits is taken as the count itself, since the real ones fit on no disk. Cells are bytes that wrap, and , reads 0 at the end of the input.
Example
The first is 108 marks, the cat that copies one byte.
The first is 108 marks, the cat that copies one byte. The second is the looped cat written as its count. The third is the Hello World, the number written the way the specification writes it.
Patterns it teaches
- Encoding tricks: every program is a natural number, written in the longest way there is.
- Turing tarpit: one symbol, and brainfuck underneath.
Further
See also
Ecstatic builds on Brainfuck.
Brainfuck equivalents
Cell-based
Write your own in Run Convert a program from Ecstatic
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: ecstatic.
Command line
shib run ecstatic -e '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' --input 'a'shib manual ecstaticSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/ecstatic.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org