A következő címkéjű bejegyzések mutatása: java. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: java. Összes bejegyzés megjelenítése

2010. december 11., szombat

The case for a new Apache/Google "Java"

I believe it is high-time that Apache and Google created a new, Java-like programming language, platform and VM which can easily accomodate the ports of the Java base libraries, all of the Apache developed Java libraries/applications and the typical, popular open-source libraries like Hibernate.

Java should start off on the same road as LibreOffice under a different name.

The new "Java" language should be sufficiently close to Java that a one-to-one source converter tool can be written for trivial porting of Java libraries. Apache Harmony is a good basis for this but Snoracle patents will have to be worked around.

The platform should be completely modular and compatible with the packaging systems of Linuxes (apt/yum) and other repository based packaging systems, so that self-containing application packaging can be avoided (this is the case now with most Java applications).

While the language should be backward-compatible with Java, it should incorporate most of the new language advancements of .Net, Python and Ruby. Of course only those which don't kill basic Java language features like strong-typing.

The new "Java" platform should have an Apache-led, democratic governing body. Similar to the JCP but without veto rights for anyone.

When the platform matures to 1.0 (if Google backs the project with enough cash, it could be reached quickly, since Harmony is likely a good starting point), Apache and Google should publicly announce that they stop active Java development, freeze all of their Java-based projects until they get ported to the new platform. Google should deprecate Java in the App Engine and thus forcibly move developers to the "new" Java. This migration should be easy/trivial.

This would of course practically kill Java but the new "Java" platform would become much stronger than Java has ever been because of the following:

  • Since it would be distributed under the Apache license, it would be very commercial-friendly and appealing to companies. We can expect every sane company moving to the new platform in the medium term especially because:

    • This platform would be truly open and the stewards (Apache/Google and possibly others) respected and trusted (esp. Apache)

    • Nobody actually believes that Oracle will be a good steward of Java.

    • Oracle will want to squeeze every last penny of Java (will hurt Java developers/users) without actual development of the platform. Just like they did with Oracle Forms and Reports.



  • Due to the open-source nature, packaging and modularity of the new platform, all Linuxes would happily include the new platform and this new "Java" would soon become the primary  development language of Linux projects, completely ousting Mono/.NET on the way. Those Linux projects would run on Windows as well so they would strengthen the migration path from Windows to Linux.

  • Strong Linux support would bring a substantial developer base to the platform (the open-source developer crowd).

  • Google would officially switch to this platform and the success of Android would help its rise considerably.

  • Android would bring a substantial developer base (huge number of Android developers)

  • Running Android applications on desktops would become possible which doesn't make sense now but it will soon, since a lot of Android apps will be soon rewritten for tablets and thus become eligible for desktop use.

  • The new language should become a primary citizen on the LibreOffice platform. Possibly a basis for every new, larger development in LibreOffice.

  • When projects like Maven and Ant get frozen on the old Java platform, developer migration will ensue en-mass to the new "Java".


The new platform would quickly dominate the server-side, where Java is the strongest currently and Linux is on the rise. It would also quickly dominate the mobile space due to Android.

It is possible that the new platform would also become successful on the desktop, at least in the enterprise space where a lot of Java desktop applications are deployed. The Linux desktop would be the first, possibly it would be followed by the Windows desktop.

Java in its current form, under the stewardship of Oracle, is destined to slow decline. Only a radical renewal like this could put it firmly back to the map of relevancy.

2010. október 22., péntek

My dream: Java SE on Android Linux

Although the Oracle - Google Java lawsuit looks ugly, there is a possibility that something good comes out of it: full Java SE appications running on Android.

That would be an awesome success for Oracle since it is by nature (steward of Java) interested in running Java applications in Android devices. Devices shipping with Android (tablets with dual-core ARM processor and 512Mb to 1 GB of RAM) are powerful enough to run full Java applications, even with Swing. Desktop applications are quite common in the enterprise space and would make Android devices very appealing in this segment. Especially in the tablet form factor.

