Hacker Newsnew | comments | leaders | jobs | submitlogin
Myths about JavaFX, Android, and J2ME (bitsandbuzz.com)
15 points by bbuffone 245 days ago | 9 comments


9 points by megaduck 245 days ago | link

Android kept the Java language, and pitched out the JVM.

Does this seem backwards to anyone else?

-----

5 points by wmf 245 days ago | link

Dalvik is basically a JVM. A lot of Java bytecode (including non-Java languages) will run on Android.

-----

2 points by twopoint718 245 days ago | link

It does. What would be the rationale for this? Is it just that they didn't want the standard Java ME runtime?

-----

8 points by nswanberg 245 days ago | link

Here is some speculation on why: http://www.betaversion.org/~stefano/linotype/news/110/

-----

2 points by jeremychone 245 days ago | link

Very interesting article on a possible explanation. Google is also doing this with GWT.

-----

1 point by twopoint718 245 days ago | link

It looks like this is good news for anything that targets the JVM though, as it looks like the path to Dalvik bytecode is:

    .java -> [javac] -,-> .class -> [dx] -> .dex
                     /
    ??? ------------'
Has anyone done this, with Clojure, for example?

-----

1 point by rictic 245 days ago | link

The most novel thing I've heard about Dalvik is their zygote technique for minimizing app startup time. The zygote is is a Dalvik process that's loaded and ready but for the actual bytecode it will need to run. To start a process it first makes a fork of the zygote, which allows for more shared memory and a more expensive initial setup time for the zygote without any penalty when creating new Dalvik processes.

I dunno if this technique necessitated writing their own VM however.

-----

1 point by aswanson 245 days ago | link

Most of these high-profile phones do not have Java out of the box, and getting a Java runtime can even be challenging. For example, there is no JavaVM out of the box on iPhone, Android G2/HTC-Magic, and Treo 750 WinMobile (I could not find one on my old Treo 750 WinMobile). And for the rest—well, the J2ME market is very fragmented.

Loopt seems to get it done in J2ME quite well. I don't buy it.

-----

3 points by jeremychone 245 days ago | link

As a US mobile users, I can't get Java on any of my phones (G2 or Treo), and I am a geek. There might be some JVM, but I did not find them.

-----




Lists | RSS | Bookmarklet | Guidelines | FAQ | News News | Feature Requests | Y Combinator | Apply | Library

Analytics by Mixpanel