Technical writing history with ed and nroff

แชร์
ฝัง

ความคิดเห็น • 47

  • @techhoppy
    @techhoppy ปีที่แล้ว +6

    Well done! I know this is mainly a FreeDOS channel, but, I for one, love the old Unix stuff you do; it really takes me back. You have a very calm and soothing, yet captivating style of teaching and you are excellent at explaining your subject matter. Please do more videos like this and Thanks!

  • @markhatch1267
    @markhatch1267 ปีที่แล้ว +4

    I have been an avid student of computer science since high school (grad '82). From the perspective of being a power user who knows just enough about programming to be dangerous, I have watched with interest and often amusement the conflict between users and programmers. I remember my first experience with ed when I entered "ed Test". It returned "Test: No such file or directory". My reaction was "What the ?#%! I just created it!". It would be better to report back something like "file created, filename is unique". The clash of common folks language semantics and the ways programmers choose to describe and or implement things has been a frequent source of consternation and amusement over the years.
    I see from the comments below, that many don't appreciate what an advancement in efficiency it was for writers to have a teletype terminal attached to a computer. Using ed was way better than what they were used to with a typewriter and retyping anything that had an error. And then again, what an advancement it was to move up to CRT based terminals.

  • @dr.c2195
    @dr.c2195 ปีที่แล้ว +2

    Excellent information. This is an excellent way to create writings. With these tools, sharing information is a breeze! Yes, ed is the standard text editor, but the standard that ed sets is one of power!

  • @anon_y_mousse
    @anon_y_mousse ปีที่แล้ว +3

    It still amazes me that anyone actually used `ed`, let alone any line-based editor. Comparatively speaking, vi and vim were spectacular improvements.

    • @freedosproject
      @freedosproject  ปีที่แล้ว +6

      When your terminal is a big roll of paper ... :-)

    • @anon_y_mousse
      @anon_y_mousse ปีที่แล้ว +1

      @@freedosproject Which is why I'm glad we no longer use teletypes.

    • @derekfrost8991
      @derekfrost8991 ปีที่แล้ว

      I much prefer ML/1 which is similar to Ed but changes are atomIc so you never get unwanted clashes. I haven't tested ML/1 in FreeDos but it works fine in DosBox.. ☺️

    • @avsbq
      @avsbq 8 หลายเดือนก่อน

      @@anon_y_mousseed is comfy for quick notetaking :)

  • @JeffreySJonas
    @JeffreySJonas ปีที่แล้ว +1

    My college (the Cooper Union) was an early Unix adopter: Unix Version 6 on a PDP11/45. Upper case only Olivetti Teletype clones were the printing-terminals. The drum line printer was also upper case only. I don't miss using ED although I learned regular-expressions really well just to edit a file! ADM3A upper/lower case "dumb terminals" were a big step up with VI (visual editor). Not WYSIWYG but a step closer.
    When I consulted to AT&T Information Systems, TROFF was the workhorse (adapted to work with laser printers, no more photo typesetters). Macros were all we needed to generate MAN pages, internal memos, overhead projector slides, books, anything! No separate programs like M$ WORD, pagemaker, powerpoint, etc.

    • @freedosproject
      @freedosproject  11 หลายเดือนก่อน

      Thanks for sharing that! 🤩 There's a lot of great history with Unix for those who aren't afraid of using hte command line and understand how the tools work. You can do a lot of great tech writing with nroff.
      I grew up with DOS, but I learned about Unix (and then Linux) when I went to university. Back in those early days, Linux didn't have a desktop word processor - so if I didn't want to boot back into DOS to run a word processor, I figured out how to use the then-new groff to write class papers. I'm still fond of nroff for that reason.

  • @CaribouDataScience
    @CaribouDataScience ปีที่แล้ว

    I remember reading a orignal Unix SysV manual. The part on ed said something like, "Let's say your secretary is ed to write a memo..." And I thought you secretary is writing a meno....

  • @dodsjanne
    @dodsjanne ปีที่แล้ว

    FreeDOS rocks!

  • @CSeanBurns
    @CSeanBurns ปีที่แล้ว +1

    Love these videos on Ed and *roff!

    • @freedosproject
      @freedosproject  ปีที่แล้ว +3

      Thanks! I try not to do too many of these "Unix throwback" videos, but this was a special video for an article. Had to share! ☺

    • @CSeanBurns
      @CSeanBurns ปีที่แล้ว

      @@freedosproject I love them, but I also really enjoy your others, too. I've been playing with FreeDOS on and off again for many years now. I appreciate it, and thank you!

  • @ernietech-101
    @ernietech-101 ปีที่แล้ว

    Thanks Jim

  • @brianl2607
    @brianl2607 ปีที่แล้ว +1

    this was really well done

    • @freedosproject
      @freedosproject  ปีที่แล้ว

      Thanks! I teach a tech writing tools class, and I like to include a demo of nroff and troff to show that "writing with tools" didn't just start with HTML.

  • @gabrielcamacho6112
    @gabrielcamacho6112 11 หลายเดือนก่อน

    Fascinating video. I will devour any video using the standard text editor, ed. A wise man once said: ED MAKES THE SUN SHINE AND THE BIRDS SING AND THE GRASS GREEN!!

    • @freedosproject
      @freedosproject  11 หลายเดือนก่อน

      I use ed frequently if I just need to type out a quick file, like a demo HTML document to test something out. I don't need to fire up a full screen editor for that. ed does the job!

  • @plato4ek
    @plato4ek ปีที่แล้ว

    At first, I was going to write that you're being a bit repetitive with this video. But no, that macro defining is new comparing to your previous videos. Nice job, keep it going!

    • @freedosproject
      @freedosproject  ปีที่แล้ว +1

      Fair enough! I realized it was a bit of a repeat from the "Linux like original Unix" video, but I turned this into an article for Technically We Write (dot) Com, with the embedded video, so I needed something more targeted. But I'm glad you liked the macro definition! I wanted to bring something new to this video.
      I realized when I was recording this video that I *could* go on and on about writing in nroff (groff) and editing in ed. I hope I kept it short enough (and focused enough). :-)

    • @plato4ek
      @plato4ek ปีที่แล้ว +1

      @@freedosproject I would love to see everything you have to tell about using roff/nroff/groff and ed/vi. Maybe some stories you had from those good old days.

  • @nandi123
    @nandi123 ปีที่แล้ว +1

    Great! This is exactly what I was looking for. How in 1975 could you print on letter size paper? I only remember the IBM line printer on green and white 14.875" wide paper.

    • @ssl3546
      @ssl3546 ปีที่แล้ว +1

      well... it wasn't intended for the IBM line printer on wide paper, it was intended for the Graphic Systems model C/A/T typesetter (later the Linotron 202). If you're actually interested in using troff your best bet is looking for used books from the 1980s on Unix typesetting.

    • @freedosproject
      @freedosproject  ปีที่แล้ว +5

      Teletype terminals had a continuous roll of paper, but you could also load standard US Letter sheets. Early Unix had a command called *type* that would simulate "typing" a document onto separate US Letter sheets. It would print 66 lines from the input, then pause until the operator pressed Enter, then print another 66 lines, and so on.
      If you wanted to print on wide paper (which would be odd, but possible) that's just a matter of setting the number of columns with .ll (line length) and the left margin with .po (page offset).

    • @freedosproject
      @freedosproject  ปีที่แล้ว +2

      *troff* was written for the C/A/T typesetter (the "t" stood for "typesetter") but *nroff* could print to any typewriter-like device, such as the Teletype.

    • @nandi123
      @nandi123 ปีที่แล้ว

      @@ssl3546 I was trying to answer the question, "What computer, editor, and printer could I have used in 1975-1977 to write and print my PhD thesis."

    • @nandi123
      @nandi123 ปีที่แล้ว

      @@freedosproject Thank you. As I mentioned I was thinking how I could have written my thesis in the pre-PC days. I wrote it longhand and paid a typist with a Selectric $4.00 -$5.00 (in 2023 dollars)/page to type it. UCLA had a PDP-10 for student use and of course an IBM 370. I have seen documents created with WYLBUR from the 1970s but don't know how they printed them.

  • @wherami
    @wherami ปีที่แล้ว +1

    Very cool

  • @rugxulo
    @rugxulo ปีที่แล้ว

    Ed is still useful in many ways, but I usually prefer Sed. Having said that, Sed reads one line at a time while Ed loads the whole file into memory first, so Ed can be faster.

    • @freedosproject
      @freedosproject  ปีที่แล้ว +1

      Kind of depends on what you do with it. If you're editing a file on a system and don't need/want to bring it into an editor, you can use sed to edit a copy. I admit I don't use ed everyday, but it's kind of fun to use every once in a while for the "retro" feel. ☺

  • @KD5NJR
    @KD5NJR ปีที่แล้ว +1

    Sounds interesting

  • @dr.c2195
    @dr.c2195 ปีที่แล้ว

    Of course I already knew about ed. ed is the STANDARD text editor. Get with the times!

  • @DanielLenskiy
    @DanielLenskiy 11 หลายเดือนก่อน

    Could you advice a linux OS, similar to FreeDOS in hardware requirements? I mean some unix-like system for very retro hardware (like ~286 for example)

    • @freedosproject
      @freedosproject  11 หลายเดือนก่อน

      You won't be able to run Linux on a '286 because it was designed for '386 and above. But I recall there were some Unix-like systems for the '286. But these were not multitasking, or at least would have had very poor multitasking, due to limitations in the '286 CPU architecture. I think SystemV R2 was ported to the '282, and of course there's Xenix.
      I don't know what Linux distributions run on a real '386 system these days. That's a 32-bit CPU, and most modern Linux distributions aim for 64-bit CPUs. But I think Debian has a 32-bit distro, and that might work on a '386 unless they used optimizations that don't support the '386. I recommend you google "Linux on '386 in 2023" and see if you can find an article or "best of" list.
      For low-end Unix systems, I like running Linux on an inexpensive ARM system like the Raspberry Pi. If you want the "old-style Unix feel" then install a "server" distribution of Linux. I have a Raspberry Pi 3+ at home, and I run Fedora Server on it. Works great.

    • @DanielLenskiy
      @DanielLenskiy 11 หลายเดือนก่อน

      @@freedosproject Thank you for your answer. So, seems I have to provide more information about my target. I have some units of old machines. For example NEC PowerMate 286/12 and similar. In general I want to use it for teaching as example of "how ancient tech could do modern tasks". My primary target is to be able to run on them something like Python interpreter. I tried TinyCore, but I dont like its architecture. For example - every time it boots, it loading all packets and mounting as squashfs'es. Very inconvenient, unoptimal and time-eating way, on my opinion...

    • @freedosproject
      @freedosproject  11 หลายเดือนก่อน +1

      Hmmm.. interesting challenge! Unfortunately, I don't know of any modern, updated Unix or Unix-like systems for the '286. Although if your goal is to run Python on a '286, you can also run Python 2.4.2 for DOS. There's a download for it on the "Python Legacy" website. But I know that's quite old; 2.4.2 was released 2005 (current version is 3.12.1 from last week). I don't know what it takes to compile the latest (or at least a more recent) Python on DOS, sorry.
      On the "how legacy tech can run modern tasks" : I'm about to record a series of videos showing how DOS spreadsheets can do the same tasks as modern spreadsheets (although slightly differently in some cases - especially without AutoFill). So you can watch for those. ☺

    • @DanielLenskiy
      @DanielLenskiy 11 หลายเดือนก่อน

      @@freedosproject Alright, I checked them out, and two of them are 486s, it is a bit better :) As I remember, Python package was included in FreeDOS distribution. Could it do periodically updates from internet, like packages in linux?

  • @shodanxx
    @shodanxx ปีที่แล้ว

    Hello, by any chance would you have or recommend a freedos emulation tutorial ?
    I would like the replay the dos games of my youth and I would like to play them in freedos and not Billy's you know what.
    I use virtualbox and proxmox and I don't know what to even use for emulating freedos on android.
    I see you have a video about playing a pinball game in virtualbox, but in that video you didn't go into the setting up of virtualbox. Perhaps you already have this video but I simply cannot find it ?

    • @freedosproject
      @freedosproject  ปีที่แล้ว

      I've done a few videos about installing FreeDOS in a virtual machine. Here's one video about installing FreeDOS with QEMU on Linux: th-cam.com/video/Se69XJWxwAc/w-d-xo.html

  • @DARKBOW923
    @DARKBOW923 ปีที่แล้ว

    just subscribed

  • @ssl3546
    @ssl3546 ปีที่แล้ว

    FWIW Solaris has the most advanced version of nroff.

    • @freedosproject
      @freedosproject  ปีที่แล้ว +4

      I used SunOS on the Sun 3/50 workstations in my university computer lab. It was my first exposure to Unix. And that's what prompted me to try Linux. But in 1993, Linux didn't have any desktop apps (no word processor) so to write my class papers, I either had to reboot into DOS or I had to use the tools I had.
      I talked about it in another video, but I learned LaTeX to write my physics lab reports (equations). That cost $$ to print to the computer lab's laser printer, but worth it for the 3 or 4 lab reports every semester. I could use ghostscript on my Linux box to print LaTeX to my Epson FX80 dot matrix printer - but that took *forever* to print. Not worth it for regular class papers. So if it was just a class paper (like for an English class) I would write that in nroff and print the text on a dot matrix printer.
      And in the campus computer lab, we had a big line printer and a regular dot matrix printer (I think Okidata). You could print to the dot matrix for free, if you didn't tie it up with long print jobs (like printing in graphics mode). My workaround: write a document in nroff, and print it to the dot matrix printer. You get bold and underline, which was enough for my class papers. It was free and didn't use up my paper and ribbon at home. ☺

    • @ssl3546
      @ssl3546 ปีที่แล้ว

      @@freedosproject In my last job I was using groff on a monthly basis to keep a set of PDF templates up to date. Instead of dinking around with Word for an hour each time and letting small inconsistencies accumulate, groff let me do it in seconds. troff/groff are still very useful tools