Live data from Hacker News

Ed is the standard text editor (2014)

wiki.c2.com

71–80 of 125 posts

Re: Ed is the standard text editor (2014)

#71

I hate to be that guy, but 'ed' is very unix specific. In the mid-1970's (and apparently as early as the 1960's according to Wikipedia), those of us on TOPS/10, TOPS/20 (and perhaps other DEC systems) were using TECO (which of course became EMACS).

EDLIN in MS-DOS was very similar to ed.

(Here's a short third-party manual that someone wrote. http://www.sqrt-pi.org/boots/Done-That/Edlin-manual/p11.html )

Re: Ed is the standard text editor (2014)

#72

I hate to be that guy, but 'ed' is very unix specific. In the mid-1970's (and apparently as early as the 1960's according to Wikipedia), those of us on TOPS/10, TOPS/20 (and perhaps other DEC systems) were using TECO (which of course became EMACS).

Yeah, also for PDP-8s and PDP-11s, which were very popular at the time.

TECO-like editors are interesting to use:

Unlike line editors (like ex/ed/edlin, etc.), the edit position can be anywhere, not just at line boundaries. But there is no screen, so you really need a good imagination to keep track of this..

Also, they can edit files larger than can fit in the edit buffer, but not in the way this works on modern editors, where the editor manages everything. Instead, the editor makes one pass through the large file, copying it from input to output. You get to make changes along the way, in the part of it that fits in the edit buffer.

TECO has a page concept to help with this: you break your large file into pages separated with form feeds, and there are commands to retrieve the next page from the input file and write the old page to the output file. But I've seen TECO clones without the page concept on early micros.

Vestiges of this page concept remain in emacs to this day..

Re: Ed is the standard text editor (2014)

#74

I hate to be that guy, but 'ed' is very unix specific. In the mid-1970's (and apparently as early as the 1960's according to Wikipedia), those of us on TOPS/10, TOPS/20 (and perhaps other DEC systems) were using TECO (which of course became EMACS).

Have any good resources for these OSs?

Re: Ed is the standard text editor (2014)

#75
post #12

The last edit was in 2014? Who's worried about 2400 baud modems and terminals not having cursor positioning capabilities? It's 2022, not 1992! Is there some operating environment I'm not aware of?

I was perfectly happy using Emacs over a 2400 baud modem, on a fully-functional terminal (VT420 or Telix in DOS). But of course, Emacs' terminal display code is/was so heavily optimized as to be incomprehensible.

Re: Ed is the standard text editor (2014)

#76

I hate to be that guy, but 'ed' is very unix specific. In the mid-1970's (and apparently as early as the 1960's according to Wikipedia), those of us on TOPS/10, TOPS/20 (and perhaps other DEC systems) were using TECO (which of course became EMACS).

Have any good resources for these OSs?

Someone used to host a TOPS-20 emulator online, but I can no longer find it.. (these days there should be DEC-20 in the web-browser).

Anyway, here are some links:

http://www.columbia.edu/cu/computinghistory/dec20.html

https://www.livingcomputers.org/Computer-Collection/Online-S...

TOPS-20 was really nice.

Re: Ed is the standard text editor (2014)

#77
post #15

Earlier quoted context omitted.

LPMUD's online editor comes with a reasonable implementation of ed. It's actually the only way to edit files in the MUD environment (and as a result, how I learned ed).

Wasnt there a way to change your editor in discworld? Maybe they use very customized lpmud

Discworld is a very customized lpmud, though there are other muds also based on Discworld's core code ("driver"). The default editor on Discworld wasn't ed, but a simpler, less-powerful line editor. ed was available as an option, though, last I checked (last time I logged in was when Pterry died, and then I hadn't logged in for years).

Re: Ed is the standard text editor (2014)

#78
post #21
post #18

Earlier quoted context omitted.

"oh no i reinstalled the os on my vps and now ssh has it on good authority (said authority is line 68) that someone is doing something nasty" ed .ssh/config 68d wq done, didnt fill my terminal with vim or emacs, didnt tab over to my gui editor then back again also it's a nicely "semantic"/compact/comprehensible way of expressing patches in things like portfiles or nix expressions: postPatch = '' ed Makefile etc etc s…

Now that Visual Studio Code has remote edit, you can do all that in a nice, modern way :)

Remote Edit requires installing a node server to connect to. That would crash my router.

Re: Ed is the standard text editor (2014)

#79

I hate to be that guy, but 'ed' is very unix specific. In the mid-1970's (and apparently as early as the 1960's according to Wikipedia), those of us on TOPS/10, TOPS/20 (and perhaps other DEC systems) were using TECO (which of course became EMACS).

ed is a derivative of QED, specifically Ken Thompson's versions for CTSS and Multics that added regular expressions.

¹ https://en.wikipedia.org/wiki/QED_(text_editor)

Re: Ed is the standard text editor (2014)

#80
post #27

Perhaps it's better to see for a minute how people used this kind of editors when they first appeared, than to keep reading about them for ages: https://youtu.be/b6URa-PTqfA?t=100 (BBC from '79, mentioning how people start working from home with the aid of newfangled microcomputers and network connectivity). I'm reminded most of all of the fdisk util, where the workflow is pretty much the same: print, modify, print,…

Marvellous. Always wondered exactly how ed was useful :)
Post reply on HN