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

RE: Is this a Saxon 8.0 bug ?

Subject: RE: Is this a Saxon 8.0 bug ?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 28 Jun 2004 08:32:17 +0100
pop2 popplestone
> Memo functions were invented by Professor Donald Michie of Edinburgh
> University. The idea was further developed by Robin 
> Popplestone in his Pop2
> language long before it was ever worked into LISP.</quote>
> 
> Is this the 'tunnelling effect' that Mike has spoken of previously?
> Whereby params are passed on to called templates without explicit
> specification in the template?
> 

No, tunnel parameters are quite unrelated.

I find it hard to improve on the definition of memo functions that you've
cited. It means that if you write a function to calculate the square root of
two, then if you ever call it again, it doesn't recalculate the result, it
remembers it from last time. Which needs more memory but less compute time.
XSLT 2.0 functions can be memoised because there are no implicit parameters
(e.g. functions can't access the context item) so if you call them twice
with the same arguments, you will always get the same answer - except, as I
mentioned, in the case where the function creates a new node, in which case
calling it twice will give you two nodes rather than one.

Michael Kay


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.