Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2007 16:00:13 -0700
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Maciej Sobczak <prog@msobczak.com>
Cc:        freebsd-arch@FreeBSD.org
Subject:   Re: C++ in the kernel
Message-ID:  <20071030230013.GB33488@elvis.mu.org>
In-Reply-To: <47274A29.9040801@msobczak.com>
References:  <23408.1193557610@critter.freebsd.dk> <p06240801c34bf1e24986@[128.113.24.47]> <20071030055840.GS33488@elvis.mu.org> <47274A29.9040801@msobczak.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Maciej Sobczak <prog@msobczak.com> [071030 15:55] wrote:
> Alfred Perlstein wrote:
> 
> >I think the right thing to do here is to identify the things we
> >need added to C++ and propose those to the standards.
> 
> I think you got it completely backwards.
> 
> First a bit of context - the C++ standard committee is already in deep 
> sht^H^H^Hwork to get the current proposals straight and ship the new 
> standard revision, which is already late. No new proposals are accepted, 
> unless they save the world.
> Considering the usual rythm of standardization process, the next chance 
> to add anything to C++ will be at the end of the next decade. FreeBSD 
> might be already dead till that time with Linux overtaking whatever is 
> left from the community.
> 
> You should reverse your thinking and instead ask yourself: what parts 
> and elements of *current* C++ might be useful for kernel development?
> If you identify them you can actually benefit from adapting them.
> If not, abandon the idea altogether and continue the current way.
> If you try to do anything else, you will only waste resources.

I agree that we can use what's currently in C++, additional things
we can hack in ourselves and/or propose in the meanwhile.

> Actually, C++ is being used in embedded and real-time systems as well as 
> for signal processing, so apparently there *are* some communities that 
> already gained experience with constrained use of the language. 
> Presumably some of the constraints that these people face are also valid 
> in the kernel world, and presumably some of the solutions might be 
> successfully reused.
> Don't reinvent!

Yes.

-- 
- Alfred Perlstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071030230013.GB33488>