Re: C++ and the kernel

Richard B. Johnson (root@chaos.analogic.com)
Tue, 9 Apr 2002 08:10:15 -0400 (EDT)


I would like to rewrite the kernel in FORTRAN because this was
one of the first languages I learned.

Seriously, the kernel MUST be written in a procedural language.
It is the mechanism by which something is accomplished that defines
an operating system kernel.

C++ is an object-oriented language, in fact the opposite of a
procedural language. It is not suitable.

Many so-called programmers look at kernel code and see that a
lot is written in 'C'. Then they think; "I can do this better
because I know C++. Everybody knows that C++ is better than
plain old C..."

If you really knew C++, you wouldn't even joke about putting it
in the kernel.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

Windows-2000/Professional isn't.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/