Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Armin Rigo
Hi, On Fri, Sep 23, 2011 at 6:12 AM, Benjamin Peterson benja...@python.org wrote: What's the PyPy position on bytecode hacking? Good, bad, evil, don't mind either way? (...) Secondly, it's useless for speed when you have a JIT. Indeed, although it is not 100% true, because we also have an

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Steven D'Aprano
Benjamin Peterson wrote: 2011/9/23 Steven D'Aprano st...@pearwood.info: Hi guys, Over on the python-ideas mailing list, there is a long thread about the default argument hack in functions, used for micro-optimizations, early-binding, and monkey-patching. Various alternatives are being argued

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Benjamin Peterson
2011/9/23 Steven D'Aprano st...@pearwood.info: So the question is: would it be a burden for PyPy to make any guarantees about the stability of bytecode? I would say not without great benefit. If you're doing something that requires changing bytecode, the obvious answer is to add some syntax

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Maciej Fijalkowski
On Fri, Sep 23, 2011 at 2:06 PM, Benjamin Peterson benja...@python.org wrote: 2011/9/23 Steven D'Aprano st...@pearwood.info: So the question is: would it be a burden for PyPy to make any guarantees about the stability of bytecode? I would say not without great benefit. If you're doing

Re: [pypy-dev] Question about byte-code hacking

2011-09-23 Thread Armin Rigo
Hi, On Fri, Sep 23, 2011 at 11:27 AM, Steven D'Aprano st...@pearwood.info wrote: So the question is: would it be a burden for PyPy to make any guarantees about the stability of bytecode? The answer is: Feel free to do anything or nothing with CPython's bytecode. As Fijal says it has little to

Re: [pypy-dev] rlist and ll_delitem_nonneg index

2011-09-23 Thread Armin Rigo
Hi Zariko, On Fri, Sep 23, 2011 at 2:37 PM, Zariko Taba zariko.t...@gmail.com wrote: I hit an assert in pypy/annotation/annrpython.py in addpendingblock line 231 : assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg This is an assert that we keep hitting from time to time. Your

[pypy-dev] Student project ideas

2011-09-23 Thread Nick Wilson
I'm interested in volunteering my time to mentor a small group of senior Computer Science students at Oregon State University on a project relevant to the Python community. PyPy definitely qualifies, and I'm looking for project ideas. The project would be for their senior capstone class. Groups