SlideShare a Scribd company logo
JavaFX vs. Ajax   (and vs. Flex) Ben Galbraith (Mozilla) and  Don Almaer (Ajaxian, Inc.) TS-5587  JavaOne 2009 Debriefing Session Sean Chung
JavaFX Scripting Language A scripting language for interactive graphics, media, and animation. Slide 1 1
Slide 2 JavaFX Scripting Language Object-oriented (of course) Expression language Declarative and Procedural Integrates with Java (can import Java classes) Compiles to byte code; runs on JVM Incorporates the concept of time Data binding Mixin classes like Java interfaces 2
Slide 3 Ajax vs. JavaFX - on Performance Java is way faster than JavaScript But JavaScript is getting faster (V8 – Google Chrome JavaScript Virtual Machine) Good enough. 3
Slide 4 Ajax vs. JavaFX - on Performance cont’d vs. Flex (ActionScript) Comparison done with Takeuchi Benchmark ( JavaWorld article   http://www.javaworld.com/community/node/1268 ) “ In summary, for this benchmark, with the hotspot server vm,  JavaFX script outperforms  statically typed  ActionScript by a factor of 12 …” 4
Slide 5 Ajax vs. JavaFX - on Responsiveness  of  UI JavaFX better with worker-threads Using “web workers”, single thread-ness of JavaScript can be overcome but SLOW. 5
Slide 6 Ajax vs. JavaFX - on Responsiveness of UI cont’d vs Flex Execution model of ActionScript is single-threaded BUT, underlying Flash Player uses threads, providing UI responsiveness  6
Slide 7 Ajax vs. JavaFX – Graphical capability Bubblemark animation test http://bubblemark.com 7
Slide 8 Ajax vs. JavaFX – Graphical capability cont’d SURPRISE!!! Static graphics: Chrome 100 fps vs. JavaFX 24 fps. Vector graphics: Chrome 30 fps What the speakers don’t consider is that JavaFX is a very new and to-date under-optimised technology.  8
Slide 9 Ajax vs. JavaFX – Graphical capability cont’d vs. Flex JavaScript on Firefox: 75 fps. Flex 2 on Flash Player 10: 190 fps. JavaFX 1.0: 260 fps. 9
Slide 10 Ajax vs. JavaFX – 3D graphics Ajaxian 3D Metatunnel http://ajaxian.com/archives/metatunnel-the-future-web-strikes-back Most browsers are offering 3D extensions. NO 3D support for JavaFX 10
Slide 11 Ajax vs. JavaFX – 3D graphics cont’d vs. Flex Flex 4 (Gumbo) mx.effects.FxRotate3d  Lots of 3D engines / libraries out there Roxik Sharikura  http://temp.roxik.com/ Jiglibflash 3D physics engine  http://code.google.com/p/jiglibflash/ Etc. etc. 11
Slide 12 Ajax vs. JavaFX – Fonts Java is weak on fonts. The speakers claim that we can’t use native fonts in Java. Control over fonts in the Ajax world is even more limited, however.  12
Slide 13 Ajax vs. JavaFX – Fonts cont’d vs. Flex l@@k at  www.behr.com   VERY GOOD font support / control with Flex 13
Slide 14 Ajax vs. JavaFX – Video JavaFX provides “amazing” video support.  Open Web Video offers sophisticated video functions – browser dependant; trouble with IE 14
Slide 15 Ajax vs. JavaFX – Video cont’d vs. Flex Flash plugin surpasses JavaFX in terms of maturity. De facto standard of the video on the web 15
Slide 16 Ajax vs. JavaFX – Language Features Binding in JavaFX is compact and elegant. Web toolkits are very clumsy by comparison.  The speakers quickly mention Mixins, Animation and Effects. All of this is way easier in JavaFX  16
Slide 17 Ajax vs. JavaFX – Language Features cont’d vs. Flex (ActionScript 3) Binding Animations, Sequences, Triggers More mature than JavaFX 17
Slide 18 Ajax vs. JavaFX – Deployment Web wins. Except for the significant browser incompatibilities Java Setup still takes too long. 18
Slide 19 Ajax vs. JavaFX – Deployment cont’d vs. Flex No browser compatibility issue, no hassle installation Adobe Flash Player Penetration – March 2009  http://www.adobe.com/products/player_census/flashplayer/version_penetration.html 19 72.0% 99.3% 98.8% Japan 75.3% 98.6% 98.9% Europe 74.5% 98.8% 99.1% US/ Canada Flash 10 Flash 9 Flash 8
Slide 20 Comparison done legitimately? How big is the intersection? Ajax – social networking, mashups, portals Flex – multimedia rich apps JavaFX – mobile? Set-top box? 20
The End 5 minutes of question time starts now!
Questions 4 minutes left!
Questions 3 minutes left!
Questions 2 minutes left!
Questions 1 minute left!
Questions 30 seconds left!
Questions TIME IS UP!

More Related Content

What's hot (20)

PDF
Developer Training for 23 Video
Steffen
 
PPTX
Video js zagreb
Doug Sillars
 
PPTX
Krakow video
Doug Sillars
 
PPTX
Corkgdg video
Doug Sillars
 
PPTX
Warsawclouddays video
Doug Sillars
 
PPT
Html5 Video Vs Flash Video presentation
Matthew Fabb
 
PPTX
Portogdg video
Doug Sillars
 
PDF
OSDC 2008 talk: An open source "YouTube"
Silvia Pfeiffer
 
PPTX
Vilnius py video
Doug Sillars
 
PPTX
Gdg lublin video
Doug Sillars
 
PPTX
Armadajs video
Doug Sillars
 
PPTX
Rija js video
Doug Sillars
 
PPT
Veronica V
Veronica
 
PDF
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Gavin Pickin
 
PDF
Composer - The missing package manager for PHP
Tareq Hasan
 
PPTX
Visual Regression Testing: In search of an Ember solution
Lisa Backer
 
PPTX
Responsive browser-based video recording and playback
Oliver Friedmann
 
PDF
Realtime with-websockets-2015
ColdFusionConference
 
PDF
Nuxeo - Digital Asset Management
Thomas Roger
 
PDF
Html5 - audio and video tags
Rae Allen
 
Developer Training for 23 Video
Steffen
 
Video js zagreb
Doug Sillars
 
Krakow video
Doug Sillars
 
Corkgdg video
Doug Sillars
 
Warsawclouddays video
Doug Sillars
 
Html5 Video Vs Flash Video presentation
Matthew Fabb
 
Portogdg video
Doug Sillars
 
OSDC 2008 talk: An open source "YouTube"
Silvia Pfeiffer
 
Vilnius py video
Doug Sillars
 
Gdg lublin video
Doug Sillars
 
Armadajs video
Doug Sillars
 
Rija js video
Doug Sillars
 
Veronica V
Veronica
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Gavin Pickin
 
Composer - The missing package manager for PHP
Tareq Hasan
 
Visual Regression Testing: In search of an Ember solution
Lisa Backer
 
Responsive browser-based video recording and playback
Oliver Friedmann
 
Realtime with-websockets-2015
ColdFusionConference
 
Nuxeo - Digital Asset Management
Thomas Roger
 
Html5 - audio and video tags
Rae Allen
 

Similar to JavaFX vs AJAX vs Flex (20)

ODP
Better Drupal Interaction Design with Flex
Chris Charlton
 
PPT
Javafx
Tarun Soni
 
PPT
Flex RIA
rssharma
 
PPT
Flex And Ria
ravinxg
 
PPTX
JavaFX Versus HTML5 - JavaOne 2014
Ryan Cuprak
 
PDF
Beyond The Buzz: Pluggable JavaFX Corporate Applications
JAX London
 
PPTX
JavaFx
Rohan Bhanderi
 
PPT
Flex_Basic_Training
guest25cec3
 
PDF
Download full ebook of Flex on Java Bernerd Allmon instant download pdf
bzuraklaasoq
 
ODP
Adobe Flex Framework
Elena-Oana Tabaranu
 
PPT
Developing RIAs... 10 reasons to use Adobe Flex
Matthias Zeller
 
PDF
Download full ebook of Flex on Java Bernerd Allmon instant download pdf
chauvyzhugli
 
PDF
blue-infinity White Paper on JavaFX by Jan Stenvall
blue-infinity
 
PPT
Building a Real-World Application with Adobe Flex 2
dcoletta
 
PPT
Flex introduction
iamprajyot
 
PPTX
Apache Flex - Enterprise ready GUI framework
Tomislav Pokrajcic
 
PPTX
Java fx
Apsara G
 
PPT
Architecting RIAs
Mark Nankman
 
PPT
Flex & Drupal Integration
Matthew Connerton
 
PPT
Introduction To Rich Internet Applications
Abdelmonaim Remani
 
Better Drupal Interaction Design with Flex
Chris Charlton
 
Javafx
Tarun Soni
 
Flex RIA
rssharma
 
Flex And Ria
ravinxg
 
JavaFX Versus HTML5 - JavaOne 2014
Ryan Cuprak
 
Beyond The Buzz: Pluggable JavaFX Corporate Applications
JAX London
 
Flex_Basic_Training
guest25cec3
 
Download full ebook of Flex on Java Bernerd Allmon instant download pdf
bzuraklaasoq
 
Adobe Flex Framework
Elena-Oana Tabaranu
 
Developing RIAs... 10 reasons to use Adobe Flex
Matthias Zeller
 
Download full ebook of Flex on Java Bernerd Allmon instant download pdf
chauvyzhugli
 
blue-infinity White Paper on JavaFX by Jan Stenvall
blue-infinity
 
Building a Real-World Application with Adobe Flex 2
dcoletta
 
Flex introduction
iamprajyot
 
Apache Flex - Enterprise ready GUI framework
Tomislav Pokrajcic
 
Java fx
Apsara G
 
Architecting RIAs
Mark Nankman
 
Flex & Drupal Integration
Matthew Connerton
 
Introduction To Rich Internet Applications
Abdelmonaim Remani
 
Ad

More from Craig Dickson (16)

PPTX
Amazon Webservices for Java Developers - UCI Webinar
Craig Dickson
 
PPTX
Dead-Simple Deployment: Headache-Free Java Web Applications in the Cloud
Craig Dickson
 
PPTX
Rapid RESTful Web Applications with Apache Sling and Jackrabbit
Craig Dickson
 
PPTX
Java PaaS Vendor Survey - September 2011
Craig Dickson
 
KEY
JDBC Basics (In 20 Minutes Flat)
Craig Dickson
 
PPT
How to test drive development using Linux
Craig Dickson
 
PPT
Google Wave Introduction
Craig Dickson
 
PPT
Adobe Flex 4 Overview
Craig Dickson
 
PPT
Palm WebOS Overview
Craig Dickson
 
PPT
Java Persistence API (JPA) - A Brief Overview
Craig Dickson
 
PPT
eHarmony in the Cloud
Craig Dickson
 
PPT
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-on
Craig Dickson
 
PPT
Building Social Applications using Zembly
Craig Dickson
 
PPT
Best Practices for Large-Scale Web Sites
Craig Dickson
 
PPT
Cloud Computing Introduction
Craig Dickson
 
PPT
Performance Analysis and Monitoring with Perf4j
Craig Dickson
 
Amazon Webservices for Java Developers - UCI Webinar
Craig Dickson
 
Dead-Simple Deployment: Headache-Free Java Web Applications in the Cloud
Craig Dickson
 
Rapid RESTful Web Applications with Apache Sling and Jackrabbit
Craig Dickson
 
Java PaaS Vendor Survey - September 2011
Craig Dickson
 
JDBC Basics (In 20 Minutes Flat)
Craig Dickson
 
How to test drive development using Linux
Craig Dickson
 
Google Wave Introduction
Craig Dickson
 
Adobe Flex 4 Overview
Craig Dickson
 
Palm WebOS Overview
Craig Dickson
 
Java Persistence API (JPA) - A Brief Overview
Craig Dickson
 
eHarmony in the Cloud
Craig Dickson
 
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-on
Craig Dickson
 
Building Social Applications using Zembly
Craig Dickson
 
Best Practices for Large-Scale Web Sites
Craig Dickson
 
Cloud Computing Introduction
Craig Dickson
 
Performance Analysis and Monitoring with Perf4j
Craig Dickson
 
Ad

Recently uploaded (20)

PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 

JavaFX vs AJAX vs Flex

  • 1. JavaFX vs. Ajax (and vs. Flex) Ben Galbraith (Mozilla) and Don Almaer (Ajaxian, Inc.) TS-5587 JavaOne 2009 Debriefing Session Sean Chung
  • 2. JavaFX Scripting Language A scripting language for interactive graphics, media, and animation. Slide 1 1
  • 3. Slide 2 JavaFX Scripting Language Object-oriented (of course) Expression language Declarative and Procedural Integrates with Java (can import Java classes) Compiles to byte code; runs on JVM Incorporates the concept of time Data binding Mixin classes like Java interfaces 2
  • 4. Slide 3 Ajax vs. JavaFX - on Performance Java is way faster than JavaScript But JavaScript is getting faster (V8 – Google Chrome JavaScript Virtual Machine) Good enough. 3
  • 5. Slide 4 Ajax vs. JavaFX - on Performance cont’d vs. Flex (ActionScript) Comparison done with Takeuchi Benchmark ( JavaWorld article http://www.javaworld.com/community/node/1268 ) “ In summary, for this benchmark, with the hotspot server vm, JavaFX script outperforms statically typed ActionScript by a factor of 12 …” 4
  • 6. Slide 5 Ajax vs. JavaFX - on Responsiveness of UI JavaFX better with worker-threads Using “web workers”, single thread-ness of JavaScript can be overcome but SLOW. 5
  • 7. Slide 6 Ajax vs. JavaFX - on Responsiveness of UI cont’d vs Flex Execution model of ActionScript is single-threaded BUT, underlying Flash Player uses threads, providing UI responsiveness 6
  • 8. Slide 7 Ajax vs. JavaFX – Graphical capability Bubblemark animation test http://bubblemark.com 7
  • 9. Slide 8 Ajax vs. JavaFX – Graphical capability cont’d SURPRISE!!! Static graphics: Chrome 100 fps vs. JavaFX 24 fps. Vector graphics: Chrome 30 fps What the speakers don’t consider is that JavaFX is a very new and to-date under-optimised technology. 8
  • 10. Slide 9 Ajax vs. JavaFX – Graphical capability cont’d vs. Flex JavaScript on Firefox: 75 fps. Flex 2 on Flash Player 10: 190 fps. JavaFX 1.0: 260 fps. 9
  • 11. Slide 10 Ajax vs. JavaFX – 3D graphics Ajaxian 3D Metatunnel http://ajaxian.com/archives/metatunnel-the-future-web-strikes-back Most browsers are offering 3D extensions. NO 3D support for JavaFX 10
  • 12. Slide 11 Ajax vs. JavaFX – 3D graphics cont’d vs. Flex Flex 4 (Gumbo) mx.effects.FxRotate3d Lots of 3D engines / libraries out there Roxik Sharikura http://temp.roxik.com/ Jiglibflash 3D physics engine http://code.google.com/p/jiglibflash/ Etc. etc. 11
  • 13. Slide 12 Ajax vs. JavaFX – Fonts Java is weak on fonts. The speakers claim that we can’t use native fonts in Java. Control over fonts in the Ajax world is even more limited, however. 12
  • 14. Slide 13 Ajax vs. JavaFX – Fonts cont’d vs. Flex l@@k at www.behr.com VERY GOOD font support / control with Flex 13
  • 15. Slide 14 Ajax vs. JavaFX – Video JavaFX provides “amazing” video support. Open Web Video offers sophisticated video functions – browser dependant; trouble with IE 14
  • 16. Slide 15 Ajax vs. JavaFX – Video cont’d vs. Flex Flash plugin surpasses JavaFX in terms of maturity. De facto standard of the video on the web 15
  • 17. Slide 16 Ajax vs. JavaFX – Language Features Binding in JavaFX is compact and elegant. Web toolkits are very clumsy by comparison.  The speakers quickly mention Mixins, Animation and Effects. All of this is way easier in JavaFX 16
  • 18. Slide 17 Ajax vs. JavaFX – Language Features cont’d vs. Flex (ActionScript 3) Binding Animations, Sequences, Triggers More mature than JavaFX 17
  • 19. Slide 18 Ajax vs. JavaFX – Deployment Web wins. Except for the significant browser incompatibilities Java Setup still takes too long. 18
  • 20. Slide 19 Ajax vs. JavaFX – Deployment cont’d vs. Flex No browser compatibility issue, no hassle installation Adobe Flash Player Penetration – March 2009 http://www.adobe.com/products/player_census/flashplayer/version_penetration.html 19 72.0% 99.3% 98.8% Japan 75.3% 98.6% 98.9% Europe 74.5% 98.8% 99.1% US/ Canada Flash 10 Flash 9 Flash 8
  • 21. Slide 20 Comparison done legitimately? How big is the intersection? Ajax – social networking, mashups, portals Flex – multimedia rich apps JavaFX – mobile? Set-top box? 20
  • 22. The End 5 minutes of question time starts now!