Quote:
Originally Posted by kovidgoyal
And there's no reason a JVM can't be installed on the reader (other than that the reader's CPU is probably to slow to handle a GUI written in an interpreted language)
|
Well, first you have a
have a JVM for the architecture. Java is intended to be "Write once, run anywhere", with the compiled code being the same regardless of the hardware it runs on, and the JVM is expected to handle the hardware differences. So JVMs mist be carefully built and optimized for the platforms they run on.
But Java isn't exactly an interpreted language. Java compiles to a tokenized binary form called bytecode that is executed by the JVM, and Java compilers have steadily increased in sophistication, as have the JVMs. There are existing cases where Java apps under a JVM have outperformed equivalent applications written in C++.
My former cellphone was a Blackberry 7100t, which was Java based. My current PDA has a version of IBM's JVM for micro devices on it and successfully runs stuff like Opera Mini. Neither is a speed demon. (the PDA has a 200mhz ARM CPU. I don't recall the BB specs.)
______
Dennis