comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Multiple dispatch
Date: Wed, 15 Jun 2011 18:21:14 +0200
Date: 2011-06-15T18:21:14+02:00	[thread overview]
Message-ID: <4df8dbfa$0$7608$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <op.vw4h4pb2ule2fv@douda-yannick>

On 15.06.11 17:18, Yannick Duchêne (Hibou57) wrote:
> Le Wed, 15 Jun 2011 16:59:13 +0200, Georg Bauhaus
> <rm.dash-bauhaus@futureapps.de> a écrit:
>> You could build something around (external) tag names.
>>
>> Or you could build a compiler into an ASIS program or
>> vice versa. This should be a pretty powerful team.
> If he/she was talking about runtime introspection, the former is more advised
> (I supposed runtime introspection).

Hypothetically, you compile GNAT into a program that uses
the ASIS libraries (seems redundant, but anyway). Then,
the compiler, being part of the running program, may be
able to replace parts of the running program with
new ones that have new types in them. Based on the
program or based on information gathered at runtime.
There is

- code compiled from sources input at runtime;
  information about previous compiler runs is preserved

- code compiled from sources produced by some ASIS
  machinery;  the sources may be the product of
  the running program

- code that is possible to make because the
  compiler knows enough about the program that it has
  produced. For example, when a compiler knows the
  layout of any dispatch tables, then it can compute
  more elaborate dispatch tables as it wishes.
  Providing for code injection, say.




  reply	other threads:[~2011-06-15 16:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-11 10:13 Multiple dispatch Yannick Duchêne (Hibou57)
2011-06-11 11:52 ` Dmitry A. Kazakov
2011-06-11 13:19   ` Yannick Duchêne (Hibou57)
2011-06-11 13:57     ` Dmitry A. Kazakov
2011-06-11 18:42       ` Emmanuel Briot
2011-06-11 19:12         ` Dmitry A. Kazakov
2011-06-15 10:30       ` Natasha Kerensikova
2011-06-15 11:10         ` Yannick Duchêne (Hibou57)
2011-06-15 11:19           ` Yannick Duchêne (Hibou57)
2011-06-15 14:59         ` Georg Bauhaus
2011-06-15 15:18           ` Yannick Duchêne (Hibou57)
2011-06-15 16:21             ` Georg Bauhaus [this message]
2011-06-12  5:13 ` 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