Re: Lightweight IPC for scripting

Andreas Fuchs <[email protected]> Tue, 9 Sep 2003 15:43:36 +0000 (UTC)
Newsgroups gmane.lisp.clump
Message-ID <[email protected]>
(resend, as I wasn't subscribed to the list when I tried to post through
gmane. Sorry for the inconvenience)

On 2003-09-08, Luke Gorrie <[email protected]> wrote:
> Joe Armstrong also did yet another IPC protocol. I would summarise it
> as "An XML clone that would not offend Lisp programmers". It has a lot
> in common with sexps, though the encoded format doesn't look like one.
> http://www.sics.se/~joe/ubf/site/home.html if you're interested.

Thanks for the pointer. I read that once, thought about how easy it
would be to write a parser for UBF(a) in lisp and then forgot about
it. Did that now, though.

UBF /is/ a very nice format for data exchange (IMHO it's even nicer than
SEXP, for binary data). I hope to write a UBF(A) generator too, soon.

The attached code is a 5-hour hack and my first "serious" parser for
something. if it doesn't adhere to the spec or is buggy or butt-ugly
(pretty likely) or just wrong, please tell me.

Sometime in the next few days, I will put up an arch archive of the
sources. For now, this source file must be enough:


Have fun,
-- 
Andreas Fuchs, <[email protected]>, [email protected], antifuchs

_______________________________________________
Clump mailing list
[email protected]
http://manly.caddr.com/mailman/listinfo/clump
ubf-a.lisp (application/octet-stream, 6.3 KB) - not displayed