Welcome!

Artificial Intelligence Authors: Zakia Bouachraoui, Liz McMillan, Yeshim Deniz, Elizabeth White, William Schmarzo

RSS Feed Item

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

Kurt,

In my Flower project (temporarily off-line but it'll be back)
I explored a "third way" relative to what you are talking 
about.


XQuery and XSLT should remain purely functional (aka
declarative).

Non-standard "extension functions" should be avoided
almost always, for at the very least the break portability.
Commonly, extension functions are poorly designed in that
they sneak in non-declarative, sequencing semantics.

Pipelines (e.g. XProc) aren't flexible enough regarding
side effects and flow of control.   For example,
in most pipeline systems, you can't do recursion.

Instead, I invented a kind of "I/O monad" for running
XQuery and XSLT scripts in a kind of continuation passing
style.   A computation (say, in XQuery) returns a 
list of side-effecting operations to perform plus a 
continuation.  The continuation is itself a second
XQuery script.   The monad performs the side-effecting
operations, packages up the results as XML Datums,
and invokes the continuation.   Repeat in a loop
until eventually a "null" continuation is returned.

If you want to add, say, an FFT function -- don't 
bind it into XQuery as an extension function (thereby
dragging in hundreds of thousands of lines of code
including a complete graph-tracing GC where less than
10K lines of code are needed).  Rather, package the
FFT in a web service API:  the I/O Monad calls out to
it and then resumes XQuerying.   The FFT engine
can be same-process or could be remote -- only performance
will differ.

It's then desirable to create syntactic abstraction 
mechanisms over XQuery....

-t



On Wed, 2008-12-03 at 11:08 -0800, Kurt Cagle wrote:
> 
>         > yea, but a lot of people are using it like PHP rather than a
>         replacement for
>         > SQL on XML. It is the way XML DB vendors recommend you make
>         webapps.
>         > Writers/editors (at least the ones I have been reading) seem
>         to think this
>         > is the way to go. It seems like a step backwards.
>         
> 
> Not sure I'd completely agree with that (of course I'm one of the
> writer/editors that's been advocating this approach). If XQuery
> +extensions was purely declarative, then the filter approach works
> fine, but in point of fact one of the most significant changes taking
> place in the XQuery space is the introduction of database modifying
> code. Once that happens, then realistically you do have to think about
> XQuery as being at a minimum part of a processing pipeline and quite
> possibly the only part of that pipeline This changes the dynamic for
> XQuery pretty dramatically, and moreover it does so by reducing the
> processing of a servlet into a complete XML environment.
> 
> However, the key here is again to keep the XQuery as simple (and
> standardized) as possible - There's an interesting recurrent Filter ->
> Sort -> Partition (Page) -> Style pattern that seems to show up over
> and over again in the XQuery I work with, for instance, and XQuery
> works remarkably well when you deliberately keep your systems as
> RESTful as possible.
> 
> Is that the only use for XQuery? No, of course not, but from a web
> development standpoint it is a primary pattern. Like everything else,
> it works best when you avoid inlining XQuery and XML markup (one
> reason that PHP, or most server-side code constructs, can be such a
> pain), but that's a lesson that only seems learned by experience.
>  
> 
> 

Read the original blog entry...

IoT & Smart Cities Stories
While the focus and objectives of IoT initiatives are many and diverse, they all share a few common attributes, and one of those is the network. Commonly, that network includes the Internet, over which there isn't any real control for performance and availability. Or is there? The current state of the art for Big Data analytics, as applied to network telemetry, offers new opportunities for improving and assuring operational integrity. In his session at @ThingsExpo, Jim Frey, Vice President of S...
@CloudEXPO and @ExpoDX, two of the most influential technology events in the world, have hosted hundreds of sponsors and exhibitors since our launch 10 years ago. @CloudEXPO and @ExpoDX New York and Silicon Valley provide a full year of face-to-face marketing opportunities for your company. Each sponsorship and exhibit package comes with pre and post-show marketing programs. By sponsoring and exhibiting in New York and Silicon Valley, you reach a full complement of decision makers and buyers in ...
Two weeks ago (November 3-5), I attended the Cloud Expo Silicon Valley as a speaker, where I presented on the security and privacy due diligence requirements for cloud solutions. Cloud security is a topical issue for every CIO, CISO, and technology buyer. Decision-makers are always looking for insights on how to mitigate the security risks of implementing and using cloud solutions. Based on the presentation topics covered at the conference, as well as the general discussions heard between sessio...
In his keynote at 18th Cloud Expo, Andrew Keys, Co-Founder of ConsenSys Enterprise, provided an overview of the evolution of the Internet and the Database and the future of their combination – the Blockchain. Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settl...
The Internet of Things is clearly many things: data collection and analytics, wearables, Smart Grids and Smart Cities, the Industrial Internet, and more. Cool platforms like Arduino, Raspberry Pi, Intel's Galileo and Edison, and a diverse world of sensors are making the IoT a great toy box for developers in all these areas. In this Power Panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists discussed what things are the most important, which will have the most profound e...
The Jevons Paradox suggests that when technological advances increase efficiency of a resource, it results in an overall increase in consumption. Writing on the increased use of coal as a result of technological improvements, 19th-century economist William Stanley Jevons found that these improvements led to the development of new ways to utilize coal. In his session at 19th Cloud Expo, Mark Thiele, Chief Strategy Officer for Apcera, compared the Jevons Paradox to modern-day enterprise IT, examin...
Rodrigo Coutinho is part of OutSystems' founders' team and currently the Head of Product Design. He provides a cross-functional role where he supports Product Management in defining the positioning and direction of the Agile Platform, while at the same time promoting model-based development and new techniques to deliver applications in the cloud.
There are many examples of disruption in consumer space – Uber disrupting the cab industry, Airbnb disrupting the hospitality industry and so on; but have you wondered who is disrupting support and operations? AISERA helps make businesses and customers successful by offering consumer-like user experience for support and operations. We have built the world’s first AI-driven IT / HR / Cloud / Customer Support and Operations solution.
LogRocket helps product teams develop better experiences for users by recording videos of user sessions with logs and network data. It identifies UX problems and reveals the root cause of every bug. LogRocket presents impactful errors on a website, and how to reproduce it. With LogRocket, users can replay problems.
Rafay enables developers to automate the distribution, operations, cross-region scaling and lifecycle management of containerized microservices across public and private clouds, and service provider networks. Rafay's platform is built around foundational elements that together deliver an optimal abstraction layer across disparate infrastructure, making it easy for developers to scale and operate applications across any number of locations or regions. Consumed as a service, Rafay's platform elimi...