GWT Demystified

June 7th, 2007 - Written by in Using GWT

Ray Cromwell has started a series of articles explaining some of the more technical, and less publicized aspects of GWT. He currently has two articles up, the first article explains several aspects of the GWT compiler and the second talks about GWT Generators.

GWT Demystified

The GWT Compiler is a real compiler. Not a simple translator that walks an abstract syntax tree turning Java expressions and statements into the nearest Javascript equivalents. In fact, the GWT Compiler performs optimizations that are very hard to do statically on raw Javascript, and hard to do even in regular Java.

GWT Demystified: Generators, Part 1

Finally, truly the coolest and most innovative application of generators to date is the ImageBundle. In the world of 3D graphics programming, there is a technique called Texture Atlas, wherein you combine many textures into a single large texture, because on many graphics accelerators, changing pipeline state, such as binding a new texture before drawing geometry, is an expensive operation or may stall the pipeline. A program using texture atlases instead, binds one or more mondo-big textures, and simply uses texture coordinate manipulations to render portions of them as needed.

No Comments Stumble it!

Comments »

No comments yet.