Generative XPath for GWT
Google Web Toolkit (GWT) allows developers to use the Java programming language to build no-compromise AJAX applications. After announcing my project in its discussion group, I got a reasonable question: "Can you explain how this could be used within the GWT client code?"
From my reply:
Unfortunately, I have no answer. My experience with GWT is limited to Scott Blum's presentation. The goal of my posting was to raise interest in my work. Hopefully someone can decide it's cool and port Generative XPath to GWT. A good diploma, by the way.
These seem to be scripts requiring guile (admittedly, I'm no expert; I haven't Common Lisp since grad school over 15 years ago).
In my approach, to execute XPath, one needs
1) Compile an XPath expression to a Virtual Machine code using some command-line scripts,
2) From an application, interpret/run the VM code.
The most cool way for (2) is to convert the VM code to the AST tree, used internally by GWT compiler. In this case you get XPath, compiled to JavaScript, without additional levels of interpretation. But it's something for very very far future.
The practical way for (2) is to use SICP as the interpreter of the VM code:
http://sourceforge.net/projects/sisc/
But again, I can't suggest the details.
I'm currently using jaxen4gwt and would love to find something else. I need to process a lot of XML. jaxen4gwt is very big
If the cool way were implemented, you'd get very little overhead. But that's only dreams, unfortunately.
and has at least one untrapped exception that I have to code around.