Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754818AbYCaPS6 (ORCPT ); Mon, 31 Mar 2008 11:18:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751427AbYCaPSu (ORCPT ); Mon, 31 Mar 2008 11:18:50 -0400 Received: from wr-out-0506.google.com ([64.233.184.237]:63703 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751377AbYCaPSt (ORCPT ); Mon, 31 Mar 2008 11:18:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YJ/1O4XCNZkkrWTjTrc0Y0ivB/xOeptOG3thhgu+xXhuIZMfdKu7KAlp+uXG8vvvITh5JvE+M/sNWOkhy6U2F3XvBdlU0Hm2ScwIUw2fByJG+n6fHa23HE1IqUdRiEQos5WBgF4Qk709lFNwPD2wG7fI9FTCb9RpJsDu1NAPZns= Message-ID: <804dabb00803310818u36b29ea3hf10ec0e44fdf7d8c@mail.gmail.com> Date: Mon, 31 Mar 2008 23:18:47 +0800 From: "Peter Teoh" To: "Bernd Eckenfels" Subject: Re: RFC: Writing Solaris Device Drivers in Java Cc: linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47F0491F.4050804@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2162 Lines: 57 Thank you for the comments. > > I think the device driver reuse between the various C-kernels is pretty big. > For efficiency and since the low level stuff is a major part of device > drivers, I cant see a Java solution. I guess we would see drivers in Forth before :) not sure about forth, but fortran is claimed to be faster than C, based on ease of optimization reason: http://www.idiom.com/~zilla/Computer/javaCbenchmark.html For a surprising benchmark dated Oct2007, this guy started off without knowing who will win: http://www.stefankrause.net/wp/?p=4 http://www.stefankrause.net/wp/?p=6 Looking at all those number, unbelivebly Java performed better than gcc in several ways. To quote the author: "# Saying that C is generally several times faster than java is - according to those benchmarks - simply wrong." but he also cautioned: "# Saying that Java is faster than C can also be pretty wrong, especially if you have to stick with one JVM." http://www.freewebs.com/godaves/javabench_revisited/ http://kano.net/javabench/ well, performance of speed is one thing, but other stuff like (for desktop computing) ease of support, enhancement, and ease of use need to be considered as well. That's why .Net, with its huge overheads, still has a huge followers, even though its predecessor is much more efficient and faster, and delivering the same level of GUI programming feature. For embedded and server-based computing performance will still be king. But won't you be enticed to a new world of programming where one or two liners can replaced 10 lines in C? With the complexity in locking and irq handling all taken care of underneath you? Ie, automatic synchronization done by some other components in the kernel, thus reducing the lines of codes? Well.....the future is uncertain....i cannot predict it :-). Happy April Fool's Day (I like that joke!!!! LOL...) - Regards, Peter Teoh -- 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/