Re: Help me!! Why java is so popular
- From: Mark Thornton <mark.p.thornton@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 06 Feb 2007 22:41:06 GMT
raddog58c wrote:
For instance, someone was asking me about checking for an already-If we are talking about arbitrary applications then that only works for applications that actually have a window.
running instance of a program on a Windows workstation. That's a
really easy thing to implement in any language that can talk directly
to the OS -- about 15 lines of code invoking EnumWindows.
On the other hand if we are talking about testing for an instance of your own application (written in Java) then that is possible without resorting to JNI.
You can't do that in Java, however, unless you go JNI.
I would say "the penalty is usually pretty small now" is very context
sensitive. Not to pick on you personally, but the general embracing
of the "memory is cheap" or "performance is good enough" is popular in
the Java community, and it's wrong to me. Maybe that's because I use
everything from MASM to IBM 370 BASM to C, C++, Java, VB and Perl, not
sure...
Sometimes the penalty can be zero or even negative, particularly for applications which run long enough to eliminate the startup effects of JIT compiling.
But I would never, or at least rarely, use Java for desktop utilitiesRubbish. You can do quite a lot of useful work with the JVM 'using' only 8MB or less which is trivial in the context of 1GB memory. I've been running a service, written in Java, which has no noticeable effect on the responsiveness of my normal applications. It sits there all day doing its stuff and I can easily forget that it is still running. My machine is a 4 year old 3.06GHz Pentium with 1GB of RAM.
I create for myself because the startup time is dreadfully slow, and
the impact on other applications is large. If you're running a system
with a GIG or less of RAM, firing up a memory-hungry JVM isn't
Performance is the biggest drawback to using Java, maybe its only bigLook who is making blanket statements. I care a lot about performance, but I don't have a problem in this respect with Java. Java isn't perfect. For some applications it can be slower than say C++, but in other cases it can be just as fast (or even faster).
drawback, and that's why I'm such a huge opponent against blanket
statements that ignore this side of the Java tradeoff.
Mark Thornton
.
- Follow-Ups:
- Re: Help me!! Why java is so popular
- From: Chris Uppal
- Re: Help me!! Why java is so popular
- From: raddog58c
- Re: Help me!! Why java is so popular
- References:
- Help me!! Why java is so popular
- From: amalikarunanayake
- Re: Help me!! Why java is so popular
- From: Jack Kielsmeier
- Re: Help me!! Why java is so popular
- From: raddog58c
- Help me!! Why java is so popular
- Prev by Date: Re: TreeSet and HashSet
- Next by Date: Re: Java needs "goto" (was Re: hi)
- Previous by thread: Re: Help me!! Why java is so popular
- Next by thread: Re: Help me!! Why java is so popular
- Index(es):
Relevant Pages
|