CGI & PHP Enhance your site with CGi, PHP and ASP scripts

  Subscribe via RSS

  Follow @XavierMedia

Google I/O 2008 – javascript and DOM Programming in GWT

March 17th, 2010 by CGI & PHP.com


Surprisingly Rockin' javascript and DOM Programming in GWT Bruce Johnson (Google) You may already know about gwt's nifty javascript Native Interface (JSNI), which allows you to define native Java methods with handwritten javascript. In GWT 1.5, there's an even more powerful way to program close to the metal. You can now model arbitrary javascript types directly as Java classes (specifically, as subclasses of gwt's javascriptobject class), yet there is no overhead in size or speed. You can code against any javascript object as if it were a regular old Java object. So, what does that buy you? * It's never been easier to integrate with external JS libraries; just define a Java class that models the JS object you want to interact with. Nice Java syntax, no overhead. * Freely use low-level native JS data structures (JS arrays, for example) by exposing them with a Java-friendly API. You can even apply Java generics to JS types! * Superimpose strongly-typed Java classes on JSON objects, giving you IDE code completion, refactoring and compile-time type checking. * GWT uses this new ability to provide a complete cross-browser DOM class hierarchy based on the w3c's Java HTML bindings. Programming straight to the DOM has never been more productive. Come learn about this unusual and powerful new capability that you can use to squeeze every drop of performance and interop out of your GWT projects.

Popularity: 9% [?]


Subscribe to new posts from this blog
You may also be interested in...
The Go Programming Language
Perl by Example
Scalable Parallel Programming with CUDA on Manycore GPUs
Advanced Topics In Programming Languages: Closures For Java
Advanced Topics in Programming Languages: Java Puzzlers,…
Performance Tuning Best Practices for MySQL

8 Responses to “Google I/O 2008 – javascript and DOM Programming in GWT”

  1. heheakou Says:

    Share your programming thoughts, ideas, or questions with other programmers! tvlinkshare. com

  2. planetoja Says:

    COOOL,,KEEP IT ON

  3. OkNowImWatching Says:

    You make decompiling shrouded code seem easy.

  4. OkNowImWatching Says:

    Bruce Johnson:"[..] then the compiler shuts up and then everything works"; I love it when that happens!

  5. 0BLAC197758 Says:

    I hate JavaScript! I hate also Adobe flash! I love firefox!

  6. eutana Says:

    anyone out there know how to fix javascript turned off error? Answer in text. Can not view video.

  7. soluckygirl Says:

    Nice, Really Nice!!!

  8. cheshire1994 Says:

    Great video, i'm a big fan of 'Google'

Leave a Reply

Powered by WP Status.net plugin.

CommentLuv Enabled


Fantastic web hosting at cheap prices
© Copyright 1996-2010 Xavier Media®. All rights reserved.
Contact us | Support/help | Privacy Policy | About Xavier Media
The World According to Xavier | Powered by Yahoo! Answers