D vs VM-based platforms

Jascha Wetzel "[firstname]" at mainia.de
Mon Apr 30 12:09:29 PDT 2007


even if JIT does equally well, it's basically O(n) vs. O(1), n being the
number of runs of the program. unless the advantage of dynamic
optimization outweighs the cost of runtime compilation it's unlikely to
be more efficient than pre-runtime compilation.

Sean Kelly wrote:
> Jan Claeys wrote:
>>
>> And I think in the case of dynamic languages like Python, a JIT-compiler
>> often can create much better code at run-time than a compiler could do
>> when compiling it before run-time.
> 
> One issue with run-time optimization is its impact on performance.  A
> traditional compiler can take as long as it wants to exhaustively
> optimize an application, while a JIT-compiler may only optimize in a way
> that does not hurt application responsiveness or performance.  At SDWest
> last year, there was a presentation on C++ vs. Java performance, and one
> of the most significant factors was that most Java JIT-compilers perform
> little if any optimization, while C++ compilers optimize exhaustively.
> That said, JIT optimization is still a relatively new practice, and with
> more cores being added to computers these days it's entirely possible
> that a JIT optimizer could run on one or more background CPUs and do
> much better than today.
> 
> 
> Sean



More information about the Digitalmars-d mailing list