Re:PDP-10/its: Incompatible Timesharing System
by Groxx on Sunday January 29, 2017 @04:42PM
(#13516879)
Those example programs... holy cow. After that, I don't know if I'll ever feel bad about my code being unreadable.
[ Parent
| on HN ]
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 !
Re:PDP-10/its: Incompatible Timesharing System
by userbinator on Sunday January 29, 2017 @11:04PM
(#13518539)
It looks like a language that someone used to the APL family would have no problems with.