comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Surprise in array concatenation
Date: Fri, 09 Sep 2005 14:26:36 +0200
Date: 2005-09-09T14:25:39+02:00	[thread overview]
Message-ID: <43217f42$0$2119$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <1b3z0hyoyma05.ptmdp4uq8e3j$.dlg@40tude.net>

Dmitry A. Kazakov wrote:


>>>Believe me, convex sets (whether (1-t)a + tb belongs to the same set forall
>>>0<=t<=1) 
 > The index ranges need to be convex if you want to have your "length / 2".
> The above is the definition of a convex set.

In other words, you want the index types to include floating point numbers?


> Ada was designed as a higher level programming. If you want an assembly
> language, there are plenty of them...

Higher, not high, in any current sense of the word. It didn't
even have high level data structures of the times (APL, SETL, ...)
It is only now going to have maps or sets, iterators, quantifier approximations,
...

Certainly Ada's array are not like "assembly language arrays", but
they share a lot. Even higher level data structures like STL or Ada.Containers,
are built around a machine model. When I can't map Ada's arrays
to computer storage, does Ada serve me in systems programming? No.


>>I'm not mixing sets and elements, I'm pointing out that symbol manipulation
>>and counting are sometimes different.
> 
> 
> Care to show a difference?

Yes.


>>It's time for me to study Lewis Carrol's stories, to that I can
>>legitimately refer to Humpty Dumpty. 
> 
> 
> It is always a good reading. Though any introductory book on modern algebra
> could also help.

Provided A'First > A'Last needs help. People seem to be o.K. using
this idiom. If you don't see a way of merging this ">" with algebra,
then perhaps you could present the well working idiom to mathematicians.
Maybe they can find a theory around it that satisfies your mathematical
needs.


>>If there are 4 trees in a garden, there is really 1 tree in the
>>garden, because of modulo 3.
> 
> 
> You still missing the point, and still mixing apples and oranges.

If there is one interpretation of bit pattern 01, and the interpretation
says, 01 represents an infinite set in my problem domain, *and* I need not
distinguish the elements of the set, then still this
set is not yet considered as part of a computation.
If it becomes part of a computation, there may be other bit patterns
needed in the computation. When the problem is about an unforseeable
number of bit patterns, then even though you can interpret single
finite bit patterns to stand for infinite imaginations (sets),
you cannot do this recursivly. That is, if the problem grows, and
includes many more bit patterns, you could try to make yet another
bit pattern stand for the many more bit patterns, provided you
find one that isn't used yet. For example, intermediate results
can be stored in a comprehensive bit pattern that reuses some
bit sequences no longer needed. This process consumes variables.
There is an end to the number of variables that can be used in
any finite program (the last two words being a tautology anyway).

Try to fill a hard disk with the average number of occurences
of the digits 5 and 6 that occur in sequence in the decimal expansion
of Pi. What is going to happen?

It is similar with mathematical reals. Just try to implement
the diagonalisation method.


Turing machines have infinite tapes, desktop computers don't.
And even with Turing machines there is infinity trouble. I guess you
won't deny this?


> As a follower of Plato, you should
> address them to his philosophy.

Plato has little to say about these issues, AFAICT.

 
>>>The type of the
>>>cardinal numbers in Ada is defined as Universal_Integer.
>>>It is not the type of the elements in a set!
>>
>>Universal_Integer is subject to capacity constraints,
> 
> 
> And what's the point? This or that way, but Universal_Integer is a type
> different from one of array index.

The point here is that you can't have the mathematical
integers inside computers, just as you can't have the mathematical
reals inside a computers. Some proofs wouldn't work because for example
you can't algorithmically find a sufficiently large m_0 such that
forall m > m_0, a property holds.
 This shows that a mathematical approach that ignores properties
of computers is possibly impossible.

(1) You need the mathematics of finite sets of discrete values, and R is
not one of them. 

(2) You will then need to show that because something is more simple and
easier seen as consistent with a smaller set of rules, it will also lead to
better programs. 

