Loading

try {
  http:get("/blog/60027695561/zorba-22-aka-coeus")
} catch http:not-found {
  <p>
    404 NOT FOUND.
    Take me home 
  </p>
}
~
~
-- INSERT -- All 6, 17

Zorba 2.2, aka Coeus

Posted 1 year ago

We are very excited to announce the release of Zorba 2.2, codename Coeus. It is available in our download section.

So what’s new?

New features

First, we are introducing a new module for decoding URIs. Then we worked on several improvements to enable the processing of XML, JSON, and text in streaming manner. The new parse-xml-fragment() function has been reworked to parse and process huge chunks of XML data as streams. The JSON module has been dramatically improved and is now able to parse and serialize streams of JSON documents. We are introducing a new split() function to tokenize streamable strings. Finally, file:read-text() and http:send-request() are now supporting arbitrary text encodings.

The ItemFactory from the Zorba C++ API has been extended with methods: createDayTimeDurationcreateYearMonthDuration,createDocumentNodecreateCommentNode, and createPiNode(). Also the StaticContext contains two new methods: getFunctions()and getNamespaceBindings.

The new PHP interface that we introduced in December is now shipped by default with Zorba and contains several improvements.

Last but not least, you can forget about fn:concat() and use the XQuery 3.0 string concatenation expressions.

"Hello " || "Zorba " || "2.2"

Optimizations

Results of deterministic functions with atomic parameters and return types are cached by the runtime. This behavior can be controlled with the %ann:cache and %ann:no-cache annotations.

Input nodes in nodes constructors are not copied systematically anymore. This behavior can be controlled with the %ann:propagates-input-nodes and %ann:must-copy-input-nodes annotations.

Several performance improvements have been implemented: type operators, base64Binary processing, and other XQuery expressions.

Bug Reports

We pinned down more than thirty bug reports. You can find a comprehensive list of these bugs in our ChangeLog.

That’s All Folks!

Please checkout the 2.2 ChangeLog for the complete list of changes in this new version of Zorba.

During the upcoming weeks, we will go over some of these new features in more details and showcase how they can be leveraged in your applications.

We are actively working on our next milestone, Zorba 2.5 “Dionysus”. Please keep us posted with bugs reports and feedback. We strongly appreciate those.

We hope you enjoy Zorba 2.2 and stay tuned for more.

In the meantime, may the FLWOR be with you!