On Thu, Nov 25, 1999 at 10:53:13AM -0700, patrick wrote:
> I have been wondering of late why it is that much of
> the heart of linux and many linux apps are written
> in c rather than c++.  Why is this?  Why not convert
> everything over...presumeably c++ allows for tighter,
> more efficient code.
> 
> patrick

Linux is written in C because, well, it's written in C. Given that
it is a unix clone it seems appropriate.

Why not not rewrite it in C++? Well lotsa arguments on both sides, one
is simply inertia. it aint broke so why do that? But also, C++ is a
very different language (never mind that it LOOKS a lot like C, it's
really quite different). There's all sorts of magic going on behind
the scenes making it a lot harder, I would think, to write truly lean,
mean, and efficient (and also perhaps robust) low level code. When 
you're writing an OS low level is good!

C++ code is not necessarily tighter or more efficient. No flamewars
please, there's no simple rule about such things, no one language
is always better than another where better might equate to "faster",
"more efficient", "tighter code", "whatever you wanna put here".

The OO paradigm has its value, but I can't see that writing a Unix
clone using it is one of those valuable points.

Fred
-- 
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
                    The Lord detests the way of the wicked 
                  but he loves those who pursue righteousness.
----------------------------- Proverbs 15:9 (niv) -----------------------------


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to