comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Q: type ... is new String
Date: Mon, 04 Jun 2012 22:56:01 +0200
Date: 2012-06-04T22:55:57+02:00	[thread overview]
Message-ID: <4fcd20dd$0$9519$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <zsk0ul695neq.184hx8ckz554b$.dlg@40tude.net>

On 04.06.12 19:05, Dmitry A. Kazakov wrote:
> On Mon, 04 Jun 2012 18:06:36 +0200, Georg Bauhaus wrote:
>
>> On 04.06.12 17:14, Dmitry A. Kazakov wrote:
>>
>>> malformed /= untyped.
>>>
>>> Typing is about a way to describe behavior.
>>
>> Well, yes, though in the web word, "type" may de facto mean "element type"
>> at best. The problem with strings is not that one could speak
>> about operations PUT, GET, DELETE, HEAD, and so on, and consider
>> these the behavior of something. The problem is data that cannot
>> reliably parsed and mapped to a set of properly typed objects. But
>> we still must have that information!
>
> You are mangling OSI layers.

Yes, deliberately changing layers for illustration of the layers that
may yield a type.  At my layer, every attempt at mapping
the contents of a "string" to objects of a type is doomed to failure
in case it should be general. This doesn't work without creating
a slew of types that is as vague as its input. Sometimes input is
undecidable without human intervention, so Turing completeness does
not really help. Types would have to be ever changing, and complex,
and flexible, and be developed in O(∞) of program writing time,
all since they must adapt to changing input.

> There is nothing ambiguous in character encoding,

In processing data from any source that speaks HTTP, you don't really know
the character encoding: you may be told the encoding is X but actually it
is Y. Or, you get a mix of characters encoded as X here and Y there
in the same document. Sometimes human intervention can help finding
a correct interpretation, sometimes it can't. The problem is conceptually
similar to that of determination of a calendar date, given 5/6/7 of
a document written in English, issued by a French organization, written
by a Swiss employee, processed by the usual software.


> For each possible input
> there is a defined output the parser should spill. Where is a problem?

Here is the problem: There is no complete description of the set of
possible inputs.


It's the web. Changing. Data are not quite as lucid as a set of ways
to designate a file. Is the latter set changing so frequently that the
Ada standard would not be able to follow?




  parent reply	other threads:[~2012-06-04 20:55 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-30 16:33 Q: type ... is new String tmoran
2012-05-30 17:04 ` Dmitry A. Kazakov
2012-05-31  7:37 ` Maciej Sobczak
2012-06-04  5:58   ` Yannick Duchêne (Hibou57)
2012-06-04  6:30     ` J-P. Rosen
2012-06-04  7:48       ` Yannick Duchêne (Hibou57)
2012-06-04  8:03         ` Dmitry A. Kazakov
2012-06-04  8:14           ` Yannick Duchêne (Hibou57)
2012-06-04  9:09             ` Dmitry A. Kazakov
2012-06-04 10:35         ` J-P. Rosen
2012-06-04  5:43 ` Yannick Duchêne (Hibou57)
2012-06-04 11:39 ` Brian Drummond
2012-06-04 13:36   ` Maciej Sobczak
2012-06-04 14:58     ` Georg Bauhaus
2012-06-04 15:14       ` Dmitry A. Kazakov
2012-06-04 16:06         ` Georg Bauhaus
2012-06-04 17:05           ` Dmitry A. Kazakov
2012-06-04 20:28             ` Yannick Duchêne (Hibou57)
2012-06-04 20:56             ` Georg Bauhaus [this message]
2012-06-05  7:32               ` Dmitry A. Kazakov
2012-06-05  8:40                 ` Georg Bauhaus
2012-06-05  9:06                   ` Dmitry A. Kazakov
2012-06-05 12:20                     ` Georg Bauhaus
2012-06-05 13:14                       ` Dmitry A. Kazakov
2012-06-06  4:09                       ` Shark8
2012-06-06  8:52                         ` Georg Bauhaus
2012-06-06 23:56                       ` Randy Brukardt
2012-06-07 11:15                         ` Georg Bauhaus
2012-06-06 23:51                 ` Randy Brukardt
2012-06-04 20:33         ` Yannick Duchêne (Hibou57)
2012-06-04 21:27           ` Georg Bauhaus
     [not found]             ` <m9kqs7hgii13e220b1phm46n43d92tu1pj@invalid.netcom.com>
2012-06-05  6:15               ` Georg Bauhaus
2012-06-05  6:36                 ` Yannick Duchêne (Hibou57)
2012-06-06  4:14               ` Shark8
2012-06-07  0:01             ` Randy Brukardt
2012-06-07  0:20               ` Adam Beneschan
2012-06-05 12:05     ` Brian Drummond
2012-06-05 14:43       ` Yannick Duchêne (Hibou57)
2012-06-04 15:54   ` Shark8
2012-06-04 22:01     ` Jeffrey Carter
2012-06-05 12:10       ` Brian Drummond
replies disabled

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