Due to the overwhelming success of Android, Oracle would gain a lot of possible support contracts for Java SE on Android (support contracts are the ones Oracle is usually after)

Oracle should get over the need for controlling where Java SE can go (it is currently not allowed on phones) and remove these restrictions. Most of them don't make any sense anyway.

Google and Oracle should work together to create a flawless SE JVM for Android (the Linux runtime is probably a good basis for that) and make sure that graphical Java programs (Swing) run nicely and feel native on Android. Sun has made a lot of optimizations for ARM Cortex A9 level processors, that work should not be lost.

Synergies between Java and Android are already very strong, this step would correct Google's original mistake of leaving out SE compatibility of Android (I know the reasons but still I think it was a big mistake nontheless).

2010. február 13., szombat

Are smartbooks and Linux meant for each other?

Smartbooks are an upcoming mobile computing device category built around ARM's Cortex A8 and A9 line of processors. These devices are awaited with great anticipation because they promise a mixture between smartphone features (ultra-portable, 3G connected, always-on) and the functionality of netbooks/laptops (>9" screen, seamless web browsing, laptop-like computing performance...etc) at a price point lower than that of current netbooks (sub-$300). Some smartbooks will arrive in the tablet form factor, some of them will come in the more traditional laptop form factor. All of them are expected to be comparable to netbooks in processing power (see this and this).


It is an intriguing question whether smartbooks will widen Linux adoption and erode the often criticised monopoly of Windows on pc-like computing devices.

Since the desktop line of Windows currently doesn't run on ARM processors, we can exclude XP/Vista/7 from the list of likely contenders as smartbook operating systems. Windows 7 successors are currently not planned to be ported to ARM and even that wouldn't be a complete solution since Windows applications will have to be ported as well (a very wide, close-sourced ecosystem).

Microsoft has Windows CE for ARM processors. Windows CE has already been deployed several smartbook-like devices (e.g. the original Psion Netbook) so it is definitely a contender in this market. However, WinCE 6.5 currently doesn't support multiple or multi-core processors  and more than 512Mb of RAM so advanced ARM SOCs like the Tegra2 would be very much limited by this OS. Solving multi-processor support will require significant investment from Microsoft. Incompatibility with the desktop line of Windows is also a severe limiting factor for WinCE. WinCE devices cannot be sold on the appeal of general Windows-compatibility, the user will not be able to install Windows applications onto the device.

Linux on the other hand has a very good technical background on ARM. It has no limitations for processing cores and operating memory and has targeted distributions for this architecture. Android is an outstanding example but several well-known distributions - like Ubuntu - have ARM ports in addition to their x86 base edition. Also, due to the fact that most of the Linux applications are open-source, they are at least possible to port, so we can expect the full usual complement of desktop Linux applications to show up on an ARM Linux distribution when the need becomes visible for them.

Technical factors aside, there is always the argument for Linux: being free . This may be important with smartbooks due to the very low targeted price point which doesn't tolerate even moderate OS licensing fees (like $50/unit). So unless Microsoft gives Windows CE for practically free, Linux has the advantage here.

Since Windows CE has practically no advantages over Linux on ARM (in fact quite the opposite), Linux has a fairly good chance to be deployed on smartbooks as the primary operating system shipping with the device. Now, we can get into specifics. What kind of Linux and what kind of GUI?

Google's Android is a very special Linux distribution. It's touch-oriented GUI is simple and usable but it doesn't run X-Windows so lacks the usual full-fledged Linux applications (Android applications are specifically written for the Dalvik virtual machine and its APIs in Java.) With this in mind, and considering the current frenzy around Android, I expect it to be deployed heavily on smartbook tablets. This form-factor is ideal for use cases in which full-fledged desktop applications are not necessary (e.g.: a web tablet with media player capabilities). More advanced Linux users will likely be able to install a full desktop Linux onto their tablets but the average consumer will be satisfied with Android.

