Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!psuvax1!vu-vlsi!swatsun!hirai From: hirai@swatsun (Eiji "A.G." Hirai) Newsgroups: comp.lang.pascal Subject: self-replicating programs? Message-ID: <1400@tulum.swatsun.UUCP> Date: Sat, 21-Nov-87 21:03:29 EST Article-I.D.: tulum.1400 Posted: Sat Nov 21 21:03:29 1987 Date-Received: Mon, 23-Nov-87 06:09:19 EST Organization: Sun Lab, Swarthmore College PA Lines: 22 Summary: help, please send some codes! Hi: In our recent ACM programming contest (regionals), one of the problems was to write a self-replicating program. That is, we had to write a program whose output was itself, the source code. No alterations of the original code during execution was allowed (I think). Does anyone have any code for this problem? We have one but it looks inelegant. I've also see bery bery short Prolog code for this. Help, we are looking for good codes to study! And yes, the contest is over (we ain't cheating). Oh thank you so much! -ag hirai eagerly waiting at my email box... -- Eiji "A.G." Hirai @ Swarthmore College, Swarthmore PA 19081 | Tel. 215-543-9855 UUCP: {rutgers, ihnp4, cbosgd}!bpa!swatsun!hirai | "All Cretans are liars." Bitnet: vu-vlsi!swatsun!hirai@psuvax1.bitnet | -Epimenides Internet: bpa!swatsun!hirai@rutgers.edu | of Cnossus, Crete