Re: Why not written in Java?
- From: "Alan Meyer" <ameyer2@xxxxxxxxx>
- Date: Mon, 17 Jul 2006 19:37:47 -0400
Raghar,
I think that a lot of your points are well taken, but
they're about ease of programming, not program
efficiency.
For most of what most programmers do, ease of
programming is more important than efficiency. But
it's not true of all programs. I have worked on numerous
projects where efficiency and/or control is critical.
For example, I've been on publishing projects where
a program must parse and process a million or more
XML documents. Using the C++ parsers and XSLT
processors rather than the Java based ones might
take hours or days off the program run time.
Or consider what happens in a web browser like Firefox
or IE, where a user may have 10, 20, or 40 web pages
open at once. Or a word processor where a user might
be editing a 10 MB technical manual and do a search
for some words, or format a document for printing. Or
an image editor like Photoshop or GIMP where a user
might have a 10 megapixel image open, with five or six
editing layers and multiple levels of undo.
Or consider command line tools like grep or wc or
uniq. I can process a file with one of those tools
faster than I can load and initialize the Java virtual
machine, never mind load a Java program and run
it.
I understand why detailed memory management,
programmer supplied destructors, and multiple
inheritance seem scary to you. They do put more
demands on the programmer and make it harder
to produce a bug free program. But they are still
justified for some projects.
Some people would say, Why use Java? Why not
do everything in Excel, or a declarative language like
SQL, or RPG (that's "Report Program Generator", not
"Rocket Propelled Grenade" :)) But you can't solve
every problem with simple tools. Sometimes you
need a more complex tool like Java.
And sometimes you need a still more complex
tool like C++, or a simpler but trickier one like C.
I would venture to say that, until computers become
many times faster than they are now, with many times
more memory (which will eventually happen) there
will not be a popular word processor or web browser
or photo editor written in Java. And it will be many
years more before we see system software written
in Java.
Alan
.
- References:
- Re: Why not written in Java?
- From: Alan Meyer
- Re: Why not written in Java?
- From: Raghar
- Re: Why not written in Java?
- Prev by Date: How Do You Tell How Long it Takes for a Piece of Code to Execute?
- Next by Date: Re: inner class and static
- Previous by thread: Re: Why not written in Java?
- Next by thread: Re: Why not written in Java?
- Index(es):
Relevant Pages
|