However, laptop-like smartbooks with keyboards are better served with a full-desktop Linux like Ubuntu due to the fact, that on these devices, buyers will expect full-fledged applications like OpenOffice, Thunderbird, Firefox...etc. Android would be very limiting for the use cases expected from a netbook/smartbook (editing complex text documents, spreadsheets, using a full-fledged browser, email client...etc). I believe, the exact GUI environment is not really important for this kind of smartbooks although some netbook specific desktop environments (like Ubuntu Netbook Remix and Moblin) may be more efficient for smartbook models with low-resolution screens (below 1024x768).

My conclusion is that every kind of smartbook device can be put to its full potential with a properly customized Linux variant. Manufacturers seem to be aware of this since most of the already announced products are known to ship with Android (e.g.: Notion Ink Adam) or hinted to ship with some kind of Linux (e.g.: Lenovo Skylight).

2009. december 26., szombat

Desktop Java applications on smartbooks: what to expect?

Smartbooks are an upcoming line of affordable, mobile computing devices. Their use case scenarios fit in well with currently popular Java desktop applications (e.g.: Azureus/Vuze bittorrent client, RSSOwl feed aggregator...etc) and there are still a lot of websites using Java applets or webstartable Java applications for auxiliary functions (like mass upload of files). Moreover, many company intranets contain desktop Java based technologies (e.g. fast data entry forms, GIS mapping clients...etc). Due to this, affordable, Java capable devices may spur wider adoption of mobile computing within companies. Finally, the new JavaFX rich internet application framework (an Adobe Flash competitor) seems to be heavily supported by Oracle, so we can expect advancements on JavaFX deployments on public and intranet websites. JavaFX has similar Java requirements as Java applets.

For these reasons, it is interesting how smartbooks can be expected to work with desktop Java software.

Since the upcoming smartbooks are mostly based on ARM, we need to analyse how Java is supported on the latest ARM system-on-chip (SOC) processors.

Originally, ARM created dedicated Java support in their processors through its Jazelle technology. This provided hardware acceleration in a CLDC profile environment (Java edition for smartphones and other embedded applications). Jazelle provides better startup times until the Hotspot compiler can compile Java bytecode to native ARM code. If the device is memory constrained, it is possible to use Jazelle alone, without the Hotspot compiler. Some details about this can be found here.

In a smartbook environment CLDC is not enough, the full Java Standard Edition is expected in order to make the computer be able to run complex desktop programs like Azureus.

A number of upcoming smartbooks are based on the Qualcomm Snapdragon platform (which is roughly an ARM Cortex A8 level processor). A recent development (June 2009) that Java standard edition has been ported and optimized for the Snapdragon platform (details here). It is unknown if the Snapdragon uses Jazelle and the optimizations include Jazelle but it is likely since other Qualcomm ARM processors include this technology. This is encouraging from the Java perspective (the article mentions 32x improvement in application performance) but the Snapdragon and Cortex A8 processors may be generally not fast enough for complex applications.

The more powerful smartbooks will be based on dual core Cortex A9 processors (like the nVidia Tegra 2). These are generally assumed to be comparable to latest Atoms in performance. For this processor type, Sun has recently demonstrated their optimized Java 6 Standard Edition environment (2009 Oct, details are here). Cortex A9 processors include Jazelle by default and it is likely that SOC manufacturers will also include them in their end products.

Conclusion: With proper customizations by the device manufacturer, Java applications may perform better on Cortex A8/A9 based ARM systems than on comparable Atom chips because of the inherent Jazelle hardware support and the ARM specific optimizations done by Sun. The safe bet - from the Java perspective - would be on dual core Cortex A9 based systems since these will certainly have the necessary processing power for desktop applications.

The success of smartbooks remains to be seen but it is safe to say that Java will have good support on these systems and customers of such machines may expect reasonable performance from their Java applications.