esolang

Deadfish~

Deadfish with characters. c prints the number as a character, { } repeats ten times, ( ) runs once if the number is not 0.

2007 · esolangs.org

Tested with 4 examples and 4 known programs · Hello World on Try It Online: identical · Test method

Run it

Hello World

Expected output

Hello, world!

Output


What it is

Deadfish~: Deadfish plus c (a character), {..} ten times, (..) once if not 0, h halts, w prints Hello, world! w says what the page says; TIO's interpreter capitalises World, which mode tio follows

Read the story

i increments, d decrements, s squares, o prints the number, c prints it as a character; the accumulator becomes 0 on reaching 256 or -1. {..} runs ten times, (..) once if the accumulator is not 0, h stops, w prints Hello, world!

How its machine works

Its machine has one accumulator, repetition of commands.

Deadfish~ reads no input.

Examples

Example

Expected output

ABCDEFGHIJKLMNOPQRSTUVWXYZ

Output


Example

Expected output

Horrrrrrrrrrible

Output


Example

Expected output

Horrrrrrrrrrible

Output


Quirks

  • A run stops after 3,000,000 steps.

Deadfish derivatives

Write your own in Run Convert a program from Deadfish~

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run deadfishtilde -e 'w'
shib manual deadfishtilde

Source

Module
langs/classic.js

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

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