Re: The XProc Quine

Well it may be under some circumstances, but after reading more 
carefully I think it's a kind of cheat; here are the references I saw:

http://www.ioccc.org/1994/smr.hint

and this page lists references to the Makefile, which just seems to copy 
the empty smr.c file to an empty executable.  It's unclear why they 
thought this constituted a C program?

http://www.ioccc.org/years.html

sorry :)

On 8/15/2011 9:51 AM, David Lee wrote:
> I dont think the "C" quine program is the empty document.
>
>
> ----------------------------------------
> David A. Lee
> dlee@calldei.com
> http://www.xmlsh.org
> -----Original Message-----
> From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf
> Of Mike Sokolov
> Sent: Monday, August 15, 2011 9:42 AM
> To: David Lee
> Cc: 'George Cristian Bina'; 'mozer'; 'XProc Dev'
> Subject: Re: The XProc Quine
>
>
> I would have posted the shortest perl (and C) quine, but it's not
> printable.  Or from another perspective, it occurs infinitely many times
> in all these messages, being empty.  If only it were a valid XML
> document, sigh.
>
>
> - Mike
>
> On 08/11/2011 01:32 PM, David Lee wrote:
>> Ok I had to put this in.  xmlsh Quine (providing it means what I think it
>> does ...
>>
>> 	import commands posix
>> 	cat "$0"
>>
>>
>>
>> ----------------------------------------
>> David A. Lee
>> dlee@calldei.com
>> http://www.xmlsh.org
>>
>>
>> -----Original Message-----
>> From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf
>> Of George Cristian Bina
>> Sent: Thursday, August 11, 2011 1:03 PM
>> To: mozer
>> Cc: XProc Dev
>> Subject: Re: The XProc Quine
>>
>>
>> Nice!
>> Does this qualify as the second :) ?
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
>>        <p:documentation>
>>            <p>(c) Syncro Soft / oXygen XML Editor 2011 - The second XProc
>> Quine</p>
>>        </p:documentation>
>>        <p:output port="result"/>
>>        <p:xslt template-name="main">
>>            <p:input port="source"><p:empty/></p:input>
>>            <p:input port="stylesheet">
>>                <p:inline>
>>                    <xsl:stylesheet
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>>                        <xsl:template name="main">
>>                            <xsl:copy-of select="document('')"/>
>>                        </xsl:template>
>>                    </xsl:stylesheet>
>>                </p:inline>
>>            </p:input>
>>            <p:input port="parameters"><p:empty/></p:input>
>>        </p:xslt>
>> </p:declare-step>
>>
>> Best Regards,
>> George
>>

Received on Tuesday, 16 August 2011 01:35:18 UTC