From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 14:09:19 2006 Return-Path: X-Original-To: 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 AB6C016A4DD for ; Fri, 21 Jul 2006 14:09:19 +0000 (UTC) (envelope-from tyler@bleepsoft.com) Received: from zeus.lunarpages.com (zeus.lunarpages.com [216.193.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F15543D46 for ; Fri, 21 Jul 2006 14:09:19 +0000 (GMT) (envelope-from tyler@bleepsoft.com) Received: from 24-240-211-104.dhcp.sprn.tx.charter.com ([24.240.211.104] helo=[192.168.250.100]) by zeus.lunarpages.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1G3vhp-0004xy-7D for hackers@freebsd.org; Fri, 21 Jul 2006 07:10:17 -0700 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <20060720060434.39002.qmail@web32702.mail.mud.yahoo.com> References: <20060720060434.39002.qmail@web32702.mail.mud.yahoo.com> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9363A463-63CF-4D21-9F5E-FC7E39CFF4E4@bleepsoft.com> Content-Transfer-Encoding: 7bit From: "R. Tyler Ballance" Date: Fri, 21 Jul 2006 09:09:13 -0500 To: hackers@freebsd.org X-Mailer: Apple Mail (2.752.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zeus.lunarpages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - bleepsoft.com X-Source: X-Source-Args: X-Source-Dir: 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 List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2006 14:09:19 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jul 20, 2006, at 1:04 AM, wrote: > FWIW; > > I went on to check that Embedded C++ that David Nugent mentioned, > and I found > this: > > http://www.caravan.net/ec2plus/ > > Acording to the Q&A section: > > "The goal of EC++ is to provide embedded systems programmers with a > subset of > C++ that is easy for the average C programmer to understand and > use. The subset > should offer upward compatibility with ISO/ANSI Standard C++ and > retain the > major advantages of C++. > To achieve the goal, several guidelines were established for > creating the > subset such as avoiding excessive memory consumption (overhead) and > removing > complex features." ... > > And also FWIW, I wouldn't object to having support for other languages > (Objective C ? ), if someone has/finds modules that could use the > features. I've been keeping track on this discussion, and I guess I'll toss my 2 cents in here. Objective-C, while a wonderful smalltalk-ish language (I use it daily), is definitely not nearly as suitable as C+ + for kernel modules, or embedded programming for that matter. The Core Audio framework on Mac OS X is mostly C++ for performance reasons, for example. Objective-C's reliance on message passing is probably as suitable for kernel modules as C# via Mono is, the runtime is a bit too bloated IMHO and because of the inherent design the two languages they just aren't suited (again IMHO) for real time work, or performance dependent functionality. Of course, if anybody has any links to anything performance intensive (audio code is the best example in my book) using either C# or ObjC then I will both be shocked and sickened ;) I really can't think of support for any other languages that would be good to add, C & C++ cover most of what the rest of the world writes their lower level code in. Cheers, - -R. Tyler Ballance -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEwN/kqO6nEJfroRsRAjyvAJ9BCvK9jC/GEWfjxFdZBbMK7UQiSgCfYRd7 VF1l80jl6vZhhJqc9dr2l3w= =XnRr -----END PGP SIGNATURE-----