From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: a great C++ book?
Date: 1 Jan 2002 17:10:53 -0800 [thread overview]
Message-ID: <a0tmmt$ear$1@cesium.transmeta.com> (raw)
In-Reply-To: <20020101041111.29695.qmail@web14310.mail.yahoo.com> <Pine.LNX.4.43.0201011214560.7188-100000@waste.org> <20020101104331.F4802@work.bitmover.com>
Followup to: <20020101104331.F4802@work.bitmover.com>
By author: Larry McVoy <lm@bitmover.com>
In newsgroup: linux.dev.kernel
>
> 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.
>
Personally I have found that it's quite clean and easy to program in
"C+" by simply using a C++ compiler and just not going wild with all
the features that you *could* use. You don't *have* to use all of it,
you know. In that way, your "M" language really becomes a particular
*style* of C++ rather than a full-blown programming language in its
own right. This is actually a Good Thing[TM], since it means you can
leverage existing compilers and so forth.
Way back in the 0.99.x days we actually tried doing the Linux kernel
using the g++ compiler, the main motivation for that was to get
type-safe linkage. At that time, as everyone knows, g++ wasn't up to
snuff; that has probably changed now. The LKML FAQ claims that "there
would be no point" unless we started using C++ features left and
right; personally I think type-safe linkage is plenty of reason
enough.
I think it might be worth another attempt once gcc 3.x stabilizes
enough that it's the accepted standard compiler. It will be more
invasive this time around, because of the module system, but the
benefit might be greater.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@zytor.com>
next prev parent reply other threads:[~2002-01-02 1:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-01 4:11 a great C++ book? 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-01 20:01 ` Richard Gooch
2002-01-02 0:42 ` J.A. Magallon
2002-01-02 1:41 ` Richard Gooch
2002-01-02 0:34 ` J.A. Magallon
2002-01-02 9:59 ` Kai Henningsen
2002-01-02 1:10 ` H. Peter Anvin [this message]
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
[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='a0tmmt$ear$1@cesium.transmeta.com' \
--to=hpa@zytor.com \
--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