Re: RFC: Writing Solaris Device Drivers in Java



On Mon, Mar 31, 2008 at 11:18 PM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
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...)

Just would like to comment further: analogous to the trend that with
the huge increase in storage space availability, size of storage
required is of minimal concerns, in comparison with other more serious
bottlenecks, the future CPU may have so much spare execution cycles,
that emulation (like what Java or AMD Pacifica or Intel VMX is doing)
is a much needed feature instead, as it provide other feature like
security assurance etc, without affecting interactivity on the users,
or perhaps being overshadowed by other bottleneck (like network I/O,
or harddisk I/O etc).

Thanks.



--
Regards,
Peter Teoh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: RFC: Writing Solaris Device Drivers in Java
    ... For efficiency and since the low level stuff is a major part of device ... I guess we would see drivers in Forth before:) ... unbelivebly Java performed better than ...
    (Linux-Kernel)
  • Re: RFC: Writing Solaris Device Drivers in Java
    ... 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 ... I guess we would see drivers in Forth before:) ...
    (Linux-Kernel)
  • Re: Consultant Engineers with ARM processor experience required
    ... especially for low level debugging. ... MP3 player with no requirement to work on the multimedia ... Not necessarily for low level drivers. ... >> The client offices have views of the Alps, ...
    (comp.arch.embedded)
  • Re: Java problem
    ... Java exists on a web page somewhere and it is ... In this group comes the driver for Nvidia hardware. ... What OS or Linux distribution natively ... buy the card, in a box, drivers are supplied on a CD. ...
    (Fedora)
  • Re: How did C++ beat the competition?
    ... design of Java that prevents it from being as efficient as C++, ... into the design over the years. ... Efficiency is supposed to be built into the JVM, ... >>produce useful code, so there was a lot of initial wins. ...
    (comp.lang.cpp)

Loading