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]
Re: [xml-dev] Text editor mirage

> There is no vertical dimension in the XML. The XML is just a linear list of symbols:

> <Document>NL    <Greeting>Hello, world</Greeting>NL</Document>

> The invisible characters I denote by NL.


This is too-boring...

Imagine having an endless number of such characters, each of which is a normalized vector, whose components are its projections on two (why not 3 or even N orthogonal axes):

myNL(x, y) = x + i*y,  sqrt(x^2 +  y^2) = 1


Here x^2 is the probability that our measurement (what we will see) will be on the X axis.y^2 is the probability that what we expect to see will be on the Y axis. And because we are working with squared values here, the values of x and y can even be negative.


Observing the actual value that these probabilities define (while x and y are taking any allowed value) is called "measurement".


We can get any value (but based on these probabilities) as the result of a measurement. But once a measurement is produced, every next measurement produces exactly the same value. Observing a value stops/destroys the computation of this value forever. Something like a side effect on a pure computation.

This is something basic in Quantum Computations, as explained here:  https://qiskit.org/textbook/content/ch-ex/

Thanks,
Dimitre


On Mon, Dec 13, 2021 at 4:34 AM Roger L Costello <costello@mitre.org> wrote:

[Definition] Mirage: something that appears real or possible but is not in fact so.

Hi Folks,

Recently I used a text editor to open an XML document. Here’s what I saw:

<Document>

    <Greeting>Hello, world</Greeting>

</Document>

That is, at the top of the screen I saw:

<Document>

About a centimeter below I saw:

    <Greeting>Hello, world</Greeting>

And a centimeter below that I saw:

</Document>

It is a mirage.

There is no vertical dimension in the XML. The XML is just a linear list of symbols:

<Document>NL    <Greeting>Hello, world</Greeting>NL</Document>

The invisible characters I denote by NL.

The XML consists  of the < symbol followed by the D symbol followed by the o symbol followed by …

Another mirage.

There are no <, D, o, … symbols in the XML. The XML is just a series of hex digits:

3C 44 6F 63 75 6D 65 6E 74 3E 0D 0A 20 20 20 20 3C 47 72 65 65 74 69 6E 67 3E 48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 3C 2F 47 72 65 65 74 69 6E 67 3E 0D 0A 3C 2F 44 6F 63 75 6D 65 6E 74 3E

-------------------------------------

The text editor tricks us into thinking that there are 2 dimensions to XML documents and the XML document contains symbols that we recognize as letters of the alphabet, spaces, punctuation, and other symbols.

The mirage is so good, so compelling that we start to believe that an XML document is essentially a sheet of paper with vertical and horizontal dimensions and with words on the sheet of paper.

/Roger

P.S. You can replace “XML” with “JSON” or “CSV” or any other text format.



--
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