- From: Christian Grün <christian.gruen@gmail.com>
- Date: Mon, 29 Feb 2016 16:24:37 +0100
- To: EXPath <public-expath@w3.org>, EXPath <expath@googlegroups.com>, James Wright <balugajames@gmail.com>
Dear all, James Wright has recently presented his XQuery Promise Module in Prague (Proceedings, 139ff [1]). His code is available at GitHub [2], and we were wondering if people in the community were interested in seeing the ideas behind this module standardized? The result could be two specifications: 1. The Promise Module * This module is inspired by the Promise Pattern as it is available in e.g. jQuery and AngularJS. * It includes functions like defer(), then(), fail() and others (see the links for more details) * It seems to be possible to implement 90% or even 100% of the module in pure XQuery. 2. The Async Module * In its initial version, the module contains a single async:fork-join function, which can be used to process a sequence of XQuery functions in parallel [3]. * The module could be enhanced with an extension of the FLWOR expressions and an 'async' keyword in for clauses [4]. * It could further be extended with two functions async:fork and async:join. The first function would trigger the evaluation of a query (supplied as string) as a separate process; the second function could be called to fetch the result of the first function. Thoughts are welcome; thanks in advance, Christian [1] http://archive.xmlprague.cz/2016/files/xmlprague-2016-proceedings.pdf [2] http://github.com/james-jw/xq-promise/ [3] https://github.com/james-jw/xq-promise/issues/16 [4] https://github.com/james-jw/xq-promise/issues/15
Received on Monday, 29 February 2016 15:25:25 UTC