[Types-sig] Plea for help.

Paul Prescod paul@prescod.net
Fri, 10 Dec 1999 10:05:05 -0500


Jeremy Hylton wrote:
> 
> I was going to suggest that a good near-term goal for the type sig
> would be to write a Python compiler in Python, but I see that Paul has
> beaten me to it.  

Not quite. I'm not going to do anything about generating bytecodes. But
it seems to me like that would be another cool project. Someone should
do py2pyc and add it to the py2c distribution. But I'm not going to...

Yes, we will eventually want such a beast in order to allow for some
runtime checks (since changing and distributing a Python-coded compiler
is probably easier than changing the C-coded interpreter).

Here's what I *would* like to do. I would like to subclass your node 
objects and build "statically resolved" subtypes. This will be a natural
base class for a new version of py2c (which as far as I know does no
static resolution) and for an optimizing bytecode compiler.

Hopefully a big chunk of the Python 2 compiler can be written in Python
2.
-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for himself
"A writer is also a citizen, a political animal, whether he likes it or 
not. But I do not accept that a writer has a greater obligation 
to society than a musician or a mason or a teacher. Everyone has
a citizen's commitment."  - Wole Soyinka, Africa's first Nobel Laureate