Difference between revisions of "User:Unname4798/Esolangs/Deadfsh"

From LifeWiki
Jump to navigation Jump to search
m
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
I am not registered on Esolang Wiki.
I am not registered on Esolang Wiki. Also, I cannot register on Esolang Wiki, because the CAPTCHAs are too hard.


Deadfsh is an esoteric programming language like Deadfish, but this one doesn't have an increment command.
Deadfsh is an esoteric programming language like Deadfish, but this one doesn't have the increment command. It doesn't follow the "acc == -1 || acc == 256" tradition.
== Commands ==
== Commands ==
  D: Decrement
  d: Decrement
  S: Square
  s: Square
  O: Output
  o: Output
== Interpreter ==
== JS Interpreter ==
  var input = "dso";
  var input = "dso";
  var number = 0;
  var number = 0;
Line 20: Line 20:
   }
   }
  }
  }
== Examples ==
=== XKCD Random Number ===
ddso
== Extensions ==
2D deadfsh with multiverse time travel (or 2DDFWMVTT) adds 10 more commands:
U Travel in time forwards
D Travel in time backwards
f Create a parallel universe
L Move left between universes
R Move right between universes
c Output a character
C Output all characters in the current timeline
P Output all characters in the current universe
O Output all numbers in the current timeline
p Output all numbers in the current universe
Stackfsh v1.0 uses a stack and adds 3 more commands:
D Duplicate the top value
- Pop the top two values, push the first value minus the second value
* Pop the top two values, push the first value multiplied by the second value

Latest revision as of 09:00, 8 July 2024

I am not registered on Esolang Wiki. Also, I cannot register on Esolang Wiki, because the CAPTCHAs are too hard.

Deadfsh is an esoteric programming language like Deadfish, but this one doesn't have the increment command. It doesn't follow the "acc == -1 || acc == 256" tradition.

Commands

d: Decrement
s: Square
o: Output

JS Interpreter

var input = "dso";
var number = 0;
for (var i = 0; i < input.length; i++) {
 if (input[i] == "d") {
  number -= 1;
 }
 if (input[i] == "s") {
  number *= number;
 }
 if (input[i] == "o") {
  console.log(number);
 }
}

Examples

XKCD Random Number

ddso

Extensions

2D deadfsh with multiverse time travel (or 2DDFWMVTT) adds 10 more commands:

U Travel in time forwards
D Travel in time backwards
f Create a parallel universe
L Move left between universes
R Move right between universes
c Output a character
C Output all characters in the current timeline
P Output all characters in the current universe
O Output all numbers in the current timeline
p Output all numbers in the current universe

Stackfsh v1.0 uses a stack and adds 3 more commands:

D Duplicate the top value
- Pop the top two values, push the first value minus the second value
* Pop the top two values, push the first value multiplied by the second value