I might be off base here, but aren't you describing
caching results of a program by your "Meta-Program"???
I do this with perl scripts all the time .
In fact CGI::Cache in CPAN is pretty good and there are others
that are also good for various situations.
"Andrei P. Nemytykh" wrote:
>
> Dear colleagues,
>
> Valentin Turchin wrote:
> > You can use supercompilation with Perl in two ways.
> > (1) Write an interpreter of Perl in Refal and use it with the existing
>supercompiler SCP4
> > (written by myself and Andrei Nemytykh). As I said above, the goal is double:
>speed-up
> > and possible invention of new ways of programming in Perl -- with heavy
>interpretation.
> > (2) Write a new supercompiler in the language of your choice. The same goals.
> >
> > Andrei Klimov and Andrei Nemytykh may write you with more detail.
\
>
> In my opinion, both possibilities can be useful.
> Sure, the second way requires much more attention.
>
> I remember an idea ( by Sergei Romanenko ). He suggests
> to use supercompiler together with a meta-program. The meta-program
> has to be a part of a concrete operating system. It is a dispatcher
> of supercompilation.
> The program has to observe the behavior of users:
> - how often a concrete Perl-program is used ?
> - maybe, some arguments of a program have a constant intrivial
> properties, so its specialized version makes sense ?
> - maybe, something else ...
>
> If the meta-program decides to transform a Perl-program, then it does
> that and creates a new residual version. After that any call to
> the original Perl-program ( within the chosen context ) is replaced
> with the residual version automatically.
>
> Sincerely,
> Andrei Nemytykh.