[HN Gopher] Writing the Most Boring Quine
___________________________________________________________________
Writing the Most Boring Quine
Author : todsacerdoti
Score : 25 points
Date : 2023-03-02 15:01 UTC (2 days ago)
(HTM) web link (rtpg.co)
(TXT) w3m dump (rtpg.co)
| koolba wrote:
| My fav: #!/usr/bin/env cat
|
| Or even shorter: #!/bin/cat
| xamuel wrote:
| No reason to stop at print("print()"), you can nest further,
| print('print("print()")'). And then you can short-circuit the
| process, write a single program which first does print(), then
| print("print()"), then print('print("print()")'), then the next
| level, then the next level, etc. And no need to stop there: once
| you have that program, you can print IT. And then continue the
| process.
|
| I've done this up to level omega^omega at my Library of Intuitive
| Ordinal Notations: https://github.com/semitrivial/ions/
| anderskaseorg wrote:
| That's also the idea of
| https://codegolf.stackexchange.com/questions/48931/make-
| the-..., where people have taken it up to much larger ordinals.
| nick0garvey wrote:
| I wouldn't say this is the most boring. In Python it is certainly
| an empty file.
|
| It was interesting to see the author work through the major
| obstacles one by one when writing a quine. Glad they didn't take
| the actual boring route!
| interroboink wrote:
| Indeed. In C it is also the empty file, though it takes some
| compiler settings boogaloo to make it work.
|
| See: https://www.ioccc.org/1994/smr.hint
___________________________________________________________________
(page generated 2023-03-04 23:00 UTC)