Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven.umd.edu!socrates.umd.edu!socrates!rockwell From: rockwell@socrates.umd.edu (Raul Rockwell) Newsgroups: comp.lang.apl Subject: Re: Turing Machine emulator (in J) Message-ID: Date: 15 Jun 91 20:14:36 GMT References: Sender: rockwell@socrates.umd.edu (Raul Rockwell) Organization: Traveller Lines: 30 In-Reply-To: rockwell@socrates.umd.edu's message of Wed, 12 Jun 1991 02: 42:49 GM I wrote: One of the tricks you can pull with J is reading from standard input in a script, so my bootstrap loader looks like this: read =. 1!:1 readblock =. (read 1 1 1 1) : '' r=. 0 0 $ '' loop) r=. r, l=. read 1 $.=. end [~:(0=#l) loop end) r AARRRRGGGGHHHHH!!!!!!!! the second line from the bottom should read: $.=. end [^:(0=#l) loop [Mr. Hui, please, please, please, could you port J to HP/PA? I wouldn't have this sort of problem if I had a working version of J on this system. [Incidentally, anyone in Toronto have telnet access that they could let Mr. Hui use to do the port???]] Finally, I've re-written the TM emulator in a more concise and [I think] clearer fashion, maybe once I'm sure I've got a copy of it that is totally debugged I'll re-post. *sigh* -- Raul