kirjavascript / quine-howto

how to write lots of quines
33 stars 1 forks source link

why don't you add SVG? #1

Open Clayblockunova opened 1 month ago

Clayblockunova commented 1 month ago

I think a JS quine which generates an SVG would be fun. why not?

kirjavascript commented 3 weeks ago

like this?

(q=_=>decodeURIComponent('%3Csvg%20width%3D9999%3E%3Ctext%20y%3D20%3E(q%3D')+q+decodeURIComponent(')()%3C%2Ftext%3E%3C%2Fsvg%3E'))()

this is a JS program that generates an SVG which displays the original JS program, which is a quine relay

there is already a section with a simple quine-relay in, so another one is not novel by itself

but maybe it's worth expanding on the quine relay section?

Clayblockunova commented 3 weeks ago

Yes.