On 5/22/07, Charles Forsyth <[EMAIL PROTECTED]> wrote:
> However, we're still experimenting with this and I think that just
> placing a "toc" file
i think just using s-expressions would do the trick, and be much easier to read.
To be completely honest, a bit of the history of xar was a joking
conversation by some friends of mine who happened to work at apple at
the time.
"Everything's better with XML, even tar". "XAR!" which is kind of fun
to yell came out of it.
Sadly I've found it useful after all of that was said and done. It's
really not too bad with the abominations that are extended attributes
(let's treat files as directories shall we? And hide all the data in
key value pairs... ), Finder Info on mac os x, resource forks, etc.
It's been working Ok on FreeBSD, Linux and Mac OS X, each with their
slightly different APIs for dealing with those little nuggets of joy.
And it's been re-written a few times. (because DOM is a horrible
waste of resources if you don't need it, SAX-like processing of the
XML posed an interesting challenge) I did compression on the XML TOC
myself to add more to the joke.
I mean when you have a table of contents in XML that's > 800 MB, you
gotta do something :-)
Anyway, it was originally just fun to work on, and probably serves
more as proof of how much XML sucks. However Apple's adopting it in
Leopard, probably due to the use of XML. Had we used S-expressions, I
don't think they'd have known what to do with it.
One of the leaders of the RPM project actually did something at some
point to try to use xar instead of cpio archives for a new RPM
back-end. I'm not sure it got anywhere. There was also a packaging
system that someone started called "xpkg".
Sometimes jokes get out of hand I guess.