comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Self pointer in limited record
Date: Tue, 4 Sep 2007 10:24:44 +0200
Date: 2007-09-04T10:24:18+02:00	[thread overview]
Message-ID: <1aza6nzawgcnm.sf76q4dvzw4n$.dlg@40tude.net> (raw)
In-Reply-To: 1188850449.2630.60.camel@kartoffel.vocalweb.de

On Mon, 03 Sep 2007 22:14:09 +0200, Georg Bauhaus wrote:

> On Mon, 2007-09-03 at 21:17 +0200, Dmitry A. Kazakov wrote:
>> On Mon, 03 Sep 2007 17:55:33 +0200, Jean-Pierre Rosen wrote:
>> 
>>> Dmitry A. Kazakov a �crit :
>>>> It is difficult to see how an abstract state machine is not a type. The
>>>> very word abstract assumes generalization, reuse and instances. It is types
>>>> and generics, the tools to express the idea of instances.
>>>> 
>>> Sorry, but I beg to disagree here.
>>> 
>>> Abstraction is about the reduction of a real world objet to those 
>>> elements that are relevant for a given point of view.
>> 
>> Of just one object? I think that an abstraction always apply to a set of
>> things. What could be an abstraction of Spike, the dog?
> 
> (Hope you don't mind be stepping in here.)
> 
> The abstraction could be: Those elements of Spike that are relevant
> for the given point of view on Spike?

"Elements of Spike" is plural. Do you abstract Spike or its elements?

> I wonder, though, why then we can still talk about abstract data
> type and abstract state machine.

Abstract data type is an abstraction of concrete data types.

Abstract state machine is an abstraction of concrete state machines.

>>> A singleton is an abstraction of a single object, and does not need a 
>>> type. I don't see anything in the word abstract that assumes generalization.
>> 
>> There is little abstraction in being alone. This is actually the reason why
>> no type is need for a singleton: no abstraction, no instances, no type.
> 
> Is there little abstraction in being alone (hm, who said that being
> along is the source of the thing being an abstract?)
> or is there no abstraction?
> 
>> In my view an abstract state machine has nothing to do with singletons. A
>> state machine might be a singleton, per chance.
> 
> Could you say what you mean by "having nothing to do with"?

Let A, B be two concepts defined as subsets of some common domain set X.

_def_ A has nothing to do with B = not (A in B or B in A)

in = equal or subset of

if � were a truth-valued set measure chosen on X, then having �A you could
not deduce anything certain about �B and reverse:

   not (�A |= �B or �B |= �A)

Neither implies another.

Was that enough pedantic? (:-))

>>  But an *abstract* state
>> machine is definitely a type that generalizes many concrete state machines.
> 
> By what definition of type is an ASM a type that generalizes many
> concrete state machines (=what, in Ada terms?)?

   type State is (...);
   type Transition_Relation is array (State, State) of Boolean;
   type ASM is private;
   function Create (Initial : State; Wiring : Transition_Relation)
      return ASM;
   procedure Step (Machine : in out ASM; Input : State);

This machine is abstract because its wiring is a parameter (abstracted).
The set of states can also be abstracted, but I wished not to complicate
otherwise obvious, I hope, things.

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



  reply	other threads:[~2007-09-04  8:24 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04 19:31 Self pointer in limited record Maciej Sobczak
2007-07-05  8:22 ` Dmitry A. Kazakov
2007-07-05 10:35   ` Maciej Sobczak
2007-07-05 11:01     ` Pascal Obry
2007-07-05 11:14     ` Georg Bauhaus
2007-07-05 12:36     ` Dmitry A. Kazakov
2007-08-31 16:47 ` amado.alves
2007-08-31 17:09   ` Pascal Obry
2007-08-31 17:37   ` Adam Beneschan
2007-08-31 18:26   ` Jeffrey R. Carter
2007-08-31 19:33   ` Dmitry A. Kazakov
2007-09-01 13:33     ` Georg Bauhaus
2007-09-01 13:46       ` Dmitry A. Kazakov
2007-09-01 14:15         ` Georg Bauhaus
2007-09-01 16:03           ` Dmitry A. Kazakov
2007-09-01 19:49             ` Georg Bauhaus
2007-09-01 20:09               ` Dmitry A. Kazakov
2007-09-02 21:37                 ` Georg Bauhaus
     [not found]                   ` <re7ei5lc7dzf$.11qtcnh35jmzg$.dlg@40tude.net>
2007-09-03 10:51                     ` Georg Bauhaus
2007-09-03 14:17                       ` Dmitry A. Kazakov
2007-09-03 15:55                         ` Jean-Pierre Rosen
2007-09-03 19:17                           ` Dmitry A. Kazakov
2007-09-03 19:32                             ` Markus E L
2007-09-03 20:14                             ` Georg Bauhaus
2007-09-04  8:24                               ` Dmitry A. Kazakov [this message]
2007-09-04  9:36                                 ` Jean-Pierre Rosen
2007-09-04 10:14                                   ` Dmitry A. Kazakov
2007-09-05 10:49                                 ` Georg Bauhaus
2007-09-05 12:04                                   ` Dmitry A. Kazakov
2007-09-05 13:12                                     ` Jean-Pierre Rosen
2007-09-05 15:10                                       ` Dmitry A. Kazakov
2007-09-05 16:25                                         ` Jean-Pierre Rosen
2007-09-05 19:52                                           ` Dmitry A. Kazakov
2007-09-06  7:19                                             ` Jean-Pierre Rosen
2007-09-06  9:28                                               ` Dmitry A. Kazakov
2007-09-06 11:53                                                 ` Jean-Pierre Rosen
2007-09-06 15:35                                                   ` Dmitry A. Kazakov
2007-09-05 18:31                                     ` Georg Bauhaus
2007-09-05 19:52                                       ` Dmitry A. Kazakov
2007-09-05 21:38                                         ` Georg Bauhaus
2007-09-06  7:37                                           ` Dmitry A. Kazakov
2007-09-06 10:26                                             ` Georg Bauhaus
2007-09-06 12:25                                               ` Dmitry A. Kazakov
2007-09-08  1:27                                               ` Randy Brukardt
2007-09-06  9:14                                         ` Markus E L
2007-09-06  9:48                                           ` Dmitry A. Kazakov
2007-09-04  8:23                             ` Jean-Pierre Rosen
2007-10-31 23:59                           ` adaworks
2007-09-03 20:38                         ` Georg Bauhaus
2007-09-04  8:24                           ` Dmitry A. Kazakov
2007-09-03  7:54             ` Jean-Pierre Rosen
2007-09-01 15:33         ` Markus E L
2007-09-04 14:55           ` Adam Beneschan
2007-09-04 15:09             ` Jean-Pierre Rosen
2007-09-08  1:36               ` Randy Brukardt
2007-09-04 17:31             ` Georg Bauhaus
2007-09-08  1:16     ` Randy Brukardt
2007-09-10 16:27       ` amado.alves
2007-09-10 17:13         ` Adam Beneschan
2007-09-10 19:00         ` Dmitry A. Kazakov
2007-09-11  3:12           ` Randy Brukardt
2007-09-11  9:38             ` Dmitry A. Kazakov
2007-09-12 21:57               ` Randy Brukardt
2007-09-13  8:03                 ` Dmitry A. Kazakov
2007-09-13 21:37                   ` Randy Brukardt
replies disabled

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