Re:PDP-10/its: Incompatible Timesharing System
by DonHopkins on Monday January 30, 2017 @03:31AM
(#13519471)
I remember running across a Turing machine emulator implemented in TECO in Minsky's home directory that I'd REALLY love to get ahold of.
https://news.ycombinator.com/item?id=10161159
hga 515 days ago | parent | favorite | on: The most obsolete infrastructure money could buy –...
Ask and yea shall receive:
MSG: APL 1
DISTRIB: *BBOARD
EXPIRES: 03/17/81 23:08:54
MINSKY@MIT-MC 03/11/81 23:08:54 Re: too-short programs
APL is compact, I suppose. So is TECO. When I wrote the following
Universal Turing Machine, which works, I actually understood it.
[ I've interpolated the non-printing characters as displayed by (Gnu) EMACS,
escape is ^], ^^ is one character, as is \356: ]
i1Aul qq+^^0:iqm^[29iiq\356y0L1 00L1 11L2 A1L1
y0L1 0yR2 1AR2 AyR6 yyL3 00L0 1AL3 A1L4 yyL4 0yR5 11L7 A1L4
yyR5 0yL3 1AR5 A1R5 yyR6 0AL3 1AR6 A1R6 y0R7 0yR6 11R7 A0R2
^[j<sR^[;-d-2ciql-^^^[ci"ed^^^[cii^[ciuq'^[>
j<sL^[;-d-2ciql-^^^[ci"ed^^^[cii-2c^[ciuq'^[>jxblx1lx2lx3lx4lx5lx6lx7hk
iyyAyyAyy^[32<i0^[>ji110101110000010011011^[ 1uq<htmbqq=>
I do not advise attempting to understand this code, which is
almost as bad as that for the Universal Turing machine.ADDED: or http://ancell-ent.com/share/minsky-TECO-turing-machine.txt
Please ack receipt of this and/or send me email (in my HN info); for others, note this is ITS TECO, which I was told was by far the most powerful version of it (fortunately, by the time I showed up learning it was no longer really necessary).
Re:PDP-10/its: Incompatible Timesharing System
by Groxx on Sunday January 29, 2017 @04:42PM
(#13516879)
Those example programs... holy cow. After that, I don't know if I'll ever feel bad about my code being unreadable.
Re:PDP-10/its: Incompatible Timesharing System
by mveety on Monday January 30, 2017 @02:44AM
(#13519325)
Actually it's not as bad as it looks at first glance. At least on OpenVMS, you normally use it like sed, and its not much worse than writing some regex, normally.
Granted, writing a text editor in regex sounds awful.
Re:PDP-10/its: Incompatible Timesharing System
by Groxx on Monday January 30, 2017 @04:13PM
(#13525074)
Yeah, the actual editing looks fine. The programs though.
0uz ! clear repeat flag !
<j 0aua l ! load 1st char into register A !
<0aub ! load 1st char of next line into B !
qa-qb"g xa k -l ga -1uz ' ! if A>B, switch lines and set flag !
qbua ! load B into A !
l .-z;> ! loop back if another line in buffer !
qz;> ! repeat if a switch was made last pass !
Re:PDP-10/its: Incompatible Timesharing System
by userbinator on Sunday January 29, 2017 @11:04PM
(#13518539)
It looks like a language that someone used to the APL family would have no problems with.
Makes ed look almost benign...
https://en.wikipedia.org/wiki/TECO_%28text_editor%29