5 ms·
> the TECO editor (a crazy beast). Makes ed look almost benign... https://en.wikipedia.org/wiki/TECO_%28text_editor%29 https://en.wikipedia.org/wiki/TECO_%28t
by digi_owl 10y ago
> the TECO editor (a crazy beast).
Makes ed look almost benign...
https://en.wikipedia.org/wiki/TECO_%28text_editor%29 https://en.wikipedia.org/wiki/TECO_%28text_editor%29
- deleted 10y ago[deleted]
- Groxx 10y agoThose example programs... holy cow. After that, I don't know if I'll ever feel bad about my code being unreadable.
- userbinator 10y agoIt looks like a language that someone used to the APL family would have no problems with.
- mveety 10y agoActually 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.
- Groxx 10y agoYeah, 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 !
- DonHopkins 10y agoI 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 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 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).
- jf271 10y agoIf I remember right the first (and maybe only) comment in the TECO source code was "Abandon all hope, ye who enter here".