Version française
Home     About     Download     Resources     Contact us    
Browse thread
Palindromic Quine
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Martin Jambon <martin.jambon@e...>
Subject: Re: [Caml-list] Palindromic Quine
On Tue, 29 Jan 2008, Keisuke Nakano wrote:

> Hello,
>
> A 'Palindromic Quine' code is now wanted by a shortest-code contest at:
>
> http://golf.shinh.org/p.rb?Palindromic+Quine
>
> The code should be a Quine, which prints its own code without reading
> its source file. Additionally, the code should be palindromic, which
> reads the same forward as it does backward. Shorter code is better.
> Lots of programming languages are available including OCaml, of course.
>
> Please submit your palindromic Quine to the above contest if you find it.
> The deadline is Thursday, 7 February 2008, 16:46:39, GMT.
> All submitted programs will be revealed after the deadline.
> At present the shortest code in OCaml has 205 bytes.

Here's a new non-palindromic OCaml quine:

   http://martin.jambon.free.fr/q.ml

Maybe not completely legal and works only "ocaml q.ml"...

but feel free to make it palindromic :-)


Martin

--
http://wink.com/profile/mjambon
http://martin.jambon.free.fr