lkml.org 
[lkml]   [2002]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: C++ and the kernel

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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.298 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site