News for hackers. Stuff that matters.
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 !