Talk:Omicron

From Esolang
Jump to navigation Jump to search

Please comment! DrKilobyte (talk) 15:04, 22 April 2023 (UTC)

Like this ? RandomIdiot (talk) 15:19, 22 April 2023 (UTC)

Quine

Assumes that the file name is "quine.omi"

--
:loop
++
~ 1
read quine.omi @0
:normal
printc
~ 0
goto loop
:give :me :my :pat :on :the :back

—CreeperBomb (interact in such a way to use diction in order to achieve the result of conversation or other form of communicating an idea or group of ideas between individuals including myself) 04:22, 4 June 2023 (UTC)


Hate to disappoint you, but there are several problems with your version. One of them was an error on communication on my part, which has now been fixed on the main page: markers must be numbers, e.g. :1 or :2. Another problem is that this doesn't check for the end of the file, which of course is a problem. There are a couple of others, but the big on is that this is, by definition, cheating, as quines are not supposed to receive any form of input, including reading a file. However, cheating aside, you version can be implemented thus:

size quine.omi > 0 > :1 read quine.omi @1 printc < ++ > @1 eq @0 qoto 2 1 :2

Pat on the back and smiley 😀 for your efforts though! You actually inadvertently pointed out a couple of bugs in the interpreter. Thanks for checking out Omicron! If you have any thought or comments on it, feel free to share!
~ DrKilobyte (talk) 02:24, 5 June 2023 (UTC)