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

RE: current-dateTime()

Subject: RE: current-dateTime()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 19 Apr 2008 08:37:31 +0100
RE:  current-dateTime()
> Using this simple principle of dependency (causual) ordering, 
> one can write code that is guaranteed to be evaluated in a 
> certain sequential manner.

While it's true that causes always precede their effects, I think it's very
hard to take advantage of this fact in a way that is totally resilient to
processor optimizations. For example if $x depends on $y then it's true that
you can't finish evaluating $x until you have finished evaluating $y; but
there is no guarantee that $y will only be evaluated once; the process might
decide that to save memory, it should evaluate $y every time it is
referenced; and there is no guarantee that the processor won't start
evaluating $x before it has finished evaluating $y.

Even with extension functions written in Java, processors have all sorts of
tricks they could play if they wanted, such as analyzing the bytecode of the
extension function to see what use it makes of its arguments, or rewriting
the bytecode to do lazy evaluation of the arguments. In a processor that did
JIT compilation of XSLT to Java bytecode, I think such effects might well
happen.

Michael Kay
http://www.saxonica.com/

Current Thread

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
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.