Re: C++ and the kernel

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Tue Apr 09 2002 - 07:10:15 EST


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/



This archive was generated by hypermail 2b29 : Mon Apr 15 2002 - 22:00:12 EST