| 1 |
abate |
253 |
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
|
| 2 |
abate |
341 |
<page name="index">
|
| 3 |
abate |
253 |
|
| 4 |
abate |
350 |
<title>Home page</title>
|
| 5 |
abate |
253 |
<banner>
|
| 6 |
|
|
<img title="CDuce" src="img/cduce_logo.jpg" width="400" height="206"
|
| 7 |
|
|
alt="CDuce"/>
|
| 8 |
|
|
</banner>
|
| 9 |
|
|
|
| 10 |
abate |
341 |
<left>
|
| 11 |
|
|
<p>On this page:</p>
|
| 12 |
|
|
<boxes-toc/>
|
| 13 |
|
|
<p>Under this page:</p>
|
| 14 |
|
|
<pages-toc/>
|
| 15 |
|
|
</left>
|
| 16 |
abate |
253 |
|
| 17 |
abate |
341 |
<external href="/cgi-bin/cduce" title="Online demo" name="proto"/>
|
| 18 |
abate |
437 |
<include file="download.xml"/>
|
| 19 |
abate |
341 |
<include file="bench.xml"/>
|
| 20 |
|
|
<include file="papers.xml"/>
|
| 21 |
|
|
<include file="examples.xml"/>
|
| 22 |
|
|
<include file="team.xml"/>
|
| 23 |
abate |
381 |
<include file="manual.xml"/>
|
| 24 |
abate |
598 |
<include file="mailing.xml"/>
|
| 25 |
abate |
341 |
<include file="sitemap.xml"/>
|
| 26 |
abate |
253 |
|
| 27 |
abate |
576 |
|
| 28 |
abate |
341 |
<left>
|
| 29 |
abate |
255 |
|
| 30 |
abate |
253 |
<p> CDuce ("seduce") is a new typed functional language with
|
| 31 |
abate |
258 |
innovative features.</p>
|
| 32 |
abate |
253 |
|
| 33 |
|
|
<p> Although CDuce is a general programming language, it features
|
| 34 |
|
|
several characteristics that make it adapted to XML documents
|
| 35 |
|
|
manipulation (transformation, extraction of information, creation of
|
| 36 |
|
|
documents).
|
| 37 |
|
|
<a href="http://www.w3.org/XML/">XML</a> is a syntax to
|
| 38 |
|
|
describe tree-like documents (aka semi-structured data), and XML
|
| 39 |
|
|
documents often come with a description of their type. The type is
|
| 40 |
|
|
expressed in a system like DTD, or
|
| 41 |
abate |
258 |
<a href="http://www.w3.org/XML/Schema">XML Schema</a>.
|
| 42 |
|
|
XML types play a central role in CDuce.
|
| 43 |
|
|
</p>
|
| 44 |
abate |
253 |
|
| 45 |
abate |
341 |
</left>
|
| 46 |
abate |
253 |
|
| 47 |
abate |
341 |
<left>
|
| 48 |
abate |
305 |
<p> All pages of this site were automatically generated from an XML description of
|
| 49 |
abate |
347 |
the content by <a href="examples.html#site">the following CDuce program</a>.
|
| 50 |
abate |
267 |
</p><p>
|
| 51 |
abate |
253 |
<img src="img/cducepower2.jpg" alt="Powered by CDuce"/></p>
|
| 52 |
abate |
341 |
</left>
|
| 53 |
abate |
253 |
|
| 54 |
|
|
|
| 55 |
abate |
258 |
<box title="What is CDuce ?" link="whatis">
|
| 56 |
abate |
253 |
|
| 57 |
abate |
258 |
<p> <b>CDuce</b> is modern programming language, adapted to the
|
| 58 |
|
|
manipulation of XML documents. It is developped by the <a
|
| 59 |
|
|
href="http://www.di.ens.fr/~castagna/EQUIPE"><b>Languages</b></a>
|
| 60 |
|
|
group of ENS in Paris and the <a
|
| 61 |
|
|
href="http://www.lri.fr/bd"><b>Databases</b></a> group of LRI in
|
| 62 |
|
|
Orsay, two <a href="http://www.cnrs.fr">CNRS</a> labs.
|
| 63 |
abate |
347 |
See also the <local href="team">CDuce team</local> page,
|
| 64 |
|
|
our <local href="papers">technical papers</local>.
|
| 65 |
abate |
258 |
</p>
|
| 66 |
|
|
|
| 67 |
abate |
591 |
<section title="Getting more information">
|
| 68 |
|
|
|
| 69 |
|
|
<p>
|
| 70 |
abate |
598 |
If you want more information about CDuce you can send a mail to
|
| 71 |
|
|
<tt>info_at_cduce.org</tt> (replace <tt>_at_</tt> with <tt>@</tt>), or
|
| 72 |
|
|
to the most appropriate <a href="mailing.html">CDuce mailing list</a>.
|
| 73 |
abate |
591 |
</p>
|
| 74 |
|
|
|
| 75 |
|
|
</section>
|
| 76 |
|
|
|
| 77 |
abate |
253 |
<section title="Online running prototype">
|
| 78 |
abate |
437 |
<p> To get a feeling of CDuce,
|
| 79 |
|
|
you can play with the <local href="proto">online prototype</local>,
|
| 80 |
|
|
try the examples and modify them. We also have some
|
| 81 |
|
|
<local href="examples">larger examples</local>. </p>
|
| 82 |
abate |
253 |
|
| 83 |
abate |
562 |
<p>We are planning to distribute a stable release in the next
|
| 84 |
|
|
few weeks. To help us prepare this release, you can download a
|
| 85 |
|
|
<local href="download">beta version</local>, and send your comments.
|
| 86 |
abate |
437 |
</p>
|
| 87 |
|
|
|
| 88 |
abate |
258 |
</section>
|
| 89 |
abate |
253 |
</box>
|
| 90 |
|
|
|
| 91 |
abate |
341 |
<box title="Design and features" link="design">
|
| 92 |
abate |
258 |
<p> Our point of view and our guideline for the design of CDuce is
|
| 93 |
|
|
that a programming language for XML should take XML types (
|
| 94 |
abate |
545 |
DTD, XML Schema, Relax-NG, ...) seriously. The benefit are the following:</p>
|
| 95 |
abate |
253 |
|
| 96 |
abate |
258 |
<ul>
|
| 97 |
|
|
<li> <b>static verifications</b>
|
| 98 |
|
|
(e.g.: ensure that a transformation produces a valid document);</li>
|
| 99 |
|
|
<li> in particular, we aim at <b>smooth and safe</b> compositions
|
| 100 |
|
|
of XML transformations, and incremental programming;</li>
|
| 101 |
|
|
<li> static <b>optimizations</b> and <b>efficient execution model</b>
|
| 102 |
|
|
(knowing the type of a document is crucial to extract information
|
| 103 |
|
|
efficiently).</li>
|
| 104 |
abate |
253 |
</ul>
|
| 105 |
|
|
|
| 106 |
abate |
258 |
<p>
|
| 107 |
|
|
Some of CDuce peculiar features:
|
| 108 |
|
|
</p>
|
| 109 |
abate |
253 |
<ul>
|
| 110 |
abate |
258 |
<li> XML objects can be manipulated as first-class citizen values:
|
| 111 |
|
|
elements, sequences, tags, characters and strings, attribute
|
| 112 |
|
|
sets; sequences of XML elements can be specified by
|
| 113 |
|
|
<b>regular expressions</b>, which also apply to
|
| 114 |
|
|
characters strings; </li>
|
| 115 |
|
|
<li> functions themselves are <b>first-class</b> values, they
|
| 116 |
|
|
can be manipulated, stored in data structure, returned by
|
| 117 |
|
|
a function,...</li>
|
| 118 |
|
|
<li> a powerful <b>pattern matching</b> operation can perform
|
| 119 |
|
|
complex extractions from sequences of XML elements; </li>
|
| 120 |
|
|
<li> a rich <b>type algebra</b>, with recursive types and arbitrary
|
| 121 |
|
|
boolean combinations (union, intersection, complement) allows
|
| 122 |
|
|
precise definitions of data structures and XML types;
|
| 123 |
|
|
<b>general purpose types</b> and types constructors are taken seriously
|
| 124 |
|
|
(products, extensible records, arbitrary precision integers with interval
|
| 125 |
|
|
constraints, Unicode characters);</li>
|
| 126 |
|
|
<li> <b>polymorphism</b> through a natural notion of <b>subtyping</b>,
|
| 127 |
|
|
and <b>overloaded functions</b> with dynamic dispatch; </li>
|
| 128 |
|
|
<li> an highly-effective <b>type-driven compilation schema</b>. </li>
|
| 129 |
|
|
</ul>
|
| 130 |
abate |
253 |
|
| 131 |
abate |
565 |
<p>CDuce is fast, functional,
|
| 132 |
|
|
type-safe, and <b>conforms to basic standards</b>: <a href="http://www.unicode.org">Unicode</a>, <a href="http://www.w3.org/XML/">XML</a>, <a href="http://www.w3.org/TR/REC-xml#dt-doctype">DTD</a>,
|
| 133 |
|
|
<a href="http://www.w3.org/TR/REC-xml-names/">Namespaces</a> are fully supported, partial support of <a href="http://www.w3.org/TR/xmlschema-1/">XML Schema</a> validation is
|
| 134 |
|
|
in alpha testing (and undocumented) while queries are being
|
| 135 |
|
|
implemented.
|
| 136 |
|
|
</p>
|
| 137 |
|
|
|
| 138 |
abate |
258 |
<p>
|
| 139 |
abate |
347 |
<local href="bench">Preliminary benchmarks</local> suggest that despite the
|
| 140 |
abate |
300 |
overhead for static type verification, a CDuce
|
| 141 |
abate |
258 |
program can run faster (30% to 60%) than an equivalent XSLT
|
| 142 |
|
|
style-sheet (we performed benchmarks with
|
| 143 |
|
|
the xsltproc tools from the Gnome libxslt library).
|
| 144 |
|
|
</p>
|
| 145 |
|
|
</box>
|
| 146 |
abate |
253 |
|
| 147 |
abate |
258 |
<box title="Research directions" link="research">
|
| 148 |
abate |
253 |
|
| 149 |
abate |
258 |
<p>Our plans concerning the design of the core language
|
| 150 |
|
|
include:</p>
|
| 151 |
|
|
<ul>
|
| 152 |
|
|
<li>a module system to support incremental programming;</li>
|
| 153 |
|
|
<li>parametric polymorphism;</li>
|
| 154 |
|
|
<li>XML-friendly primitives, to mimic XSLT transformations.</li>
|
| 155 |
abate |
253 |
</ul>
|
| 156 |
|
|
|
| 157 |
abate |
258 |
<p>
|
| 158 |
|
|
Apart from the core language design and implementation,
|
| 159 |
|
|
our research projects include:
|
| 160 |
|
|
</p>
|
| 161 |
abate |
253 |
<ul>
|
| 162 |
abate |
258 |
<li> integration of a <b>query sub-language</b> into CDuce, using
|
| 163 |
|
|
types as a primary optimization strategy for request evaluation;</li>
|
| 164 |
|
|
<li> study of <b>security</b> (confidentiality, ...) properties in the
|
| 165 |
|
|
setting of XML transformations.</li>
|
| 166 |
abate |
253 |
</ul>
|
| 167 |
|
|
|
| 168 |
abate |
258 |
<p>
|
| 169 |
abate |
347 |
We wrote several <local href="papers">technical papers</local> about
|
| 170 |
abate |
258 |
the language design and its theoretical foundations.
|
| 171 |
|
|
</p>
|
| 172 |
abate |
253 |
</box>
|
| 173 |
|
|
|
| 174 |
abate |
258 |
<box title="XDuce and CDuce" link="xduce">
|
| 175 |
|
|
<p>
|
| 176 |
abate |
253 |
|
| 177 |
abate |
258 |
The starting point of our work on CDuce was the
|
| 178 |
|
|
<a href="http://xduce.sourceforge.net/">XDuce</a> language developped
|
| 179 |
|
|
at the UPenn DB group. Many of CDuce features originate from XDuce.
|
| 180 |
|
|
Some of our achievements:
|
| 181 |
abate |
253 |
|
| 182 |
abate |
258 |
</p>
|
| 183 |
|
|
<ul>
|
| 184 |
|
|
<li>integration of first-class and overloaded functions, arbitrary boolean
|
| 185 |
|
|
connectives, and extensible (or not) records, to the semantic
|
| 186 |
|
|
definition of subtyping;</li>
|
| 187 |
|
|
<li>a subtyping algorithm without backtracking;</li>
|
| 188 |
|
|
<li>extending pattern matching to capture non consecutive
|
| 189 |
|
|
subsequences; removing tail condition for exact matching
|
| 190 |
|
|
(they arrived independently to another solution);</li>
|
| 191 |
|
|
<li>efficient evaluation model that takes profit of static type information;</li>
|
| 192 |
abate |
253 |
</ul>
|
| 193 |
abate |
258 |
<p>
|
| 194 |
|
|
Of course, the work on XDuce continued during our, and they
|
| 195 |
|
|
developped nice ideas: mixed attribute-element types (same
|
| 196 |
|
|
expressive power as our records, but they can sometimes avoid exponential
|
| 197 |
|
|
explosion where we cannot); powerful filter operation.
|
| 198 |
|
|
</p>
|
| 199 |
abate |
253 |
</box>
|
| 200 |
|
|
|
| 201 |
|
|
<box title="Related links" link="links">
|
| 202 |
|
|
<ul>
|
| 203 |
abate |
352 |
<li> <link url="http://www.w3.org/XML/"
|
| 204 |
|
|
title="Extensible Markup Language (XML)"> The W3C page on XML. </link>
|
| 205 |
|
|
</li>
|
| 206 |
abate |
253 |
<li> <link url="http://www.research.avayalabs.com/user/wadler/xml/"
|
| 207 |
|
|
title="XML: Some hyperlinks minus the hype"> By Philip Wadler. </link>
|
| 208 |
abate |
352 |
</li>
|
| 209 |
|
|
<li> <link url="http://xduce.sourceforge.net/"
|
| 210 |
|
|
title="XDuce"> XDuce home page. </link> </li>
|
| 211 |
|
|
</ul> </box>
|
| 212 |
abate |
253 |
|
| 213 |
|
|
|
| 214 |
|
|
<meta>
|
| 215 |
|
|
<p>
|
| 216 |
|
|
<a href="comeon.htm">
|
| 217 |
|
|
<img style="border:0;width:88px;height:31px"
|
| 218 |
|
|
src="img/cducepower3.png"
|
| 219 |
|
|
alt="Powered by CDuce"/>
|
| 220 |
|
|
</a>
|
| 221 |
|
|
|
| 222 |
abate |
257 |
<a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.cduce.org">
|
| 223 |
abate |
253 |
<img style="border:0;width:88px;height:31px"
|
| 224 |
|
|
src="http://www.w3.org/Icons/valid-xhtml10"
|
| 225 |
|
|
alt="Valid XHTML 1.0!"/>
|
| 226 |
|
|
</a>
|
| 227 |
|
|
|
| 228 |
abate |
401 |
<a href="http://jigsaw.w3.org/css-validator/">
|
| 229 |
abate |
253 |
<img style="border:0;width:88px;height:31px"
|
| 230 |
|
|
src="http://jigsaw.w3.org/css-validator/images/vcss"
|
| 231 |
|
|
alt="Valid CSS!"/>
|
| 232 |
|
|
</a>
|
| 233 |
|
|
|
| 234 |
|
|
<a href="http://www.ens.fr">
|
| 235 |
|
|
<img style="border:0"
|
| 236 |
|
|
src="img//symbENSmio.gif"
|
| 237 |
|
|
alt="ENS" title="ENS"/>
|
| 238 |
|
|
</a>
|
| 239 |
|
|
|
| 240 |
|
|
<a href="http://www.u-psud.fr">
|
| 241 |
|
|
<img style="border:0"
|
| 242 |
|
|
src="img//symbP11mio.gif"
|
| 243 |
|
|
alt="Paris 11" title="Paris 11"/>
|
| 244 |
|
|
</a>
|
| 245 |
|
|
|
| 246 |
|
|
<a href="http://www.cnrs.fr">
|
| 247 |
|
|
<img style="border:0"
|
| 248 |
|
|
src="img//symbCNRSmio.gif"
|
| 249 |
|
|
alt="CNRS" title="CNRS"/>
|
| 250 |
|
|
</a>
|
| 251 |
|
|
</p>
|
| 252 |
|
|
<p>
|
| 253 |
abate |
255 |
<a href="mailto:Alain.Frisch@ens.fr">Webmaster</a> -
|
| 254 |
abate |
347 |
<local href="sitemap">Site map</local>
|
| 255 |
abate |
253 |
</p>
|
| 256 |
|
|
</meta>
|
| 257 |
|
|
|
| 258 |
|
|
</page>
|