From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47bc849aad30d586 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-09 14:27:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!ra.nrl.navy.mil!dca6-feed2.news.algx.net!allegiance!newsfeed1.cidera.com!Cidera!news-x2.support.nl!amsnews01.chello.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin7.nnrp.aus1.giganews.com.POSTED!not-for-mail Sender: Stephe@TAKVER Newsgroups: comp.lang.ada Subject: Re: A standard package for config files is needed References: <3CFAC0AD.8040504@attbi.com> From: Stephen Leake Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-GC-Trace: gv1-H0drzrUHun3o/xeg2K9u5k8M6bDSiYadefGHC4= NNTP-Posting-Date: Sun, 09 Jun 2002 16:27:36 CDT Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-PkSfQswgcXKacNukIspB+ugPldexVz/Rhd1Pgl7ng7OE67oxNxwOG3ZlD4D6ZAYISB+XGa1w767NR0t!jnArLZAwRlYsh6GIAmeQyrBTP/VAYboor/5J6pCluXV6vWUabj+wnA== X-Complaints-To: abuse@comcast.com X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Sun, 09 Jun 2002 21:27:37 GMT Xref: archiver1.google.com comp.lang.ada:25628 Date: 2002-06-09T21:27:37+00:00 List-Id: "Robert I. Eachus" writes: > Sounds like a good idea, but why all the sound and fury? Well, I don't think this discussion counts as "sound and fury" :). It started with "anybody have a good config file package". > This is what the IFF (Interchange File Format) was designed to do. > Requiring simple programs to understand ALL IFF types would indeed > be a heavy burden. I guess that's similar to picking XML as the Config File format, but only using a subset. > But IFF is designed so that data in formats your program doesn't > understand can be skipped over. One nice thing about .iff files is > that if you really have to, you can go in with a hex editor and muck > about to fix a broken file, but reading or writing an IFF file as a > byte or 16-bit word stream is fairly painless. Well, if there is no subset of IFF that is easily edited in "any old text editor", then we can't use it; that's a prime requirement. > It sounds like IFF is "merely" a top-layer grouping format; the details of any particular object are specified elsewhere. So we'd have the first four bytes be "CONF" (or "TEXT"), and IFF would have nothing to say about the rest of the file. Not much help. > How does this differ from XML? XML formatting is more about schemas, > and is entirely text based. In IFF files, 'TEXT' is just another file > format. With IFF files you can support all of the UTFx file formats > in the Unicode (and ISO 10646) standards without raising a sweat. Well, somebody has to implement it! Is there an Open Source/Free Software implementation somewhere? > So IMHO, the way to go is to provide an IFF reader/writer package, > have it support an 'XML ' data type, and go from there. Those people > who only need text support, and don't care about localization can > use XML. Those who need the whole ball of wax can create IFF files, > and support XML as a subset. If XML is a subset, this is way more power than we need. > (I believe that Electonic Arts is still maintaining the IFF > standard, but the original can be found here: > http://www.concentric.net/~Bradds/iff.html) The document mentions some "public domain" C source code, but I don't see them on the web site. -- -- Stephe