comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Data table text I/O package?
Date: Thu, 23 Jun 2005 12:34:27 +0200
Date: 2005-06-23T12:34:25+02:00	[thread overview]
Message-ID: <1hdmlhjm2n9ba.7sw8gyrzm1c3.dlg@40tude.net> (raw)
In-Reply-To: 42ba8529$0$1129$9b4e6d93@newsread4.arcor-online.net

On Thu, 23 Jun 2005 11:47:10 +0200, Georg Bauhaus wrote:

> Dmitry A. Kazakov wrote:
>> On Thu, 23 Jun 2005 00:24:30 +0200, Georg Bauhaus wrote:
>> 
>>>Dmitry A. Kazakov wrote:
>>>
>>>>But for data exchange there are better techniques than XML.
>>>
>>>Such as ...?
>> 
>> Take any middleware available.
> 
> Uhm, yes, such as ...?

CORBA, OPC (hmm), RPC etc, Ada.Streams after all.

>> No, it is still one interval that contains the true number. This is the way 
>> floating-point arithmetic functions. The result of a+b is c, such that 
>> [c'Pred, c'Succ] contains the exact result. [*] The problem is that 'Pred 
>> and 'Succ are of course machine dependent. So when you send c you should 
>> also convey the range. Depending on that the receiver should chose an 
>> appropriate internal representation for c, which might require a "true" 
>> interval.
> 
> This amounts to specifying the precise details of a floating
> point computation in a data stream; a rather special case I think.
> Take for example prices, guesstimates of future price changes,

Those are fixed point with the problems of their own. You are bound to a
definite radix, because all values need to be exact.

> insurance rates, direction of tomorrow's winds, day temperature,
> and the like.

These are fuzzy numbers. They are characterized by a distribution of
possible values. You need more than one value here. In natural languages we
are using "approximately 3.15", "between 3 and 4", "close to 5" etc.

> It seems quite enough to transmit one fpt
> number literal in these cases.

You mean a decimal literal for the case where a fixed-point decimal number
is expected. (:-))

>> Never use UDP, and you'll have no problems with that! (:-)) But seriously, 
>> do you really want to collapse all OSI levels into one big mess
> 
> No.
> 
>> and make an 
>> application responsible for error correction?
> 
> How can hard/software at OSI levels guarantee correct data?
> As soon as there is something real in there (i.e., real software,
> real hardware, real interference, humans, ...), degradation
> is possible.

That is true, but error correction codes (Hamming etc) are *known* to be
optimal. This is a hard mathematical fact. So any bandwidth available
should be invested there rather than at the application level in fancy
things like </> brackets. Further we should never mix this class of errors
with ones made by humans while writing and reading texts. These errors have
completely different nature. The first ones should be eliminated on the
transport level. The application level should consider all data free of any
errors of this kind.

>> [...]
> [XSL transformation]
> 
>> And why this nightmare cannot be written in Ada?
> 
> Because it would explode even more.

I don't believe it! (:-))

> Reading hint: if you see
> 
>   <apply-templates select="descendant::tbody"/>
> 
> forget about the mosaic impression conveyed by <-="::"/> for
> a moment and read it as
> 
>   Apply templates to the selection of descendant tbodies.
> 
> Or read the above aloud. I believe that XSL might look nightmarish
> to those who expect few characters on a PL text page, but
> if you actually read the text, it is quite natural :-)

