Live data from Hacker News

Show HN: Quinesnake – A quine that plays snake over its own source

github.com

1–10 of 19 posts

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#4

Are there resources for making a quine that improve the development process or is it exactly as insanely tedious as it looks? Because this looks pretty impressive.

We don’t do this, that and the other thing because they are easy, we do it because they are hard.

The tedium is part of the difficulty. Making it easier is not inspirational. Although buildings the tooling to do so would itself be quite the challenge ...

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#5
A quine is a computer program which takes no input and produces a copy of its own source code as its only output. The standard terms for these programs in the computability theory and computer science literature are "self-replicating programs", "self-reproducing programs", and "self-copying programs".

So it's a self-replicating game of snake? Sounds very much like a worm virus. Very nice project though!

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#7

Are there resources for making a quine that improve the development process or is it exactly as insanely tedious as it looks? Because this looks pretty impressive.

Unfortunately it's a pretty manual, tedious and frustrating process, especially when the code is minified and you want to squeeze it into as small a source file as possible.

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#8

Are there resources for making a quine that improve the development process or is it exactly as insanely tedious as it looks? Because this looks pretty impressive.

A generic (pseudo) quine is:

   s = "print escape(s)\n{payload}"
   print "s = "
   print escape(s)
   {payload}
So if you wanna do extra stuff on top of being a quine, just write that program and bootstrap with escape()

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#9

Are there resources for making a quine that improve the development process or is it exactly as insanely tedious as it looks? Because this looks pretty impressive.

Unfortunately it's a pretty manual, tedious and frustrating process, especially when the code is minified and you want to squeeze it into as small a source file as possible.

Gratifying to read the author say that creating something as mind-boggling this was tedious and frustrating.

It's great, by the way :)

Post reply on HN