[pypy-dev] Re: Rtyping classes definitions?
Antonio Cuni
anto.cuni at gmail.com
Wed Apr 5 00:09:10 CEST 2006
Michael Hudson wrote:
> Er. Well. I am almost entirely sure that your current approach of
> (simplified):
>
> for graph in self.translator.graphs:
> f = Function(graph)
> f.render(self.ilasm)
>
> is not really going to work. Have you looked at how (say) genc works?
> It first computes names for everything (the 'LowLevelDatabase'), and
> then spits out the code. 'everything' includes all the types
> referenced by the graphs, and because the graphs have been rtyped, the
> types you find are things like instances of ootype.Class.
Yes, I think you are probably right. It worked until now for simple
experiments, but now I have to follow another approach, as I've just
wrote to Niklaus. I hope to commit something usable tomorrow...
ciao Anto
More information about the Pypy-dev
mailing list