Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Ted Leung on the air: Open Source, Java, Python, and ...
Fri, 03 Oct 2003
Too much complexity
[via Lambda the Ultimate]
I'm an admirer of Erik Meijer's work on unifying tables, objects, and documents so his recommendation of Dave Thomas'
article got my attention. Unfortunately, Thomas is just restating the problem, not offering a solution.
One thing that is important is that he is talking about "a computationally complete end user programming language". I think they key in that phrase is complete. Quite frequently language designers focus on minimality (my own bias towards Lisp and towers of macros is in this vein). Two of the three paradigms in Thomas' (and Meijer's) article are relational database and XML, which aren't really treated as basic types in most language designs. This usually means that they get pushed out to libraries.
Languages need a way to assimilate these paradigms in a way that makes them look seamless. XDuce is cited in Thomas' paper. If you look at the XDuce examples, you'll see that the syntax for dealing with XML looks like the syntax for dicts in Python. This is certainly more straightforward than most languages that I've seen, although not quite as nice as E4X. There are lots of examples of Python libraries for XML that look like XDuce, but none that look like E4X. If you wanted to support E4X style syntax for XML, and an analogous syntax for SQL queries and tables, you'd have to hack Python.
What to do?
[00:38] |
[computers/programming] |
# |
TB |
F |
G |
1 Comments |
Ted, have you looked at SSAX for Scheme? It's essentially a translation from XML to S-Expressions. They've implemented XSLT style transforms, XPath querying, etc. I don't think it would be terribly difficult for a Lisp expert to translate SSAX into Common Lisp.
Posted by Gordon Weakliem at Fri Oct 3 11:51:22 2003
Posted by Gordon Weakliem at Fri Oct 3 11:51:22 2003
You can subscribe to an RSS feed of the comments for this blog:
Add a comment here:
You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
<a href>
, <em>
, <i>
, <b>
, <blockquote>
, <br/>
, <p>
, <code>
, <pre>
, <cite>
, <sub>
and <sup>
.You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk