🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2665

Re: self-reproducing programs

#2665
From: Paul Broome
Date: Mon, 04 May 1987 13:15
14 lines
1047 bytes
In article <430@ivax.doc.ic.ac.uk> cdsm@doc.ic.ac.uk (Chris Moss) writes:
>Nobody has yet suggested a Prolog program that reproduces itself, so
>here's a start on the lines of the Basic one:
>
>clone :-
>	listing(clone).
>
>Any improvements?

No, except to suggest self-annihilation as an opposite of reproduction.
Here's a frivolous little program that removes itself.

suicide :-
	 abolish(suicide,0).
Technical Details
Message-ID: <5829@brl-smoke.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mimsy!eneevax!umd5!brl-adm!brl-smoke!broome
References: <430@ivax.doc.ic.ac.uk>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mimsy!eneevax!umd5!brl-adm!brl-smoke!broome
From: broome@brl-smoke.ARPA (Paul Broome )
Newsgroups: comp.lang.prolog
Subject: Re: self-reproducing programs
Message-ID: <5829@brl-smoke.ARPA>
Date: Mon, 4-May-87 09:15:39 EDT
Article-I.D.: brl-smok.5829
Posted: Mon May  4 09:15:39 1987
Date-Received: Tue, 5-May-87 05:11:04 EDT
References: <430@ivax.doc.ic.ac.uk>
Reply-To: broome@brl.arpa (Paul Broome (CTAB) <broome>)
Distribution: world
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 14
Summary: self-destruction too!