On 11/28/05, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > Here's a somewhat radical idea: > > Why not write the parser and bytecode compiler in Python? > > A .pyc could be bootstrapped from it and frozen into > the executable. > Is there a specific reason you are leaving out the AST, Greg, or do you count that as part of the bytecode compiler (I think of that as the AST->bytecode step handled by Python/compile.c)? While ease of maintenance would be fantastic and would probably lead to much more language experimentation if more of the core parts of Python were written in Python, I would worry about performance. While generating bytecode is not necessarily an everytime thing, I know Guido has said he doesn't like punishing the performance of small scripts in the name of large-scale apps (reason why interpreter startup time has always been an issue) which tend not to have a .pyc file. -Brett
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4