June 08, 2009

JavaFX squares off against AJAX

Prominent AJAX developers Ben Galbraith and Dion Almaer each take a side in a mock debate over the merits of the two technologies at the JavaOne conference

In a mock debate focused on the rich Internet application development realm, AJAX was pitted against Sun Microsystems' JavaFX Friday, with proponents for both technologies pointing up their entrant's high points and the low points of their rival.

A session at the JavaOne conference in San Francisco had the co-founders of the Ajaxian Web site for AJAX technologies squaring off, with Ben Galbraith playing the part of the JavaFX advocate and Dion Almaer serving as AJAX's proponent. Both serve as co-directors of developer tools at Mozilla. While Galbraith and Almaer are obviously geared toward AJAX, Galbraith said he also has experience consulting on Java.

"JavaFX is built on top of an incredibly mature runtime that gives you amazing performance," as well great features, and [Oracle CEO] Larry Ellison, Galbraith said, giving a humorous nod to Oracle's plans to buy Java founder Sun Microsystems.

[ For more info on rich Internet application platforms, check out "Not your father's Web: The year in RIAs" | Also check out other news from JavaOne. ]

Almaer focused on AJAX being synonymous with the Web. "It's all Web stuff that's going on," he said.

The two went back and forth, measuring factors such as graphics performance, language capabilities, and tools.

"Today's JavaScript runtimes are just pitiful," Galbraith said, and the Web is slow, he added. Java also has a more sophisticated API, he argued. But Almaer countered, "We have a very simple API. I consider that a feature."

Almaer also advocated the performance of the Google Chrome browser, prompting Galbraith to ask how many people actually use Chrome.

In the graphics space, JavaFX and Java outpace AJAX "by a huge margin," Galibraith said. Almaer promoted the Canvas graphical technology for browsers. Google's new O3D technology also boosts 3D rendering on browsers, said Almaer.

Video, Galbraith said, is "an area [where] I'm pleased to say JavaFX is also leading the way."  But citing YouTube as a successful Web video venture, Almaer said rich video already is possible now on the Web through mediums such as Flash. In addition, HTML 5 also supports video and is backed by Mozilla, he said.

Almaer asked why JavaFX needed its own language, (JavaFX Script), rather than using something already available, such as Groovy. "You have to invent yet another language," Almaer said.

JavaScript far outpaces JavaFX when it comes to available components, he said. "In our world of JavaScript, you've of course got millions of components," said Almaer.

Galbraith pointed out there have been issues with CSS, which is used with JavaScript. He did this by showing a coffee cup, with a box showing the words "CSS is awesome," with the word, awesome, over-running the lines of the box.

Close

On Twitter now

Application development

Powered by Twitter

White Paper

D2D Virtual Tape Library Replication Primer

This whitepaper explains the terminology and concepts behind Data Replication technologies and establishes some sizing rules through worked examples. Learn the new paradigm in disaster tolerance—protect data anywhere.

Download now »

White Paper

An Alternative to Virtualization for Datacenter Cost Savings

Server virtualization is a popular option for dealing with mounting datacenter costs. Another equally promising approach is the use of an Application Delivery Controller. Citrix NetScaler provides a low-cost way for organizations to reduce their server count and accrue cost savings from a reduction in space, cooling, power and personnel.

Download now »

White Paper

Why Your Firewall, VPN, and IEEE 802.11i Aren't Enough to Protect Your Network

The emergence of WLANs has created a new breed of security threats to enterprise networks.

Included in HP ProCurve WLAN solutions is security technology that alleviates threats from WLANs through:
* Monitoring wireless activity inside and out of the enterprise
* Classifying WLAN transmissions into harmful and harmless
* Preventing transmissions that pose a security threat to the enterprise network
* Locating participating devices for physical remediation

Download now »

White Paper

Bringing the Edge to the Data Center

Effectively address data protection challenges, implementing solutions that help store and protect business–critical data while cutting costs and improving efficiency and reliability.

Download now »

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Developer World Newsletter

Receive a weekly roundup about the art and science of software development.

©1994-2009 Infoworld, Inc.