Byte
(Redirected from 🔴🕳️)
Byte is a esoteric subset by User:Yayimhere. its of Python 3. the name has nothing to do with the subset
commands
allowed commands
:=the walrus operator=equal tostr(x)turn x into a stringif x == y:if x is not equal to yif x > y:if x more than y|OR+add together two objectx.pop()pop element from xstr(x)turn x into a stringf = lambda x : adefine lambda function f with only a single input(only single input lambda function are allowed)x[i]index i of xeval(x)evaluate x as codefor i in len(x):for loop of length xprint(x)print xinput()take input.append(x)append x to listlen(x)length of xbreakbreak out of loopwhile true:infinite loop
symbols
these are the symbol allowed in code(for data):
[]empty list"\n"newline
types
only types supported:
- list
- string
- nonetype
- ints(for index ONLY)
explicitly unallowed things
- the null program
- 1-9 bytes programs
computational class
Byte is turing complete since it can simulate a Bitwise Cyclic Tag:
datastring=[]
#memory
while true:
#code
if (len(datastring) == 0):
break
and this is the translation(of course must be ordered):
memory:
0
|
V
datastring.append("\n")
1
|
V
datastring.append(str([]))
commands:
0
|
V
datastring.pop(0)
10
|
V
if (datastring[0] == str([])):
datastring.append("\n")
11
|
V
if (datastring[0] == str([])):
datastring.append(str([]))
this is the collatz sequence program:
datastring=[]
datastring.append(str([]))
datastring.append("\n")
datastring.append("\n")
while true:
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append(str([]))
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append(str([]))
if (datastring[0] == str([])):
datastring.append(str([]))
datastring.pop(0)
if (datastring[0] == str([])):
datastring.append(str([]))
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append(str([]))
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append(str([]))
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append(str([]))
if (datastring[0] == str([])):
datastring.append("\n")
if (datastring[0] == str([])):
datastring.append("\n")
datastring.pop(0)
datastring.pop(0)
datastring.pop(0)
datastring.pop(0)datastring.pop(0)
if (len(datastring) == 0):
break
the:
datastring.append(str([]))
datastring.append("\n")
datastring.append("\n")
is the number of times 100 is added to the datastring