> My life would end before a sim developed in
> Java
Java performance really has improved a lot since it first appeared. Of course, there was an awful lot of room for improvement.
In theory a language with runtime compilation (e.g. Java) could out-perform a statically-compiled language (e.g. C++). Code such as (please forgive the somewhat contrived example):
for (i = 0; i < 1000000; i++) {
...
if (option_selected_at_runtime) {
...
} else {
...
}
...
}
can be compiled after the value of option_selected_at_runtime
is known, thus eliminating 1,000,000 conditionals.
Bookmarks