XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Fwd: [xml-dev] RE: Formatless files



---------- Forwarded message ---------
From: Dimitre Novatchev <dnovatchev@gmail.com>
Date: Sun, Aug 14, 2022 at 2:29 PM
Subject: Re: [xml-dev] RE: Formatless files
To: Roger L Costello <costello@mitre.org>


There are many cases when we don't want "any program" to read our file. And by "read" I mean "understand / get / extract the useful information".

Consider a file that contains the hashes of (salted) network-ids and/or passwords of the users in an organization, or a smaller subset of this organization.

Thanks,
Dimitre

On Sun, Aug 14, 2022 at 2:01 PM Roger L Costello <costello@mitre.org> wrote:
"Files in the UNIX system are formatless. That means that they are simply a string of characters or bytes. Any format imposed on the data is done by the programmer rather than by the operating system. This makes programming very easy for programmers."

"Let me contrast to other operating systems where at file creation time a programmer must specify what information will be in the file, how big the file will be, etc. Once that is done the programmer is locked into it. Having locked into that kind of file, then later it becomes impossible to put another kind of data in that file. The analogy is to try to put a legal-sized document into a letter-size file. It simply won't fit."

[Roger: At file creation time an XML author must specify what the character encoding (charset) is. Once that is done the XML document is locked into that charset. Having locked into that kind of charset, then later it becomes impossible to put data with another kind of charset in that file. For example, if the file is created using the UTF-8 charset, then later you cannot insert data in the EBCDIC charset.]

"In the UNIX system you don't have this problem because data in files is formatless and data can be easily moved back and forth between files."

"Formatless files in which the data consists solely of a stream of bytes that is uninterpreted by the operating simplifies life because it means that any program can process any file. When you combine this with the concept of pipelining or stream processing, it makes UNIX an extremely powerful programming tool."

Dennis Ritchie, Ken Thompson, Brian Kernighan, Catherine Ann Brooks

https://youtu.be/XvDZLjaCJuw?t=707 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php





--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all
------------------------------------
Quality means doing it right when no one is looking.
-------------------------------------
You've achieved success in your field when you don't know whether what you're doing is work or play
-------------------------------------
To achieve the impossible dream, try going to sleep.
-------------------------------------
Facts do not cease to exist because they are ignored.
-------------------------------------
Typing monkeys will write all Shakespeare's works in 200yrs.Will they write all patents, too? :)
-------------------------------------
Sanity is madness put to good use.
-------------------------------------
I finally figured out the only reason to be alive is to enjoy it.
 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS