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.
Trivial deadfish substitution
A trivial deadfish substitution is a trivial substitution into deadfish.
Because of how halting works in deadfish, there are two arities of substitution, with five commands and four commands respectively. To program in the five-command variant TrivialDeadfishSubstitution("a", "b", "c", "d", "e"), first program in deadfish, then perform the following substitution:
| Deadfish | Substitution argument | Description |
|---|---|---|
i
|
"a" | increment |
d
|
"b" | decrement |
s
|
"c" | square |
o
|
"d" | output |
h
|
"e" | halt |
To program in the four-command variant TrivialDeadfishSubstitution("a", "b", "c", "d"), first truncate the input program before the first "h", then apply the above substitution, ignoring the final row.
Examples
Five-command
| Language | Trivial deadfish Substitution |
|---|---|
| Standard Deadfish | TrivialDeadfishSubstitution("i", "s", "d", "o", "h")
|
| Sakana variation | TrivialDeadfishSubstitution("増", "減", "乗", "出", "停")
|
| Pește mort | TrivialDeadfishSubstitution("c", "s", "p", "i", "o")
|
| Numbered DeadFish | TrivialDeadfishSubstitution("1", "2", "3", "4", "5")
|
Four-command
| Language | Trivial deadfish Substitution |
|---|---|
| Standard Deadfish | TrivialDeadfishSubstitution("i", "s", "d", "o")
|
| XKCD variation | TrivialDeadfishSubstitution("x", "d", "k", "c")
|
| f() variation | TrivialDeadfishSubstitution("f", "f()", "f ()", "f(())")
|
| F!-- | TrivialDeadfishSubstitution("F!", "U!", "C!", "K!")
|
| ΙΧΘΥΣ variation | TrivialDeadfishSubstitution("ι", "χ", "θ", "υ")
|