mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kaih@khms.westfalen.de (Kai Henningsen)
To: linux-kernel@vger.kernel.org
Subject: Re: a great C++ book?
Date: 02 Jan 2002 11:59:00 +0200	[thread overview]
Message-ID: <8G6n2tI1w-B@khms.westfalen.de> (raw)
In-Reply-To: <20020102013411.A5968@werewolf.able.es>
In-Reply-To: <20020101104331.F4802@work.bitmover.com> <20020101041111.29695.qmail@web14310.mail.yahoo.com> <Pine.LNX.4.43.0201011214560.7188-100000@waste.org> <20020101104331.F4802@work.bitmover.com> <20020102013411.A5968@werewolf.able.es>

jamagallon@able.es (J.A. Magallon)  wrote on 02.01.02 in <20020102013411.A5968@werewolf.able.es>:

> On 20020101 Larry McVoy wrote:
> >
> >Makes you wonder what would happen if someone tried to design a
> >minimalistic C++, call it the "M programming language", have be close
> >to C with the minimal useful parts of C++ included.
> >
>
> There are specs for something called 'Embedded C++'. You can run it on
> a cell phone, so it looks like little bloated...

Wrong metric, unless you mean you can run the *compiler* on the cell  
phone.

c99.pdf:   1412026 bytes
c++98.pdf: 2860601 bytes

And remember that interactions between features go up exponentially.

I think one of the worst design decisions for C++ (hindsight, of course)  
was to keep compatibility with C. The other bad one was to accept too many  
new features.

The Modula-3 standard (that's an OO variant of Modula-2) had as a language  
design goal that the language description should not take more than 50  
pages. They overshot that, but it still was much less than 100 (somewhat  
less precise than C/C++, admittedly). As a result, that language (and  
consequently, programs in that language) is *much* easier to understand  
than C++.

That doesn't mean I'm in love with Modula-3. Actually, I don't even use  
it, and I do think (hindsight again) some of the design decisions were  
unfortunate. But I do think keeping an eye on the sheer mass of the spec  
is a good idea.

MfG Kai

  parent reply	other threads:[~2002-01-02 13:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-01  4:11 samson swanson
2002-01-01  4:40 ` Larry McVoy
2002-01-01  5:17 ` David A. Frantz
2002-01-01  5:34 ` Todor Todorov
2002-01-01 18:25 ` Oliver Xymoron
2002-01-01 18:43   ` Larry McVoy
2002-01-02  0:34     ` J.A. Magallon
2002-01-02  1:10     ` H. Peter Anvin
2002-01-02  1:29       ` Alexander Viro
2002-01-02  4:22         ` Michael P. Soulier
2002-01-02 18:46           ` Timothy Covell
2002-01-02 15:43       ` Oliver Xymoron
2002-01-01 20:01   ` Richard Gooch
2002-01-02  0:42     ` J.A. Magallon
2002-01-02  1:41     ` Richard Gooch
2002-01-02  9:59   ` Kai Henningsen [this message]
     [not found] <fa.j24p57v.1d34p2v@ifi.uio.no>
     [not found] ` <fa.i865mpv.1g42885@ifi.uio.no>
2002-01-02  2:45   ` Dan Maas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8G6n2tI1w-B@khms.westfalen.de \
    --to=kaih@khms.westfalen.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®