[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: [ddlm-group] EOF keyword?
- To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
- Subject: Re: [ddlm-group] EOF keyword?
- From: "Herbert J. Bernstein" <yaya@bernstein-plus-sons.com>
- Date: Sat, 31 Oct 2009 15:26:28 -0400 (EDT)
- In-Reply-To: <4AEC725E.2010405@niehs.nih.gov>
- References: <4AEC725E.2010405@niehs.nih.gov>
imgCIF is headed in the direction of multiple images per file, for thumbnails, crystal images and such. We discarded the header followed by binary approach some time ago because of that. ===================================================== Herbert J. Bernstein, Professor of Computer Science Dowling College, Kramer Science Center, KSC 121 Idle Hour Blvd, Oakdale, NY, 11769 +1-631-244-3035 yaya@dowling.edu ===================================================== On Sat, 31 Oct 2009, Joe Krahn wrote: > Although my preference is to avoid extra complexity, one addition that > may be worth considering is an EOF keyword. > > One common way to deal with binary data is to put a human-readable ASCII > header, followed by raw binary data. A file could have a "normal" UTF-8 > CIF2 header, an EOF marker, then binary data. The advantage is that the > binary data needs no encoding/decoding, and it avoids any conflicts > between character encoding. The big disadvantage is that it really only > works well for a single binary object per file. > > Perl has an __END__ keyword. It is often used to insert text > documentation at the end, without having to worry about escape codes, > etc. Maybe some people will think this is useful, or maybe not. > > Joe Krahn > _______________________________________________ > ddlm-group mailing list > ddlm-group@iucr.org > http://scripts.iucr.org/mailman/listinfo/ddlm-group > _______________________________________________ ddlm-group mailing list ddlm-group@iucr.org http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- References:
- [ddlm-group] EOF keyword? (Joe Krahn)
- Prev by Date: [ddlm-group] EOF keyword?
- Next by Date: Re: [ddlm-group] Relationship of CIF2 to legacy platforms
- Prev by thread: [ddlm-group] EOF keyword?
- Next by thread: [ddlm-group] New syntax: 'marker' characters
- Index(es):