Deadsnail

From Esolang
Jump to navigation Jump to search

Deadsnail is an esolang created by User:None1.

Its goal is to annoy its users.

Introduction

Deadsnail is the same as Deadfish with character output. However, before executing every command (characters that aren't i,d,s or o are NOP commands, so they are still commands), it waits for 500 years. After that, there is a 99.999999999999999999999999999999999999999999% probability that it crashes abnormally for each command.

Example Programs

Hello World

iiisdsiiiiiiiioiiiiiiiiiiiiiiiiiiiiiiiiiiiiioiiiiiiiooiiio
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddoddddddddddddo
dddddddddddddddddddddsddoddddddddoiiioddddddoddddddddo
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddo

You need to wait for 4118266800000 seconds (which is 130500 years or about 4.12 trillion seconds) before it terminates, and like other programs in this language, this program usually crashes abnormally.

Note:Line feeds aren't part of program

Interpreters

Python

from time import sleep
import sys
from random import uniform
c=sys.stdin.read()
x=0
for i in c:
    for i in range(157788):
        sleep(100000)
    if uniform(0,1)<0.99999999999999999999999999999999999999999999:
        raise Exception
    if i=='i':
        i+=1
    if i=='d':
        i-=1
    if i=='s':
        i*=i
    if i=='o':
        print(chr(i),end='')
    i%=256