[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Early Draft Review: XQuery for Java (JSR 225)


analysis of early parser
> >>>>> This effectively kills all possibilities of static (compile-time)
> >>>>> verification of queries, like syntax checking (let alone types).

XQJ provides a prepared query model with prepared expressions (static analysis
and execution-time binding).

> > The bottom line, as you said, is that there are many benefits in late
binding.

It's particularly beneficial if you need to write source code to operate against
disparate data sources, instead of having to pre-process and re-compile each
time.

> >> With algebraic types, it would be possible to build up an abstract syntax
tree, which would be passed to the driver before shipping to
> >> the database.

One common solution for debugging is using a visual, interactive query tool -- 
type in a query, execute it, run the same query with your program, and compare
results.  How many visual XQuery tools have been published that accept XQueryX
or abstract syntax trees as input?

> facts:
> - parsing a query string yields an abstract syntax tree (AST).
> - if out of laziness, one does not want to agree what would be the best
> AST for XQuery, one can take XqueryX

Every XQJ application will have to include a parser if it has to pass an AST
instead of a query string. Why put the burden of parsing queries on every XQJ
developer instead of the developers who specialize in writing XQuery drivers and
engines?

What about the burden on developers creating performance monitors, test suites,
SSL auditing tools, and so on? Instead of working with easily-recognized query
strings, they'll have to deal with queries expressed as syntax trees. Isn't
readability at the core of why XML is widely-adopted?



======== Ken North ===========
www.WebServicesSummit.com
www.SQLSummit.com
www.GridSummit.com



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.