> -----Original Message-----
> I moved the script to a new dedicated project on Bitbucket:
> https://bitbucket.org/haypo/astoptimizer
> 
> Join the project if you want to help me to build a better optimizer!
> 
> It now works on Python 2.5-3.3.

I had the idea (perhaps not an original one) that peephole optimization would 
be much better
done in python than in C.  The C code is clunky and unwieldly, wheras python 
would be much
better suited, being able to use nifty regexes and the like.

The problem is, there exists only bytecode disassembler, no corresponding 
assembler.

Then I stumbled upon this project:
http://code.google.com/p/byteplay/
Sounds like just the ticket, disassemble the code, do transformations on it, 
then reassemble.
Haven't gotten further than that though :)

K


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to