[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: German lesson
Thank you very much, Dana, for this account of the origins of XQuery. It is well aligned (or the other way around) with a thought which I have cherished for quite a few years already. It is this: XQuery is a stroke of genius. Or no, it cannot be, because it has been designed by a group of people, whereas a work of genius is a single, coherent shape emerging in a single, individual mind (as has been explained by John Steinbeck, in East of Eden). So XQuery would be a stroke of genius, had it been created by an individual. But there is a stunning unity of intuition about it, which may be the result of an extraordinary consonance among a set of bright minds. This consonance has perhaps a lot to do with functional programming and OQL. I think a key to understanding the true significance of XQuery is to look beyond its being a functional language, as well as its being a query language. (And it would be totally misleading to call it a query language, anyway.) A key is to see the blending of a functional view with a preoccupation with *resources* (URIs and what stands behind them). Functional programming is about values. XQuery is about resource contents. And here comes the unique: XQuery treats resource contents as values, as the very substrate of functional programming. So is there any other functional programming language with a value model capturing the concept of a resource as XQuery does (with its node model), rather than continuing to think in terms of maps and arrays and objects into which resource contents must be translated in order to be processed? Daniela Florescu <d6florescu@gmail.com> schrieb am 22:13 Freitag, 7.April 2017: Dear Hans-Juergen, The first functional (aka pure "expression language”) language was Lisp. It was followed by a series of more sophisticated ones like ML (and all its variants like CaML). Now probably the most solid functional language used today is Haskell (e.g. Phil Wadler, who contributed To the design of XQuery, also contributes to Haskell). Haskell also has monoid comprehensions, which in theory, would make it a “query language”. But its monoid Comprehensions are not as sophisticated and powerful as XQuery’s. ===== Now in terms of the history of functional query languages, the first (and only one) before XQuery was OQL - the object oriented query language. OQL was probably the main source of inspiration for XQuery, as me, Jerome Simeon, Michael Rys, etc, we all had our PhDs in query processing for object oriented databases, so we "grew up" with OQL. In top of that people like Phil Wadler, Mary Fernandez, Denise Draper, etc, had their PhDs in functional programming languages…. … so you see, when we designed XQuery, there were so many people in the group who believed "functional is good". And I hope we were right ! :-) ==== P.S. SQL is not and has never been functional. HTH, best regards, Dana
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|