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 ...
Wed, 13 Oct 2004
Domain specific languages
[06:45] |
[computers/programming/lisp] |
# |
TB |
F |
G |
4 Comments |
Jon Udell has been chronicling his adventures now that there's a Rhino based implementation available.
Meanwhile [ via Lambda the Ultimate, via Chris Double ] Micheal Walter showed how to create an very E4X like XML embedding for Lisp using (character) macros. Why invent a whole new language for a new problem domain?
Funny. Hey, how about a preview button? I never know what markup (and character entities) will work if I can't peak first.
I already found Julie's blog, and I met you last week, but it wasn't until Jon Udell linked to you that I woke up and subscribed to yours. OK, OK, I guess I need to learn about E4X. Darn. More programming language stuff. I used to do that in my sleep and now I feel spread thinly too far. Thanks for the comments on LtU also. Oh, and another book to look into. Well, all right. Nice to see you here.
Posted by orcmid at Wed Oct 13 10:17:11 2004
I already found Julie's blog, and I met you last week, but it wasn't until Jon Udell linked to you that I woke up and subscribed to yours. OK, OK, I guess I need to learn about E4X. Darn. More programming language stuff. I used to do that in my sleep and now I feel spread thinly too far. Thanks for the comments on LtU also. Oh, and another book to look into. Well, all right. Nice to see you here.
Posted by orcmid at Wed Oct 13 10:17:11 2004
It is time for XML to be a native type in computer languages. It wasn't too long ago when people thought strings shouldn't be a native type, but thankfully that's no longer the case.
Perhaps in python we can have XML quoting, like how we had regex quoting. For example:
domFragment = xml"<book>The Age of Wisdom</book>"
Posted by Chui at Sat Oct 16 18:02:58 2004
Perhaps in python we can have XML quoting, like how we had regex quoting. For example:
domFragment = xml"<book>The Age of Wisdom</book>"
Posted by Chui at Sat Oct 16 18:02:58 2004
Chui,
The point of my post is that given a lanaguage with mechanisms for syntactic extension, making a new native type is no big deal, where in other languages you end up having to hack the parser, and possibly the rest of the compiler.
Posted by Ted Leung at Sat Oct 16 23:26:11 2004
The point of my post is that given a lanaguage with mechanisms for syntactic extension, making a new native type is no big deal, where in other languages you end up having to hack the parser, and possibly the rest of the compiler.
Posted by Ted Leung at Sat Oct 16 23:26:11 2004
The approach taken by sxml and friends (http://okmij.org/ftp/Scheme/xml.html) strikes me as much cleaner and easier to work with. It's for scheme not CL, sadly.
My only problem (other than that it isn't CL) with it is that it takes some work to track down a sxml->xml converter. I guess the authors are seasoned schemers who reckon it's trivial. Perhaps they're right.
Posted by Hamish Harvey at Thu Nov 4 01:08:14 2004
My only problem (other than that it isn't CL) with it is that it takes some work to track down a sxml->xml converter. I guess the authors are seasoned schemers who reckon it's trivial. Perhaps they're right.
Posted by Hamish Harvey at Thu Nov 4 01:08:14 2004
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