Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.misc > #2064

Re: Wirth-ian languages

From "James Harris" <james.harris.1@gmail.com>
Newsgroups comp.lang.misc
Subject Re: Wirth-ian languages
Date 2014-04-29 14:38 +0100
Organization A noiseless patient Spider
Message-ID <ljoa12$6oc$1@dont-email.me> (permalink)
References (4 earlier) <20140428125523.803@kylheku.com> <ljmifb$1gn$1@dont-email.me> <op.xe11uyjf6zenlw@localhost> <ljnk2j$nao$1@dont-email.me> <op.xe2s1zad6zenlw@localhost>

Show all headers | View raw


"Rod Pemberton" <dont_use_email@xnothavet.cqm> wrote in message 
news:op.xe2s1zad6zenlw@localhost...
> On Tue, 29 Apr 2014 03:24:02 -0400, James Harris 
> <james.harris.1@gmail.com> wrote:
>> "Rod Pemberton" <dont_use_email@xnothavet.cqm> wrote in message
>
>>> It can be argued that many of these features, and others, exist in C
>>> because the original authors (Kernighan, Ritchie, Thompson) ported
>>> C to so many different computing platforms and had to redesign the
>>> language to fit, as many as possible, as cleanly as possible.
>>
>> I was surprised to see Kernighan's name in there. What was his 
>> involvement?
>>
>
> K&R C ...  What do you think the 'K' and 'R' in K&R are for?
>
> Brian Kernighan and Dennis Ritchie.

Yes, that's a book! Because the book became so popular some people assume 
Kernighan had a hand in writing C but I was sure you would have known that 
he did not. I would be interested to hear that he had a hand in porting C 
but have never heard of that before. He certainly was not an author of C.

If, on the other hand, by "authors" you meant writing books AFAIK Thompson 
has never written any books on C though he may have done.

> Did you mean Ken Thompson? The B language, Unix, and apparently
> (I looked this up.) C's ++ -- operators, etc.

No, I didn't mean him. Thompson was credited with B as Ritchie was credited 
with C. I don't know but I can easily believe that Thompson was involved in 
porting C. However, for some reason I did not imagine Kernighan being 
involved in that.

>> Not my area but I believe [that] Java allows pointers to objects
>> but disallows arithmetic on [pointers ...]
>
> That's actually a limitation too.  Sometimes you need to do that.
> I'd think that linked-lists, binary trees, threaded-code, and even
> indexing of arrays or copying of objects would be situations where
> that might be used.

No, under the no-arithmetic-on-pointers model any 'object' can be pointed at 
but the pointer stays pointing at the beginning of the object rather than 
jumping into it. And offsets within indexable objects can be referred to by 
index. So all the structures you mention can be accommodated, albeit not 
quite in the same way.

James

Back to comp.lang.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Wirth-ian languages bruce axtens <bugmagnet@outlook.com> - 2014-04-28 16:23 +0000
  Re: Wirth-ian languages Joe Hynes <theda@southpark.net> - 2014-04-28 17:31 +0000
    Re: Wirth-ian languages Kaz Kylheku <kaz@kylheku.com> - 2014-04-28 18:47 +0000
      Re: Wirth-ian languages "BartC" <bc@freeuk.com> - 2014-04-28 20:35 +0100
        Re: Wirth-ian languages Kaz Kylheku <kaz@kylheku.com> - 2014-04-28 20:18 +0000
          Re: Wirth-ian languages "James Harris" <james.harris.1@gmail.com> - 2014-04-28 22:50 +0100
            Re: Wirth-ian languages "BartC" <bc@freeuk.com> - 2014-04-29 00:03 +0100
              Re: Wirth-ian languages Kaz Kylheku <kaz@kylheku.com> - 2014-04-28 23:51 +0000
              Re: Wirth-ian languages "James Harris" <james.harris.1@gmail.com> - 2014-04-29 07:59 +0100
                Re: Wirth-ian languages "BartC" <bc@freeuk.com> - 2014-04-29 10:04 +0100
                Re: Wirth-ian languages "James Harris" <james.harris.1@gmail.com> - 2014-04-29 11:33 +0100
                Re: Wirth-ian languages "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-04-29 07:41 -0400
            Re: Wirth-ian languages "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-04-28 21:46 -0400
              Re: Wirth-ian languages "James Harris" <james.harris.1@gmail.com> - 2014-04-29 08:24 +0100
                Re: Wirth-ian languages "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-04-29 07:33 -0400
                Re: Wirth-ian languages "James Harris" <james.harris.1@gmail.com> - 2014-04-29 14:38 +0100
                Re: Wirth-ian languages "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-04-30 21:28 -0400
                Re: Wirth-ian languages "James Harris" <james.harris.1@gmail.com> - 2014-05-01 10:44 +0100
              Re: Wirth-ian languages "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-04-29 09:59 +0200
                Re: Wirth-ian languages Kaz Kylheku <kaz@kylheku.com> - 2014-04-29 15:51 +0000
                Re: Wirth-ian languages "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-04-30 10:57 +0200
                Re: Wirth-ian languages Kaz Kylheku <kaz@kylheku.com> - 2014-04-30 15:47 +0000
                Re: Wirth-ian languages "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-05-01 10:18 +0200
                Re: Wirth-ian languages Kaz Kylheku <kaz@kylheku.com> - 2014-05-01 16:56 +0000
                Re: Wirth-ian languages "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-05-02 10:10 +0200
                Re: Wirth-ian languages "BartC" <bc@freeuk.com> - 2014-04-30 18:27 +0100
                Re: Wirth-ian languages "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-05-01 10:18 +0200
                Re: Wirth-ian languages Kaz Kylheku <kaz@kylheku.com> - 2014-05-01 17:10 +0000
                Re: Wirth-ian languages "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2014-05-02 09:22 +0200
  Re: Wirth-ian languages "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-04-28 20:59 -0400
    Re: Wirth-ian languages "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-04-28 21:10 -0400
    Re: Wirth-ian languages Nils M Holm <news2009@t3x.org> - 2014-04-29 07:52 +0000
    Re: Wirth-ian languages "BartC" <bc@freeuk.com> - 2014-04-29 09:45 +0100
  Re: Wirth-ian languages Jacko <jackokring@gmail.com> - 2014-04-29 05:37 -0700

csiph-web