From owner-freebsd-current@FreeBSD.ORG Wed Nov 9 22:18:54 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2C1116A421 for ; Wed, 9 Nov 2005 22:18:54 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id C93FE43D49 for ; Wed, 9 Nov 2005 22:18:48 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 83C23BC66; Wed, 9 Nov 2005 22:18:44 +0000 (UTC) To: Charles Swiger From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 09 Nov 2005 16:23:28 EST." <1A496451-166E-46F1-8363-19F117156FEE@mac.com> Date: Wed, 09 Nov 2005 23:18:43 +0100 Message-ID: <1566.1131574723@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Marcin Jessa , Julian Elischer , current@freebsd.org Subject: Re: Generic Kernel API X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 22:18:54 -0000 In message <1A496451-166E-46F1-8363-19F117156FEE@mac.com>, Charles Swiger write s: >Apple has found that using inheritance is a big win for them: "In >addition, code reusability decreases the memory footprint of drivers; >drivers ported from Mac OS 9, for example, have been up to 75% >smaller in Mac OS X." Of course, it's easier to say such things then >to write the code, but Apple has achieved pretty good results from >the IOKit. Apple also has significantly better control over the hardware they have to write drivers for. That said, there is a lot of stuff which could be improved in our APIs. And I wouldn't mind getting a "C with classes" language with a couple of domain-specific extensions in the bargain. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.