Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #799

Re: `It would be better like this but we can't afford this due to CPU time reasons': dynamic and static links in Java

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.help
Subject Re: `It would be better like this but we can't afford this due to CPU time reasons': dynamic and static links in Java
Date 2011-06-21 11:53 -0700
Organization Canadian Mind Products
Message-ID <01q107t5ogsl03q4cbc6blckrr6h5k86kd@4ax.com> (permalink)
References <877h91fm80.fsf@merciadriluca-station.MERCIADRILUCA> <isjb2g$m2c$1@dont-email.me>

Show all headers | View raw


On Mon, 06 Jun 2011 12:50:39 -0700, Joshua Cranmer
<Pidgeot18@verizon.invalid> wrote, quoted or indirectly quoted someone
who said :

>
>Java isn't a native language, though, so the runtime has the ability to 
>sit back and compile things based on what it sees. The JIT is smart 
>enough to know that, though the call is in theory a virtual call, it is 
>in practice a nonvirtual call, which allows the method call the 
>opportunity to be inlined. In other words, it is possible to optimize 
>out the virtual method dispatch in many cases where the virtual dispatch 
>isn't necessary.

The mindboggling thing is when you load a new class and those
non-virtual calls became practically virtual again, the JIT is able to
regenerate the native code, without losing the current state of all
variables and stacks.  I don't recall ever hearing of a bug in this
process.  That is more impressive than walking on water.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
One of the great annoyances in programming derives from the irregularity
of English spelling especially when you have international teams.  
I want to find a method or variable, but I don't know precisely
how its is spelled or worded. English is only approximately phonetic.  
Letters are randomly doubled.  The dictionary often lists variant spellings.
British, Canadian and American spellings differ.I would like to see an 
experiment where variable names were spelled in a simplified English, where 
there were no double letters.I also think you could add a number of rules 
about composing variable names so that a variable name for something would
be highly predictable. You would also need automated enforcement of the 
rules as well as possible.

Back to comp.lang.java.help | Previous | NextPrevious in thread | Find similar


Thread

`It would be better like this but we can't afford this due to CPU time reasons': dynamic and static links in Java Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-06-04 21:08 +0200
  Re: `It would be better like this but we can't afford this due to CPU time reasons': dynamic and static links in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-06-06 11:08 -0700
  Re: `It would be better like this but we can't afford this due to CPU time reasons': dynamic and static links in Java Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-06-06 12:50 -0700
    Re: `It would be better like this but we can't afford this due to CPU time reasons': dynamic and static links in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-06-21 11:53 -0700

csiph-web