We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Deadsocket
Jump to navigation
Jump to search
Deadsocket is a Deadfish derivative invented by None1. It can open sockets, but not using them.
Commands
| Command | Operation |
|---|---|
| i | increment the accumulator |
| d | decrements the accumulator |
| s | open a socket and discard it |
| o | output the accumulator |
Examples
XKCD Random Number
iiiio
Open a socket
s
Interpreter
Python
import socket
c=input()
x=0
for i in c:
if i=='i':
x+=1
if i=='d':
x-=1
if i=='s':
socket.socket()
if i=='o':
print(x)
x%=256