6 bytes of useless element: Difference between revisions

From Esolang
Jump to navigation Jump to search
Content deleted Content added
PkmnQ (talk | contribs)
Gggfr (talk | contribs)
No edit summary
Tag: Reverted
Line 1: Line 1:
'''6 bytes of useless element''' is a esolang by [[User:Yayimhere]] inspired by [[3 bytes :v)]]
'''6 bytes of useless element''' is a esolang by [[User:Yayimhere]] inspired by [[3 bytes :v)]]
== How It Works ==
== How It Works ==
Take the program's code. Remove the first character. Then, show the program with an 'f' appended to the start.
Take the program's code. Remove the first character. Then, show the program with an 'f' appended to the end.


== Example Programs ==
== Example Programs ==
[[Quine]]:
[[Quine]]:
ff
ff
f[[Hello, World!]]:
[[Hello, World!]]f:
Hello, world!
Hello, world!


Line 21: Line 21:
def code(i):
def code(i):
for c in i:os.append(c)
for c in i:os.append(c)
os.pop(0);os.reverse();os.append("f");os.reverse()
os.pop(0);os.append("f");
while len(os)>0:print(end=os[0]);os.pop(0)
while len(os)>0:print(end=os[0]);os.pop(0)
code()
code()

Revision as of 12:33, 22 September 2024

6 bytes of useless element is a esolang by User:Yayimhere inspired by 3 bytes :v)

How It Works

Take the program's code. Remove the first character. Then, show the program with an 'f' appended to the end.

Example Programs

Quine:

ff

Hello, World!f:

 Hello, world!

Interpreters

A 6BOUE interpreter in Element

_(#f``

A 6BOUE interpreter in BrainF (assuming wrapping is enabled):

--[----->+<]>.,,[.,]

A 6BOUE interpreter in Python

"""6 bytes of useless element is a esolang by User:Yayimhere inspired by 3 bytes :v)
Take the program's code. Remove the first character. Then, show the program with an 'f' appended to the start."""
os=[]
def code(i):
    for c in i:os.append(c)
    os.pop(0);os.append("f");
    while len(os)>0:print(end=os[0]);os.pop(0)
code()

A 6BOUE interpreter in Momema

-9 102f+1=*-9 0*-9-9*0f=+1*0

A 6BOUE interpreter in Scratch: https://scratch.mit.edu/projects/1071220604/