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
These examples include languages which are precisely trivial deadfish substitutions as well as languages which contain trivial deadfish substitutions as subsets. For example, a subset of four commands of 嘭!哐!叮!呲!咣! is a trivial deadfish substitution, but the entire language has extra commands which do not correspond to deadfish.
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("嘭!", "哐!", "叮!", "呲!")
|
| ΙΧΘΥΣ variation | TrivialDeadfishSubstitution("ι", "χ", "θ", "υ")
|