[Python-Dev] AST optimizer implemented in Python (original) (raw)

Kristján Valur Jónsson kristjan at ccpgames.com
Tue Aug 14 16:33:33 CEST 2012


-----Original Message----- From: Victor Stinner [mailto:victor.stinner at gmail.com] Sent: 14. ágúst 2012 13:32 To: Kristján Valur Jónsson Cc: Python Dev Subject: Re: [Python-Dev] AST optimizer implemented in Python > The problem is, there exists only bytecode disassembler, no corresponding assembler.

Why would you like to work on bytecode instead of AST? The AST contains much more information, you can implement better optimizations in AST. AST is also more convinient than bytecode.

We already optimize bytecode. But it seems much more could be done there. It also seems like a simpler goal. Also, AST will need to be changed to bytecode at some point, and that bytecode could still be optimized in ways not available to the AST, I imagine. Also, I understand bytecode, more or less :)

K



More information about the Python-Dev mailing list