First of all, this is just downright false, JS *will* be slower than
Java, but I'll address each of your points.
On Sun, May 11, 2014 at 12:51 AM, 李白|字一日 calid...@gmail.com wrote:
thanks for the reply.
but i may think differently.
javascript runtime can be shared, and no new memory
If you're thinking Java is slow on a desktop compared to c++, you're
right - it is.
But Android doesn't actually run Java. :-|
You write code using the Java language. It's compiled into Java bytecode.
That bytecode is then processed again to create Dalvik dex files for
Android. Dalvik is
please have a look at this.
http://www.reddit.com/comments/1jw6h7
seems dalvik is slower.
2014-05-11 22:28 GMT+08:00 Kristopher Micinski krismicin...@gmail.com:
First of all, this is just downright false, JS *will* be slower than
Java, but I'll address each of your points.
On Sun, May 11,
javascript is not java, which doesn't necesarily need a vm. It is dynamic,
but not a vm based language
2014-05-12 0:34 GMT+08:00 李白|字一日 calid...@gmail.com:
please have a look at this.
http://www.reddit.com/comments/1jw6h7
seems dalvik is slower.
2014-05-11 22:28 GMT+08:00 Kristopher
Some operations are faster in Java these days, _most_ are functionally
equal, and a few special cases (not relevant to most developers), C++ is a
better choice. Making the blanket Java is slow statement is just
factually wrong today. Can we move on from 1992, please?
I'd add to your last
Java-based Android is very slow and memory consuming.
and the XML based UI components are far from flexible.
if Android sdk provides an html5 + javascript alternative, it would
greatly improve the android app possibilities.
as we have seen more and more popular apps are written by html, css
I have no idea why you think that using Java is slow and memory
consuming: especially when so many apps are being complied to native
code and the framework is getting better by the month.
FYI anything on JavaScript is going to require even *more* memory,
since the runtime of a JavaScript library
thanks for the reply.
but i may think differently.
javascript runtime can be shared, and no new memory allocation and memory
copying required, only the apps require new memories when running.
but the android vm is not, at least you should allocation memory for
inter-media code files like .class
8 matches
Mail list logo