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

Re: Feasibility of "do all application coding in the XMLlangua

  • From: Oliver Hallam <oliver@x...>
  • To: xml-dev@l...
  • Date: Mon, 01 Dec 2008 18:27:49 +0000

Re:  Feasibility of "do all application coding in the XMLlangua

> Game programming and GUI programming are a different question because your
> choice of language is heavily dictated by the data you are working with. XML
> languages are good at manipulating XML, they are not so good at manipulating
> images. 
>   
It is not impossible to do some heavy image processing in XQuery/XSLT as 
is evidenced by our XQuery raytracer at 
http://www.xqsharp.com/xqsharp/samples/raytracer/index.htm . Admittedly 
XQuery is not the best choice of language for this task, but the 
implementation is suprisingly readable.

A lot of the pain comes from the attempting to interface with non-XML 
endpoints.  If the endpoints of your application are XML then this pain 
is removed.  XQuery/XSLT is a very good option for producing graphs in 
SVG format for example.

In order to make the ray-tracer more efficient (and less of a toy), it 
would be required to use data structures like octrees.  Currently can 
only be done (in pure XQuery) by generating XML on the fly which (with 
today's processors) is not going to be anywhere near as efficient as 
data structures written in other (functional or imperative) languages.  
Since this sort of processing is not the target domain of XQuery it is 
not going to be a high priority for implementors.  The declarative 
nature of XQuery / XSLT means that an XQuery describes what information 
is required, not how to calculate it, but it leaves performance very 
much in the hands of the optimizer.

XQuery/XSLT are easily capable of performing most of the tasks required 
by today's data-driven web applications, and the declarative nature of 
the language means that you mostly only need to spend time describing 
what data you want, not how it should be computed.

Oliver Hallam
http://www.xqsharp.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.