What's next?

Anton Vredegoor anton at vredegoor.doge.nl
Mon Dec 30 13:17:36 EST 2002


Hello All,

my imagination goes in the direction of generating the Python
C-sourcefiles using Python scripts. A kind of SWIG but starting
from Python code.

The next step would be to write a C-compiler (in Python generated
C-code) to compile the Python C-sources into platform specific machine
code. At this stage the C-compiler could compile it's own sourcecode
so Python would be more or less selfhosting.

Generating C-code as an intermediary step is not strictly necessary of
course, because it is theoretically possible to compile Python to
machinecode directly. Compiling to C seems to be the path of least
resistance though, and the intermediary steps can be deleted one by
one as time goes by.

The end result will be some small set of machinecode primitives that
bootstrap Python on the various machines and operating systems.

These will be called by lowlevel Python code to establish higher and
higher abstractions, surpassing the level Python is on now.

Such a unified approach is like a time machine in that it changes its
own history: Higher levels of Python changing the way Python itself is
grounded in its computer architecture.

Happy New Year!

Anton.



More information about the Python-list mailing list