I see that some algorithms can be made general when A'First > A'Last
is permitted, and that some algorithms will need an additional
 if property(A'Length) then ... else ... end if;

I don't see that the set of mathematical structures applicable
to Ada array indexing must be restricted to those that you have
mentioned in this thread.



  reply	other threads:[~2005-09-09 12:26 UTC|newest]

Thread overview: 108+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-01  3:16 Surprise in array concatenation Gene
2005-09-01  7:55 ` Dmitry A. Kazakov
2005-09-01  8:02   ` Florian Weimer
2005-09-01 11:48     ` Georg Bauhaus
2005-09-01 12:02       ` Lutz Donnerhacke
2005-09-01 13:01         ` Georg Bauhaus
2005-09-01 15:54       ` Florian Weimer
2005-09-01 16:09     ` Robert A Duff
2005-09-05  8:38       ` Jean-Pierre Rosen
2005-09-05 23:52         ` Robert A Duff
2005-09-06  9:03           ` Jean-Pierre Rosen
2005-09-07 17:57         ` adaworks
2005-09-07 20:01           ` Robert A Duff
2005-09-08  8:08             ` Jacob Sparre Andersen
2005-09-07 22:46           ` Jeffrey Carter
2005-09-08  4:43             ` Simon Wright
2005-09-08 10:36               ` Georg Bauhaus
2005-09-08 13:47                 ` Ed Falis
2005-09-08 17:03                   ` Pascal Obry
2005-09-08 16:45               ` Jeffrey Carter
2005-09-08 19:37                 ` Simon Wright
2005-09-08  6:32             ` adaworks
2005-09-08  9:09               ` Jean-Pierre Rosen
2005-09-08 16:56               ` Jeffrey Carter
2005-09-09 14:04                 ` Bob Spooner
2005-09-09 16:17                 ` adaworks
2005-09-23 23:04               ` Randy Brukardt
2005-09-14  8:57           ` Ole-Hjalmar Kristensen
2005-09-23 23:09           ` Randy Brukardt
2005-09-24 10:49             ` Larry Kilgallen
2005-09-24 20:27             ` Lurker
2005-09-25  0:20             ` Robert A Duff
2005-09-25 17:05             ` adaworks
2005-09-01 11:42   ` Georg Bauhaus
2005-09-01 13:59     ` Dmitry A. Kazakov
2005-09-01 15:36       ` Georg Bauhaus
2005-09-01 18:34         ` Dmitry A. Kazakov
2005-09-02 10:43           ` Georg Bauhaus
2005-09-02 13:11             ` Dmitry A. Kazakov
2005-09-02 14:23               ` Georg Bauhaus
2005-09-02 19:48                 ` Dmitry A. Kazakov
2005-09-02 17:21           ` Björn Persson
2005-09-01 16:04   ` Robert A Duff
2005-09-01 18:06     ` Dmitry A. Kazakov
2005-09-02 10:42       ` Georg Bauhaus
2005-09-02 13:20         ` Dmitry A. Kazakov
2005-09-02 14:14           ` Georg Bauhaus
2005-09-02 19:48             ` Dmitry A. Kazakov
2005-09-03 20:01               ` Georg Bauhaus
2005-09-04 10:13                 ` Dmitry A. Kazakov
2005-09-05 13:22                   ` Georg Bauhaus
2005-09-05 15:50                     ` Dmitry A. Kazakov
2005-09-05 18:20                       ` Georg Bauhaus
2005-09-05 18:31                         ` Georg Bauhaus
2005-09-06  8:20                         ` Dmitry A. Kazakov
2005-09-06 11:52                           ` Georg Bauhaus
2005-09-06 13:46                             ` Dmitry A. Kazakov
2005-09-06 15:51                               ` Georg Bauhaus
2005-09-06 21:32                                 ` Robert A Duff
2005-09-07  9:08                                 ` Dmitry A. Kazakov
2005-09-07 18:20                                   ` Georg Bauhaus
2005-09-07 19:07                                     ` Georg Bauhaus
2005-09-07 21:23                                     ` Dmitry A. Kazakov
2005-09-08 10:27                                       ` Georg Bauhaus
2005-09-08 11:39                                         ` Georg Bauhaus
2005-09-08 13:44                                         ` Dmitry A. Kazakov
2005-09-08 18:18                                           ` Georg Bauhaus
2005-09-09 10:06                                             ` Dmitry A. Kazakov
2005-09-09 12:26                                               ` Georg Bauhaus [this message]
2005-09-09 12:29                                               ` Georg Bauhaus
2005-09-01  8:48 ` Jean-Pierre Rosen
2005-09-01 15:57 ` Robert A Duff
2005-09-01 21:42   ` Gene
2005-09-01 22:56     ` tmoran
2005-09-05 15:53       ` Gene
2005-09-05 17:47         ` jimmaureenrogers
2005-09-05 22:13           ` Robert A Duff
2005-09-06  8:24             ` Dmitry A. Kazakov
2005-09-05 19:22         ` Jeffrey R. Carter
2005-09-05 21:54           ` Robert A Duff
2005-09-05 22:50             ` Larry Kilgallen
2005-09-05 23:46               ` Robert A Duff
2005-09-12  3:59                 ` Dave Thompson
2005-09-06 16:02             ` Jeffrey Carter
2005-09-06 21:00               ` Robert A Duff
2005-09-06  5:38         ` Pascal Obry
2005-09-05 21:48       ` Robert A Duff
2005-09-06  5:25         ` tmoran
2005-09-06 14:58           ` Robert A Duff
2005-09-06  9:26         ` Georg Bauhaus
2005-09-06 15:00           ` Robert A Duff
2005-09-07 11:02             ` Thierry Pirot
2005-09-07 20:09               ` Robert A Duff
2005-09-06 13:22         ` Bob Spooner
2005-09-06 15:30           ` Robert A Duff
2005-09-06 16:12             ` Jeffrey Carter
2005-09-06 21:21               ` Robert A Duff
2005-09-02 20:19     ` Jeffrey R. Carter
2005-09-03 12:51     ` Dr. Adrian Wrigley
2005-09-03 14:08       ` Jacob Sparre Andersen
2005-09-05  8:34         ` Jean-Pierre Rosen
2005-09-05  9:32           ` Arrays indexed by fixed point types (Was: Surprise in array concatenation) Jacob Sparre Andersen
2005-09-05 11:07             ` Jean-Pierre Rosen
2005-09-05 15:12               ` Dr. Adrian Wrigley
2005-09-05 12:14             ` Dmitry A. Kazakov
2005-09-05 13:07               ` Jacob Sparre Andersen
2005-09-05 15:10                 ` Dmitry A. Kazakov
2005-09-05 11:29           ` Surprise in array concatenation Dr. Adrian Wrigley
replies disabled

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