Re: [android-developers] looking for HTML5 and javascript based sdk....

2014-05-11 Thread Kristopher Micinski
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

Re: [android-developers] looking for HTML5 and javascript based sdk....

2014-05-11 Thread Larry Meadors
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

Re: [android-developers] looking for HTML5 and javascript based sdk....

2014-05-11 Thread 李白|字一日
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,

Re: [android-developers] looking for HTML5 and javascript based sdk....

2014-05-11 Thread 李白|字一日
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

Re: [android-developers] looking for HTML5 and javascript based sdk....

2014-05-11 Thread Colin M
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

[android-developers] looking for HTML5 and javascript based sdk....

2014-05-10 Thread 李白,字一日
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

Re: [android-developers] looking for HTML5 and javascript based sdk....

2014-05-10 Thread Kristopher Micinski
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

Re: [android-developers] looking for HTML5 and javascript based sdk....

2014-05-10 Thread 李白|字一日
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