From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fd705,4fa3cf2c993211a2 X-Google-Thread: 108717,4fa3cf2c993211a2 X-Google-Thread: 1164f8,4fa3cf2c993211a2 X-Google-Thread: 1094ba,4fa3cf2c993211a2 X-Google-Thread: 10adee,4fa3cf2c993211a2 X-Google-Attributes: gidfd705,gid108717,gid1164f8,gid1094ba,gid10adee,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!sn-xit-03!sn-xit-11!sn-xit-08!sn-post-02!sn-post-01!supernews.com!news.supernews.com!not-for-mail From: Jack Klein Newsgroups: alt.folklore.computers,comp.programming,comp.sys.dec,comp.lang.fortran,soc.culture.nordic Subject: Re: The Helsinki Code Date: Sun, 11 Dec 2005 23:56:33 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <1134358062.550739.108660@f14g2000cwb.googlegroups.com> <1134362645.916762.143340@g43g2000cwa.googlegroups.com> X-Newsreader: Forte Agent 3.0/32.763 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@supernews.com Xref: g2news1.google.com alt.folklore.computers:20485 comp.programming:13052 comp.sys.dec:1383 comp.lang.fortran:11417 soc.culture.nordic:8418 On Mon, 12 Dec 2005 16:30:22 +1100, Russell Shaw wrote in comp.programming: > slebetman@yahoo.com wrote: > > dunric@yahoo.com wrote: > > > >>In 1974, Gustav Larsson, a young programmer from Helsinki, > >>Finland, stumbled upon an amazing discovery. While working > >>with a PDP-8 mainframe computer, Gustav suddenly because > >>bored. He decided to attempt to compile a single byte > >>program. For what reasons we cannot know. > >> > >>Nevertheless, Gustav was already familiar with RTPS FORTRAN > >>and thus picked a single character to represent the > >>contents of the program: "@". Once compiled, he expected > >>nothing to happen. > >> > >>He was wrong. To his absolute amazement, it compiled > >>successfully! > >> > >>Using an ARS-33 Teletype, Gustav printed out the 1 byte program > >>followed by its output. It appeared to contain a message from > >>God. > > > > Almost certainly not from God. It most probably, very likely, almost > > certainly, definitely came from the compiler writer. If Gustav decides > > to call him god then be it. But the compiler writer is certainly human. > > > > By the way, historically that is not the shortest piece of source code > > ever written. Some time ago someone submitted a zero byte C source code > > (an empty file) to the obfuscated C contest. Amazingly gcc recognised > > it as a valid and legal C source code and compiled it into an > > executable. The program, when run, outputs nothing. Thus it also claims > > to be the shortest quine (self reproducing code) in history by printing > > out itself (nothing). It actually won the competition. After that, the > > obfuscated C contest banned all zero byte source code. > > All? How many can there be;) How about... ...zero byte ASCII programs ...zero byte EBCDIC programs ...zero byte Unicode programs ...zero byte K&R programs ...zero byte C89 programs ...zero byte C99 programs -- wouldn't work anyway, lack of fully C99 conforming compilers.