Re: Do you still choose java????

From: Peter Ashford (me_at_here.there.com)
Date: 11/28/03


Date: Fri, 28 Nov 2003 13:54:35 +1300

Mike wrote:

> Tim <nocomment@rogers.com> wrote in message news:<qHnwb.16995$X2W1.11742@news04.bloor.is.net.cable.rogers.com>...
>
>
>>Since Java is not compiled to machine
>>code, it my not be as efficient as some languages that do.
>
>
> Very common mistake made by many. The Java Virtual Machine translates
> the Java byte codes into real cpu machine language. It's called JIT
> (Just In Time) compilation.
> In simple algorithms I've seen Java perform 3 times faster than
> optimized C++.
> Overal, Java is slower than C++, yes, but not as much as people that
> think that Java is interpreted.
>
> To reduce startup time, the Java Virtual Machine can both interpret
> the code, and run the compiled code. The first time around it
> interprets the code to prevent the user from seeing a visual response
> delay due to the compilation time. It then decides which parts of the
> code can benefit the most from machine language compilation.
> You can influence the compilation behaviour through a number of
> command line options.

And, you can statically compile Java as well. Although, it's not worth
doing in general for efficiency reasons as the hotspot VMs produce very
swift code, as you mentioned.



Relevant Pages

  • Re: my mother wants to code?
    ... C is a pain in the ass, with compilation and link problems, the associated makefiles, memory management etc etc, but IMHO if you want to be a decent programmer, you have to know enough C to be able to appreciate differences in other languages ... I'd have said any functional language, but Haskell seems to be the newest functional language so it's probably the most relevant to the current state of programming ... Nice environment, but material teaches bad practice, very few .Net developers know anything about unit testing, scripting builds ... y or z (Have you tried to run any tutorial for Java Web development ...
    (comp.lang.ruby)
  • Re: Popularity of programming languages
    ... and the penalty for it is a language that is generally much ... A much bigger difference than GC between Java and C++ is the object ... Lisp-like uniform object referencing, but manual memory management ... and nobody can do JIT compilation right (probably because the ...
    (comp.lang.lisp)
  • Re: What would you like to know about JRuby?
    ... I often find myself writing jruby scripts in java just ... compilation is basically just a "blob of methods" that are wired up ... public IRubyObject method__1$RUBY$bar; ...
    (comp.lang.ruby)
  • Re: Why not Half Life 3 on Java ?
    ... I'm not a Java guru, ... > Excelsior JET is able to do reasonable "static" compilation. ... >> and pointers. ... > Only legal operator overloading is the operator overloading defined ...
    (comp.games.development.programming.misc)
  • Re: Smalltalk w/o IDE, etc.?
    ... Java crowd was sometimes along the line of, "sure there's a lot of verbosity in Java, but the IDE will generate all that infrastructure for you". ... Java is a compiled language and Ruby is an interpreted scripting language. ... you'd realize that the programmer is shielded from this fact - compilation is transparent and happens on the fly as you modify the program. ... the relative differences between {Ruby, Smalltalk, Lisp}, I think I'll pursue Lisp first, and then learn Smalltalk afterward. ...
    (comp.lang.smalltalk)

Loading