Freescale and Oracle made a press release they will jointly push Java to IoT. This makes me interested, does it make sense to use Java in Embedded at all?
I have to admit I have always been suspicious about the usefulness of Java. Historically due to the performance reasons, and nowadays due to the fact that there exists other high-level programming languages that provide better productivity, like Python and JavaScript, just to mention a few.
In the past, Java processors executing bytecode native in hardware were expected to solve capacity and performance constraints in embedded systems. Even if number of such Java processors exists Today, that technology never really entered into the mainstream, and nowadays you seldom hear anyone talking about.
Java ME Embedded is optimized for ARM architecture. The datasheet says standard configuration requires 700KB RAM and 2000 KB ROM, and it is possible to tear it down to 130 KB RAM and 350 KB ROM. I'm not convinced. In MCU systems it is typically crucially important to have full control over time critical execution, and energy efficiency is usually an issue.
Both in super-scalar server systems and resource constrained embedded systems asynchronous programming is more efficient way of using the available resources. Strict object formalism just does not make sense. Loosening the object paradigm then ruins the fundamental idea behind Java.
For MCU systems, I'd choose something like mbed instead. And in case of CPU systems, perhaps JavaScript and Node.JS coud do the job. Actually, that is the architecture I selected for a trade fair and sales demonstrator which is under constructions. Our engineers surprised my by the productivity they gained, and they reported being happy with the technology by themselves too.
I'll discuss more about the demo in next postings.
Edit Oct. 15th:
This seems to be a hot topic in the community as well. First Dr.Dobbs
published an article on Oct. 8th: If Java Is Dying, It Sure Looks
Awfully Healthy
http://www.drdobbs.com/jvm/if-java-is-dying-it-sure-looks-awfully-h/240162390
Then they received tons of feedback, and wrote a response on Oct 15th: 1000 Responses to Java Is Not Dying
http://www.drdobbs.com/jvm/1000-responses-to-java-is-not-dying/240162680
Refressing
to read such a discussion. There is one argument that I want to quote:
"Java only appears to be dying because the cool kids prefer other
languages". That's most probably true. But then back to my original
topic. Terrance Bar from Oracle put's it this way:
""There are 9
Million Java developers in the world, compared to 300,000 embedded C
developers. On top of that, more and more products are coming from small
startups without specialised embedded knowledge. They do know Java
though."
Possible not cool, but there is quite a lot of mass left still.
This seems to be a hot topic in the community as well. First Dr.Dobbs published an article on Oct. 8th: If Java Is Dying, It Sure Looks Awfully Healthy
ReplyDeletehttp://www.drdobbs.com/jvm/if-java-is-dying-it-sure-looks-awfully-h/240162390
Then they received tons of feedback, and wrote a response on Oct 15th: 1000 Responses to Java Is Not Dying
http://www.drdobbs.com/jvm/1000-responses-to-java-is-not-dying/240162680
Refressing to read such a discussion. There is one argument that I want to quote: "Java only appears to be dying because the cool kids prefer other languages". That's most probably true. But then back to my original topic. Terrance Bar from Oracle put's it this way:
""There are 9 Million Java developers in the world, compared to 300,000 embedded C developers. On top of that, more and more products are coming from small startups without specialised embedded knowledge. They do know Java though."
Possible not cool, but there is quite a lot of mass left still.
Thanks for sharing this quality information with us.
ReplyDeleteprostitution in London
Thank you for your post. There are some libraries implemented in Java that required embedded programmers to read from scratch
ReplyDelete