🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #625031

Re: The non-history of C, was the MONITOR tops-10)

#625031
From: John Levine
Date: Wed, 18 Jul 2018 20:38
35 lines
3266 bytes
In article <9776793f-9ef9-4448...@googlegroups.com>,
fishtoprecords  <pat2...@gmail.com> wrote:
>The mapping of C from PDP-11 machine instructions is pretty obvious if you look at the early PDP-11
>hardware documentation and your basic K&R
>
>I am pretty sure that one of the early papers also mentions it.

Indeed it does.  From Dennis Ritchie's paper "The Development of the C Language"

 Thompson went a step further by inventing the ++ and -- operators,
 which increment or decrement; their prefix or postfix position
 determines whether the alteration occurs before or after noting the
 value of the operand. They were not in the earliest versions of B, but
 appeared along the way. People often guess that they were created to
 use the auto-increment and auto-decrement address modes provided by
 the DEC PDP-11 on which C and Unix first became popular. This is
 historically impossible, since there was no PDP-11 when B was
 developed. The PDP-7, however, did have a few "auto-increment" memory
 cells, with the property that an indirect memory reference through
 them incremented the cell. This feature probably suggested such
 operators to Thompson; the generalization to make them both prefix and
 postfix was his own. Indeed, the auto-increment cells were not used
 directly in implementation of the operators, and a stronger motivation
 for the innovation was probably his observation that the translation
 of ++x was smaller than that of x=x+1.

https://www.bell-labs.com/usr/dmr/www/chist.pdf

The myth that the PDP-11 inspired the C ++ and -- operators is
completely false.  Can we put it to bed now, please?  

-- 
Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
Technical Details
Message-ID: <pio8gd$13d9$1@gal.iecc.com>
Path: mbox-mo1.pugleaf.net!k71-v6ni954itk.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
References: <pib5q8$f7v$1@sdf.lonestar.org> <piir7f$1und$1@gal.iecc.com> <mddbmb54oc2.fsf@panix5.panix.com> <9776793f-9ef9-4448-a8ed-906ec5d78c5a@googlegroups.com>

Show Full Headers
Complete Article Headers
X-Received: by 2002:a6b:1647:: with SMTP id 68-v6mr3066798iow.65.1531946318587;        Wed, 18 Jul 2018 13:38:38 -0700 (PDT)
X-BeenThere: alt.folklore.computers@googlegroups.com
Received: by 2002:a02:9711:: with SMTP id x17-v6ls888367jai.0.gmail; Wed, 18 Jul 2018 13:38:37 -0700 (PDT)
X-Received: by 2002:a02:a590:: with SMTP id b16-v6mr3342398jam.40.1531946317772;        Wed, 18 Jul 2018 13:38:37 -0700 (PDT)
MIME-Version: 1.0
Path: mbox-mo1.pugleaf.net!k71-v6ni954itk.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: John Levine <jo...@taugh.com>
Newsgroups: alt.sys.pdp10,alt.folklore.computers
Subject: Re: The non-history of C, was the MONITOR tops-10)
Date: Wed, 18 Jul 2018 20:38:37 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <pio8gd$13d9$1@gal.iecc.com>
References: <pib5q8$f7v$1@sdf.lonestar.org> <piir7f$1und$1@gal.iecc.com> <mddbmb54oc2.fsf@panix5.panix.com> <9776793f-9ef9-4448-a8ed-906ec5d78c5a@googlegroups.com>
Injection-Date: Wed, 18 Jul 2018 20:38:37 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="36265"; mail-complaints-to="ab...@iecc.com"
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: jo...@iecc.com (John Levine)
Bytes: 2789
Lines: 34
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit