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 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 do with PyPy. It

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 wrote: > 2011/9/23 Steven D'Aprano : >> >> 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 b

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

2011-09-23 Thread Benjamin Peterson
2011/9/23 Steven D'Aprano : > > 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 instead. -- Reg

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

2011-09-23 Thread Steven D'Aprano
Benjamin Peterson wrote: 2011/9/23 Steven D'Aprano : 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 about. One proposal p

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 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 interpreter.

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

2011-09-22 Thread Benjamin Peterson
2011/9/23 Steven D'Aprano : > 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 > about. One proposal put forward involv

[pypy-dev] Question about byte-code hacking

2011-09-22 Thread Steven D'Aprano
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 about. One proposal put forward involves bytecode manipulations to chang