Re: What if?

From: Horst von Brand (vonbrand_at_inf.utfsm.cl)
Date: 12/05/04

  • Next message: Rudolf Usselmann: "Re: 2.6.9, 64bit, 4GB memory => panics ..."
    To: Jan Engelhardt <jengelh@linux01.gwdg.de>
    Date:	Sat, 04 Dec 2004 21:23:29 -0300
    
    

    Jan Engelhardt <jengelh@linux01.gwdg.de> said:
    > Imanpreet Singh Arora <imanpreet@gmail.com> said:
    > > Firstly I have read the FAQ. So though FAQ answers my question, it
    > >does so only partially.
    > >
    > > "What if Linux were to be implemented in C++?"

    > To quota Alan Cox (IIRC): "Been there, done that, threw it out".

    Not really. There was support to compile Linux using g++ for a C compiler
    some time back (because of better (at the time) type checking), the result
    was horrible (mainly due to compiler bugs, IIRC). The gain wasn't near
    worth the pain.

    Rewriting Linux in C++ means fundamental redesign(s); as mentioned, the VFS
    would become a class, as would the driver interfaces, and much more. The
    object model inside Linux is sufficiently different from C++'s that it
    would be a _huge_ job. And pointless, you'd just get Linux as it stands
    today, and loose many current developers (due to unfamiliarity with C++).

    -- 
    Dr. Horst H. von Brand                   User #22616 counter.li.org
    Departamento de Informatica                     Fono: +56 32 654431
    Universidad Tecnica Federico Santa Maria              +56 32 654239
    Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
    -
    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/
    

  • Next message: Rudolf Usselmann: "Re: 2.6.9, 64bit, 4GB memory => panics ..."

    Relevant Pages

    • Re: [patch] time_after_eq fix
      ... If it is "a good compiler" or "a really good compiler", ... > More majordomo info at http://vger.kernel.org/majordomo-info.html ... > Please read the FAQ at http://www.tux.org/lkml/ ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6 patch] let broken drivers depend on BROKEN{,ON_SMP}
      ... >> If you get a bunch of compiler errors without a clear indication that the ... >> to show Linux as the reliable alternative, not whatever MS is saying about ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] fix small DoS on connect() (was Re: BUG: Unusual TCP Connect() results.)
      ... Remember that BSD and Linux both ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • select( ) function with socket
      ... I use selectfunction of socket programming on linux. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: 2.6.5+BK compile error: binfmt_elf on sparc64
      ... >> At the first glance I can't see what's wrong here. ... > The compiler is telling us that the condition is always false because a 32-bit ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)