I think this is an essence of misunderstanding of the readability issue.
You cannot control your perception. It isn't programmable. You can only
train yourself to ignore the loathing your "hardware" generates while
seeing XML! No matter how good you could be in that, it will cost you many
extra "CPU cycles" in any case. I prefer to spare my cycles. So I vote for
Ada and plain tables. (:-))

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2005-06-23 10:34 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15  9:57 Data table text I/O package? Jacob Sparre Andersen
2005-06-15 11:43 ` Preben Randhol
2005-06-15 13:35   ` Jacob Sparre Andersen
2005-06-15 14:12     ` Preben Randhol
2005-06-15 15:02       ` Jacob Sparre Andersen
2005-06-15 16:17         ` Preben Randhol
2005-06-15 16:58           ` Dmitry A. Kazakov
2005-06-15 17:30             ` Marius Amado Alves
2005-06-15 18:41               ` Dmitry A. Kazakov
2005-06-15 19:09                 ` Marius Amado Alves
2005-06-15 18:58         ` Randy Brukardt
2005-06-16  9:55           ` Jacob Sparre Andersen
2005-06-16 10:53             ` Marius Amado Alves
2005-06-16 12:24               ` Robert A Duff
2005-06-16 14:01               ` Georg Bauhaus
2005-06-16 12:27                 ` Dmitry A. Kazakov
2005-06-16 14:46                   ` Georg Bauhaus
2005-06-16 14:51                     ` Dmitry A. Kazakov
2005-06-20 11:19                       ` Georg Bauhaus
2005-06-20 11:39                         ` Dmitry A. Kazakov
2005-06-20 18:25                           ` Georg Bauhaus
2005-06-20 18:45                             ` Preben Randhol
2005-06-20 18:54                             ` Dmitry A. Kazakov
2005-06-21  9:24                               ` Georg Bauhaus
2005-06-21  9:52                                 ` Jacob Sparre Andersen
2005-06-21 11:10                                   ` Georg Bauhaus
2005-06-21 12:35                                     ` Jacob Sparre Andersen
2005-06-21 10:42                                 ` Dmitry A. Kazakov
2005-06-21 11:41                                   ` Georg Bauhaus
2005-06-21 12:44                                     ` Dmitry A. Kazakov
2005-06-21 21:01                                       ` Georg Bauhaus
2005-06-22 12:15                                         ` Dmitry A. Kazakov
2005-06-22 22:24                                           ` Georg Bauhaus
2005-06-23  9:03                                             ` Dmitry A. Kazakov
2005-06-23  9:47                                               ` Georg Bauhaus
2005-06-23 10:34                                                 ` Dmitry A. Kazakov [this message]
2005-06-23 11:37                                                   ` Georg Bauhaus
2005-06-23 12:59                                                     ` Dmitry A. Kazakov
2005-06-23 14:16                                               ` Marc A. Criley
2005-06-25 16:38                               ` Simon Wright
2005-06-16 13:26                 ` Marius Amado Alves
2005-06-16 18:10                   ` Georg Bauhaus
2005-06-30  3:02             ` Randy Brukardt
2005-06-30 18:43               ` Jacob Sparre Andersen
2005-07-01  1:22                 ` Randy Brukardt
2005-07-01  3:01                   ` Alexander E. Kopilovich
2005-07-01  5:59                     ` Jeffrey Carter
2005-07-02  1:54                     ` Randy Brukardt
2005-07-02 10:24                       ` Dmitry A. Kazakov
2005-07-06 22:04                         ` Randy Brukardt
2005-06-30 19:24               ` Björn Persson
2005-07-01  0:54                 ` Randy Brukardt
2005-07-01 21:36                   ` TSV and CSV Björn Persson
2005-07-01 22:08                     ` Martin Dowie
2005-07-02  0:05                       ` Georg Bauhaus
2005-07-02  1:10                         ` Randy Brukardt
2005-07-02  1:20                           ` Ed
2005-07-03  9:08                           ` Georg Bauhaus
2005-07-02  0:07                   ` Data table text I/O package? Georg Bauhaus
2005-07-02  1:21                     ` Randy Brukardt
     [not found]     ` <20050615141236.GA90053@pvv.org>
2005-06-15 15:40       ` Marius Amado Alves
2005-06-15 19:18         ` Oliver Kellogg
2005-06-17  9:02           ` Jacob Sparre Andersen
     [not found]       ` <7adf1648bb99ca2bb4055ed8e6e381f4@netcabo.pt>
2005-06-15 15:46         ` Preben Randhol
     [not found]         ` <20050615154640.GA1921@pvv.org>
2005-06-15 16:14           ` Marius Amado Alves
     [not found]           ` <f04ccd7efd67fe197cc14cda89340779@netcabo.pt>
2005-06-15 16:20             ` Preben Randhol
2005-06-15 19:30 ` Simon Wright
2005-06-15 22:40 ` Lionel Draghi
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox