Re: [pypy-dev] Emulate pypy SIGSEGV

2017-07-09 Thread Pavlo Lavrenenko
On 07/04/2017 01:45 PM, Santa wrote: On 07/03/2017 06:04 PM, Armin Rigo wrote: I don't understand why myself. The software works as: Anyway I wrote a CFFI module with a function that dereferences NULL and called the function in the application. Did the trick I wanted. -- Best regards, Pavl

Re: [pypy-dev] Static bytecode instruction optimization and pypy (JIT?) optimization

2017-07-09 Thread rym...@gmail.com
Part of the problem is behavioral changes. If you implement tail call recursion, your tracebacks change. Common subexpression elimination will also have subtle behavioral changes. -- Ryan (ライアン) Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone elsehttp://refi64.com On Jul 9, 2

[pypy-dev] Static bytecode instruction optimization and pypy (JIT?) optimization

2017-07-09 Thread Rocky Bernstein
In looking at Python bytecode over the years, I've noticed that it does very little to no traditional static-compiler optimization. Specifically: * Dead code elmination (most of the time) * Jumps to Jumps or Jumps to the next instruction * Constant propagation (most of the time) * Common subexpres

[pypy-dev] lib_pypy/_marshal.py looks out of date for Python 3

2017-07-09 Thread Rocky Bernstein
A while back, in working on a cross-version python decompiler, I used PyPy's lib_pypy/_marshal.py. Recently in doing work in writing a cross-platform a Python bytecode assember, I noticed what is in the py3.5 branch is a bit out of date for Python 3. Specifically these types: TYPE_REF