From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 11 19:26:10 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D839016A4E2 for ; Tue, 11 Jul 2006 19:26:10 +0000 (UTC) (envelope-from pfgshield-freebsd@yahoo.com) Received: from web32710.mail.mud.yahoo.com (web32710.mail.mud.yahoo.com [68.142.207.254]) by mx1.FreeBSD.org (Postfix) with SMTP id 3296E43D5F for ; Tue, 11 Jul 2006 19:26:10 +0000 (GMT) (envelope-from pfgshield-freebsd@yahoo.com) Received: (qmail 14146 invoked by uid 60001); 11 Jul 2006 19:26:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=S5PH14BlyZ4l9h0Pr8iIbdToanebTUZXHZJd7ufYs7fe8urd9uu6z7Pe0MLaYPtVPqR0bCuOTbUAYJc7k2xJZos2N3UaeKOFLIrOw19QAcBKrSxyvwqxAbrHzd4E69IZn74UxMV8qbJ7RrPwWuHI/s2dvPhwXAdXyk9p+Aq9dxY= ; Message-ID: <20060711192609.14144.qmail@web32710.mail.mud.yahoo.com> Received: from [200.118.70.231] by web32710.mail.mud.yahoo.com via HTTP; Tue, 11 Jul 2006 21:26:09 CEST Date: Tue, 11 Jul 2006 21:26:09 +0200 (CEST) From: To: freebsd-hackers@freebsd.org, mag@intron.ac MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailman-Approved-At: Wed, 12 Jul 2006 00:08:38 +0000 Cc: Subject: Re: kern/99979: Get Ready for Kernel Module in C++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfgshield-freebsd@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 19:26:11 -0000 FWIW and just IMHO; I think it would be really nice to have the IOKit, or a lookalike that uses kobj(), available on FreeBSD. Another interesting experiment that I've mentioned before is OpenBFS: http://www.bug-br.org.br/openbfs/index.phtml?section=development "OpenBFS, as all file systems under BeOS, is being developed as a kernel add-on. Unlike all other file systems (and kernel add-ons in general), it is being developed in C++. Contrary to popular belief, it is possible to use C++ in the kernel provided you play by the book and follow some rules: - No exceptions - (Almost) no virtuals (well, the Query code in OpenBFS uses them) - It's basically only the C++ syntax, and type checking - Since one tend to encapsulate everything in classes, it has a slightly higher memory overhead This is acceptable as we get some benefits out of it: - Nicer code - Easier to maintain " cheers, Pedro. Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com