[TUHS] Why Pascal is Not My Favorite Programming Language - Unearthed!

Michael Parson mparson at bl.org
Thu Aug 31 08:33:49 AEST 2017

On 2017-08-30 07:34, arnold at skeeve.com wrote:
> Seek and ye shall find.
> 	Ask and ye shall receive.
> Brian Kernighan was kind enough to find for me everyone's favorite
> Computing Sceince Technical Report, CSTR 100, "Why Pascal is Not
> My Favorite Programming Language".
> Attached is the file and his macros.  This will not immediately
> format using groff etc.; I hope to create a version that will, sometime
> in the next few weeks.

I was able to get it to format with groff/refer on my OS X 10.11.6 
system (groff 1.19.2) with a single edit to cstr100, changing the path 
to cprog.mac in line 5 to './cprog.mac'.  It produced a few warnings, 
but produced what seems to be reasonable output:

$ refer < cstr100 | groff -Tps -ms | ps2pdf - cstr100.pdf
refer:<standard input>:70: no matches for `kernighan plauger software 
tools addison'
refer:<standard input>:112: no matches for `jensen wirth pascal report 
refer:<standard input>:141: no matches for `habermann pascal critical'
refer:<standard input>:1531: found `$LIST$' but not accumulating 
<standard input>:10: warning: can't find font `B'
<standard input>:12: warning: can't find font `I'
<standard input>:14: warning: can't find font `R'

The errors in the refer output seem to be legit problems in the source 
file.  I've not been able to figure out what's going on with the font 
errors, those lines seem OK to me, but my (g|t)roff is rusty.

A little bit of searching on Google let me fill in the missing bits for 
refer, but I still haven't fixed the font warnings.

-- diff output --
--- cstr100.orig        2017-08-30 17:32:29.000000000 -0500
+++ cstr100     2017-08-30 17:30:47.000000000 -0500
@@ -2,7 +2,7 @@
  .fp 2 PI
  .fp 3 PB
  .ds pf CW
-.so /usr/bwk/src/cprog.mac
+.so ./cprog.mac
  .if n .ls 2
  ....ND "April 2, 1981"
  ....TM 81-11272-12 11173 39199-11
@@ -66,7 +66,11 @@
  Software Tools
-kernighan plauger software tools addison
+%T Software Tools
+%A B. W. Kernighan
+%A P. J. Plauger
+%I Addison-Wesley
+%D 1976
  in Pascal.
@@ -107,7 +111,9 @@
  The language is close to the nominal standard
  of Jensen and Wirth,
-jensen wirth pascal report 1978
+%A Jensen Wirth
+%T Pascal User Manual and Report
+%D 1978
  %O (2nd edition.)
  with good diagnostics and careful run-time checking.
@@ -137,7 +143,11 @@
  The most often cited papers (well worth reading) are
  a strong critique by Habermann
-habermann pascal critical
+%A A. Nico Habermann
+%T Critical Comments on the Programming Language Pascal
+%D 1973
+%J Acta Informatica
+%V 3
  and an equally strong rejoinder by
  Lecarme and Desjardins.

-- end diff --

Michael Parson
Pflugerville, TX

More information about the TUHS mailing list