esolang

DeadSimple

One number, four commands, and no way to loop. Every program runs straight through once.

Zackery Mowrer, 2018 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: Hello, world!

The idea

Zackery Mowrer made DeadSimple in 2018. It first had the name R U DS, short for Are You Dead Serious? The current name says it is dead simple to program in. There is one integer and four commands that change or print it. With no jump and no loop every program ends, so the language is total and not Turing complete.

Read the story

Everything that is not a command is a comment, lower case s too. That is why the Hello World can write # space next to a line.

The machine

CharDoes
_Set the number to 0
+Add 1
-Take 1 away
SPrint the character with that code

Example

The Hello World on one line.

The Hello World on one line. It climbs to 72 for H, then moves up or down to each next letter, and resets to 0 before the comma, the ! and the line feed.

Expected: !!!

Further

Ideas it shows

Also in Turing tarpits

Write your own in Run Convert a program from DeadSimple

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run deadsimple program.txt

The program is long; save it as program.txt first.

shib manual deadsimple

Source

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

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

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