#quine — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #quine, aggregated by home.social.
-
So I saw a quine earlier and had to make my own. tatwd. The code half stays byte-identical every run, only the stack of turtles in the source grows. No bottom. Just turtles all the way down
-
So I saw a quine earlier and had to make my own. tatwd. The code half stays byte-identical every run, only the stack of turtles in the source grows. No bottom. Just turtles all the way down
-
So I saw a quine earlier and had to make my own. tatwd. The code half stays byte-identical every run, only the stack of turtles in the source grows. No bottom. Just turtles all the way down
-
-
-
-
-
-
Write a program that outputs an exact copy of its source code (without reading any files).
Additional constraints:
- Write the program in portable standard C.
- All output must come from a single
fputs(src, stdout)call wheresrcis an array ofchar. - The main function must be exactly
int main(void) { fputs(src, stdout); return 0; }.
-
Write a program that outputs an exact copy of its source code (without reading any files).
Additional constraints:
- Write the program in portable standard C.
- All output must come from a single
fputs(src, stdout)call wheresrcis an array ofchar. - The main function must be exactly
int main(void) { fputs(src, stdout); return 0; }.
-
Write a program that outputs an exact copy of its source code (without reading any files).
Additional constraints:
- Write the program in portable standard C.
- All output must come from a single
fputs(src, stdout)call wheresrcis an array ofchar. - The main function must be exactly
int main(void) { fputs(src, stdout); return 0; }.
-
Write a program that outputs an exact copy of its source code (without reading any files).
Additional constraints:
- Write the program in portable standard C.
- All output must come from a single
fputs(src, stdout)call wheresrcis an array ofchar. - The main function must be exactly
int main(void) { fputs(src, stdout); return 0; }.
-
Write a program that outputs an exact copy of its source code (without reading any files).
Additional constraints:
- Write the program in portable standard C.
- All output must come from a single
fputs(src, stdout)call wheresrcis an array ofchar. - The main function must be exactly
int main(void) { fputs(src, stdout); return 0; }.
-
I wrote a #quine in the little programming language I've been making. I'm happy about that.
-
I wrote a #quine in the little programming language I've been making. I'm happy about that.
-
On the tangential topic of quines.
Here is my "due diligence".
By the way, in October I realized on my own a quine could be done with
`lambda' and `let', tried to work it out, ran out of time, left it
aside, and, alas, never went back to it...(defun quinep (form)
"Test whether a non-atom FORM evaluates to itself.
Test equality with `equalp' for better coverage (of implementations
that construct structures when reading backquoted expressions)."
;; A justified use of `eval'.
(and (not (atom form))
(equalp form (eval form))));; NB: `*print-pretty*' may affect the printing of backquotes.
(defconstant pitmanual-funnies-eni-mmcm
'(LET ((LET '`(LET ((LET ',LET)) ,LET)))
`(LET ((LET ',LET)) ,LET))
"MMcM's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«MMcM@MIT-AI 09/17/79 15:37:16 Re: ''s».")(defconstant pitmanual-funnies-eni-rwk-kmp
'((LAMBDA (LAMBDA) (LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
'(LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
"RWK-KMP's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«KMP,RWK@MIT-ML (Sent by KMP@MIT-ML) 09/18/79 03:37:32».")(assert (quinep pitmanual-funnies-eni-mmcm))
(assert (quinep pitmanual-funnies-eni-rwk-kmp)) -
On the tangential topic of quines.
Here is my "due diligence".
By the way, in October I realized on my own a quine could be done with
`lambda' and `let', tried to work it out, ran out of time, left it
aside, and, alas, never went back to it...(defun quinep (form)
"Test whether a non-atom FORM evaluates to itself.
Test equality with `equalp' for better coverage (of implementations
that construct structures when reading backquoted expressions)."
;; A justified use of `eval'.
(and (not (atom form))
(equalp form (eval form))));; NB: `*print-pretty*' may affect the printing of backquotes.
(defconstant pitmanual-funnies-eni-mmcm
'(LET ((LET '`(LET ((LET ',LET)) ,LET)))
`(LET ((LET ',LET)) ,LET))
"MMcM's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«MMcM@MIT-AI 09/17/79 15:37:16 Re: ''s».")(defconstant pitmanual-funnies-eni-rwk-kmp
'((LAMBDA (LAMBDA) (LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
'(LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
"RWK-KMP's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«KMP,RWK@MIT-ML (Sent by KMP@MIT-ML) 09/18/79 03:37:32».")(assert (quinep pitmanual-funnies-eni-mmcm))
(assert (quinep pitmanual-funnies-eni-rwk-kmp)) -
On the tangential topic of quines.
Here is my "due diligence".
By the way, in October I realized on my own a quine could be done with
`lambda' and `let', tried to work it out, ran out of time, left it
aside, and, alas, never went back to it...(defun quinep (form)
"Test whether a non-atom FORM evaluates to itself.
Test equality with `equalp' for better coverage (of implementations
that construct structures when reading backquoted expressions)."
;; A justified use of `eval'.
(and (not (atom form))
(equalp form (eval form))));; NB: `*print-pretty*' may affect the printing of backquotes.
(defconstant pitmanual-funnies-eni-mmcm
'(LET ((LET '`(LET ((LET ',LET)) ,LET)))
`(LET ((LET ',LET)) ,LET))
"MMcM's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«MMcM@MIT-AI 09/17/79 15:37:16 Re: ''s».")(defconstant pitmanual-funnies-eni-rwk-kmp
'((LAMBDA (LAMBDA) (LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
'(LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
"RWK-KMP's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«KMP,RWK@MIT-ML (Sent by KMP@MIT-ML) 09/18/79 03:37:32».")(assert (quinep pitmanual-funnies-eni-mmcm))
(assert (quinep pitmanual-funnies-eni-rwk-kmp)) -
On the tangential topic of quines.
Here is my "due diligence".
By the way, in October I realized on my own a quine could be done with
`lambda' and `let', tried to work it out, ran out of time, left it
aside, and, alas, never went back to it...(defun quinep (form)
"Test whether a non-atom FORM evaluates to itself.
Test equality with `equalp' for better coverage (of implementations
that construct structures when reading backquoted expressions)."
;; A justified use of `eval'.
(and (not (atom form))
(equalp form (eval form))));; NB: `*print-pretty*' may affect the printing of backquotes.
(defconstant pitmanual-funnies-eni-mmcm
'(LET ((LET '`(LET ((LET ',LET)) ,LET)))
`(LET ((LET ',LET)) ,LET))
"MMcM's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«MMcM@MIT-AI 09/17/79 15:37:16 Re: ''s».")(defconstant pitmanual-funnies-eni-rwk-kmp
'((LAMBDA (LAMBDA) (LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
'(LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
"RWK-KMP's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«KMP,RWK@MIT-ML (Sent by KMP@MIT-ML) 09/18/79 03:37:32».")(assert (quinep pitmanual-funnies-eni-mmcm))
(assert (quinep pitmanual-funnies-eni-rwk-kmp)) -
On the tangential topic of quines.
Here is my "due diligence".
By the way, in October I realized on my own a quine could be done with
`lambda' and `let', tried to work it out, ran out of time, left it
aside, and, alas, never went back to it...(defun quinep (form)
"Test whether a non-atom FORM evaluates to itself.
Test equality with `equalp' for better coverage (of implementations
that construct structures when reading backquoted expressions)."
;; A justified use of `eval'.
(and (not (atom form))
(equalp form (eval form))));; NB: `*print-pretty*' may affect the printing of backquotes.
(defconstant pitmanual-funnies-eni-mmcm
'(LET ((LET '`(LET ((LET ',LET)) ,LET)))
`(LET ((LET ',LET)) ,LET))
"MMcM's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«MMcM@MIT-AI 09/17/79 15:37:16 Re: ''s».")(defconstant pitmanual-funnies-eni-rwk-kmp
'((LAMBDA (LAMBDA) (LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
'(LIST (LIST 'LAMBDA '(LAMBDA) LAMBDA)
(LIST 'QUOTE LAMBDA)))
"RWK-KMP's quine.
See <https://maclisp.info/pitmanual/funnies.html#evaluating_new_ideas>,
«KMP,RWK@MIT-ML (Sent by KMP@MIT-ML) 09/18/79 03:37:32».")(assert (quinep pitmanual-funnies-eni-mmcm))
(assert (quinep pitmanual-funnies-eni-rwk-kmp)) -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
One Open-source Project Daily
An uroboros program with 100+ programming languages
https://github.com/mame/quine-relay
#1ospd #opensource #quine -
Using a neural network to learn the diagram of a neural network
-
Using a neural network to learn the diagram of a neural network
-
Very similar to my interpretation of last year's Genuary 3 "42 Lines of Code" (link below), this code is a "Quine" that outputs itself into a stylized image using SVG curves and gradients.
-
Very similar to my interpretation of last year's Genuary 3 "42 Lines of Code" (link below), this code is a "Quine" that outputs itself into a stylized image using SVG curves and gradients.
-
Very similar to my interpretation of last year's Genuary 3 "42 Lines of Code" (link below), this code is a "Quine" that outputs itself into a stylized image using SVG curves and gradients.
-
Very similar to my interpretation of last year's Genuary 3 "42 Lines of Code" (link below), this code is a "Quine" that outputs itself into a stylized image using SVG curves and gradients.
-
Very similar to my interpretation of last year's Genuary 3 "42 Lines of Code" (link below), this code is a "Quine" that outputs itself into a stylized image using SVG curves and gradients.
-
Constructing the Word's First JPEG XL MD5 Hash Quine
https://stackchk.fail/blog/jxl_hashquine_writeup
#HackerNews #JPEGXL #MD5 #Hash #Quine #Hashing #Programming #HackerNews
-
Constructing the Word's First JPEG XL MD5 Hash Quine
https://stackchk.fail/blog/jxl_hashquine_writeup
#HackerNews #JPEGXL #MD5 #Hash #Quine #Hashing #Programming #HackerNews
-
Constructing the Word's First JPEG XL MD5 Hash Quine
https://stackchk.fail/blog/jxl_hashquine_writeup
#HackerNews #JPEGXL #MD5 #Hash #Quine #Hashing #Programming #HackerNews
-
Constructing the Word's First JPEG XL MD5 Hash Quine
https://stackchk.fail/blog/jxl_hashquine_writeup
#HackerNews #JPEGXL #MD5 #Hash #Quine #Hashing #Programming #HackerNews
-
Constructing the Word's First JPEG XL MD5 Hash Quine
https://stackchk.fail/blog/jxl_hashquine_writeup
#HackerNews #JPEGXL #MD5 #Hash #Quine #Hashing #Programming #HackerNews
-
1 Ran into this quote in #Quiddities by Willard Van Orman #Quine while checking out a reference in a Bluesky convo. (Note the period after “as well” should be a comma.) Set me thinking: should the revelation of the Wizard of 0z’s true identity be considered a “let down”? 🧵
RE: https://bsky.app/profile/did:plc:5zca2ola2zxpkw37w4f3wxtu/post/3m4o4ecugok2y -
1 Ran into this quote in #Quiddities by Willard Van Orman #Quine while checking out a reference in a Bluesky convo. (Note the period after “as well” should be a comma.) Set me thinking: should the revelation of the Wizard of 0z’s true identity be considered a “let down”? 🧵
RE: https://bsky.app/profile/did:plc:5zca2ola2zxpkw37w4f3wxtu/post/3m4o4ecugok2y -
This is an unbirthday present for @screwlisp,
who posted earlier about quines.To give it as a puzzle at first:
find a Python quine as a string Q such that eval(Q) == Q.
A spoiler to follow.
_________
The term "fixed point" comes to mind. And the Y combinator comes into
this picture as well; wie another day.(Estimating Python's degree of homoiconicity is left as an exercise.)
#ComputerProgramming
#Homoiconicity
#ProgrammingPuzzle
#Puzzle
#Python
#Quine