Page 3 of 3 FirstFirst 123
Results 41 to 44 of 44
  1. #41
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Do you (couling) think it would be "generally" better to compile to native code? If so, why do you wish to restrict yourself and/or make loads of more work for yourself? Sure, you may have a "target" audience, but who's to say that others won't want what you're producing? And if you're producing native code you either can't give it to them or you have to redo everything again and again (and keep track of those versions, of course). And since the Jit/Hotspot is as effective as it is, I find it, more than, a bit pedantic to so concentrate on a possible native compiler "solution" (considering all of those questions above) when, at most it would acheive a negligible performance improvement, and would, just as likely, as things evolve, result in a performance reduction.
    Last edited by masijade; 11-25-2010 at 03:05 PM.

  2. #42
    couling is offline Member
    Join Date
    Nov 2010
    Rep Power


    I'm not in favor of native compiled code. I like java, I like the way it works, that's why I'm on this forum. I stated several benefits of java byte code earlier in this thread.

    My point was to disagree with a statement (somewhere earlier in this post) that using JIT rather than static (the subject of this thread) produced better native code. I see no evidence for this and little reason why it should.

    I'm a massive fan of Java's Object code and the benefits it brings. But I'm not a "fan-boy" and remain objective about why I like it. I always like my views to be challenged, hence taking part in this discussion.
    Last edited by couling; 11-25-2010 at 04:23 PM. Reason: My spelling sucks
    ----Signature ----
    Please use [CODE] tags and indent correctly. It really helps when reading your code.

  3. #43
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    I have seen objective data (although I can't find it!) where there are times when JIT works better than static compilation, usually with highly repetitive tasks, but that the converse is also (more often) true.

  4. #44
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power


    Do the people producing these tests show their methodology?
    Things like compilation flags set for the code, number of times run, the code that's run, the platform run on...that sort of thing.

    Because without any of that then the stats are meaningless.

    Can the JVM recompile code based ont he underlying hardware by the way?

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Java Code Won't Compile
    By JavaStudent1990 in forum New To Java
    Replies: 4
    Last Post: 07-29-2010, 10:34 AM
  2. New to JAVA and code cant compile
    By Gayethiri_86 in forum New To Java
    Replies: 2
    Last Post: 03-05-2010, 07:43 AM
  3. Replies: 6
    Last Post: 02-06-2009, 09:05 PM
  4. Compile/Execute code in Java app
    By Doctor Cactus in forum New To Java
    Replies: 5
    Last Post: 12-16-2008, 10:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts