4 ms·
The Glorious Horror of TECO (2010)
- dzdt 10y ago(2010) not that it matters much... TECO was long dead much earlier.
- okket 10y agoRight, thanks for reminding.
- okket 10y agoThe Wikipedia page is also a good first taste resource https://en.wikipedia.org/wiki/TECO_(text_editor) https://en.wikipedia.org/wiki/TECO_(text_editor) There is also source code on Github https://github.com/matthiasr/teco https://github.com/matthiasr/teco
- RichardCA 10y agoIt wasn't all that bad. If you were an average college student in the early 80's you had a time-sharing login to a PDP 11/70 running RSTS. TECO was there but there was also VTEDIT which was a collection of TECO macros that sent the correct escape sequences to the VT52 terminal to create a usable screen-editing environment. And if you wanted to tweek the escape sequences to customize your function keys that was do-able. This scene from Wargames shows what an average college computer lab looked like in the early 80's. The terminals were probably VT52's, VT100's, or Teleray 10T's which were VT52-compatible. https://www.youtube.com/watch?v=n31fogbmQTg https://www.youtube.com/watch?v=n31fogbmQTg
- gumby 10y agoSad(!) to say I could still read that TECO example. The PDP-10 TECO in which Emacs was written was amazingly powerful -- you could assemble machine code into a string and then branch to it.
- beezle 10y agoBack in the day I recall using an editor called Foxe on a 2060. Was easier to me than TECO for basic editing. But the really cool geeks had already begun moving on to Emacs. This was a time when punch cards were still being used, mostly by those on CDC stuff
- cpr 10y agoThough the author is confused about Emacs history, talking about Stallman's and Gosling's Emacs as if they were the same thing. IIRC (I was around the AI Lab a bit after the fact) Richard Gabriel and Guy Steele (MIT AI Lab) wrote the original Emacs (editor macros) in TECO under MIT's ITS, which was a huge superset of the original DEC TECO. RMS took it over after a while, since RPG and GLS were mostly doing academic stuff. (Mike McMahon (MMcM) and others ported the ITS version to TOPS-20.) Meanwhile, Bernie Greenberg wrote an Emacs in Multics Lisp, which was a huge influence on future Emacs implementations. Eventually, RMS and others wrote the current Emacs. Gosling's Emacs (nicknamed Gosmacs, written while he was at CMU, I believe) was a C-based implementation for Unix, and a poor-man's subset of the real thing.
- richardfontana 10y agoFWIW, in 1983 RMS claimed to have been the "inventor of the much-imitated EMACS editor" in his famous 1983 GNU announcement (https://www.gnu.org/gnu/initial-announcement.en.html https://www.gnu.org/gnu/initial-announcement.en.html) (by which he meant the original Emacs, not GNU Emacs which he proceeded to work on over the next couple of years before releasing it).
- EdiX 10y ago> Richard Gabriel and Guy Steele (MIT AI Lab) wrote the original Emacs AFAIK the first version of Emacs was written by Richard Stallman and Guy L. Steele, both wikipedia and jwz give partial credit to Stallman. [0] https://www.jwz.org/doc/lemacs.html https://www.jwz.org/doc/lemacs.html
- hga 10y agoWikipedia??? Please, and I don't believe jwz was an eyewitness, plus that link no longer works EDIT: I forget what he did with redirects from this site, but all he says that I could quickly find is: Dramatis Personae: Richard Stallman: creator of Emacs, founder of the FSF. It's not a serious statement of provenance, and especially in the context he'd want to be generous towards RMS there before he describes the sort of behavior those of us who knew RMS well was well known for by the '70s.... Eyewitnesses like Ed Schwalenberg (private communication) and the late Daniel Weinberg (search for his revived blog, which also has testimony from David Moon who did a bit of the initial work, and as I recall others) say that RMS arrived a bit late in the game, but deserves great credit for turning their beginning into such a major thing even/especially in the TECO era. And that's basically RMS's MO, he takes good beginnings and (generally) makes them into rather nice things, GCC might be the only well known exception where he started from scratch, but then again compilers were a pretty well established thing back then. For original ideas and such, look to things like the GPL, and as I recall he is said to have done some important AI research before he got lured away to systems and tools.
- pmoriarty 10y agoTECO programming reminds me of ed[1] and also of the sorts of things I type in to vim (or vi) in normal mode. [1] - http://everything2.com/user/xerces/writeups/ed http://everything2.com/user/xerces/writeups/ed
- kps 10y ago> … vim (or vi) in normal mode. Very similar. [numeric-argument] command [string-argument ESC] You can (and IMO should) think of vi not as having an insert mode, but an insert command with an ESC-terminated string argument.
- hga 10y agoEd is infinitely more user friendly, was in fact my first editor (punched cards or very limited environments like the one IBM provided for BASIC and PL/I prior to that), and it's what I drop back to, usually in its more user friendly ex form, when I don't or can't use a full fledged EMACS. TECO is best described by the one liner, "A moment of convenience, a lifetime of regret", I'll see if I can look up the author of that, it was in the ITS fortune file.
- Esau 10y agoI was recently playing with ed[1] and in some ways, it felt like a shell for text files. In fact, I found myself wishing for Readline integration.
- pmoriarty 10y agoCheck out rlwrap: http://utopia.knoware.nl/~hlub/uck/rlwrap/ http://utopia.knoware.nl/~hlub/uck/rlwrap/
- korethr 10y agoAnd we'll wrap up the article with a BrainFuck interpreter, one that's more compact than a BrainFuck interpreter written in BrainFuck. That truly _is_ a glorious horror.
- hga 10y agoAh, how could I forget my finding in my email archives and posting Marvin Minsky's Universal Turing Machine in TECO at https://news.ycombinator.com/item?id=10161159 https://news.ycombinator.com/item?id=10161159, "When I wrote the following Universal Turing Machine, which works, I actually understood it." and some discussion: https://news.ycombinator.com/item?id=10987288 https://news.ycombinator.com/item?id=10987288
- todd8 10y agoAround 1975, I loved TECO and totally embraced it strange, compact set of commands. I even expected my students (second semester CS majors) to develop a reasonable level of skill with TECO as it was at the time, on our systems, the most efficient way to write code. I programmed in it keeping my program in my head as much as I could, because like ed you had to issue a command for it to print out lines of the file you were working on. It's hard to imagine that it was possible to write real programs like that. Before TECO I was punching cards so it seemed like a big improvement. My use of TECO didn't last long; there was a full screen editor of some kind that I can't remember running on the KRONOS OS (CDC 6600 mainframe) that replaced TECO and shortly after that I discovered Emacs. What strange and interesting days those were to be programming.