Java gets going with version 8
Guests
Other programming languages are increasingly using the JRE as a base. This began with ports of old acquaintances like Python or Tcl but now also includes new languages like Scala [4], Ceylon [6], or Groovy [7]. For these languages to run as fast as possible on the Java Virtual Machine (JVM), Java 7 introduced support for dynamic languages (invokedynamic
).
One of the beneficiaries is the Nashorn JavaScript interpreter developed by Oracle, which in Java 8 replaces the old Rhino interpreter of previous versions and offers 100 percent support for the JavaScript specification [8] (Rhino: 95 percent; Firefox 26: 99.3 percent) and much better performance.
In tests against the SunSpider [9] benchmark, Nashorn is, on average, a factor of four better than Rhino; individual tests run up to 40 times faster (Figure 2). This means that not only have the promises of invokedynamic
been redeemed, but JavaScript now provides a lightweight scripting language for Java applications that can be used without additional libraries.
Special Effects
The rich client library Java FX has been through an interesting development (Figure 3). Highly praised in advance of its release as the designated successor of Swing, it was already declared dead after getting off to a false start. It has hardly featured in the media in the past two years, but has since been converted into a normal Java library in the form of Java FX 2.0.
Like SVG, for example, it supports the development of surfaces based on a scene graph, which can also contain widgets like TreeTable
or calendars in addition to graphic primitives such as lines and planes. Java 8 sees FX enter the game in a major way for the first time: Oracle offers it for Linux, Mac, and Windows. Unfortunately, Oracle is not working on the port for Android and iOS itself, and community projects [10] do not always receive the required corporate approval. This is unfortunate, because supporting mobile devices and desktops with a single GUI library would be a killer feature.
Desktop and Mobile
With some exceptions, such as Minecraft, new Java desktop applications are not the rule; today's choice is typically HTML5, which enables manufacturers to save in the desktop department, but at the price of technological restrictions. Although Java FX applications are allowed to access all Java libraries and local files, web applications apply strict limitations. People who viewed the use of local keys and certificates as a necessity a year ago may have been regarded as security nuts, but it has become the standard requirement for enterprise applications and still requires a rich client.
Another application was presented by Jasper Pott and Richard Blair at the last Java One in September 2013. The DukePad [11] is a tablet based on the Raspberry Pi and Linux, with Java FX as the UI. Plans for the hardware are available under the GPLv2; in combination with open source Linux, Java, and Java FX, this means a totally open source device. It will probably not outdo the typical Android tablets in terms of public popularity, but as a basis for kiosk applications or displays on machine controls, it offers an attractive development environment.
« Previous 1 2 3 4 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs