Re: [pypy-dev] setting attribute of JitHookInterface instance

2016-03-18 Thread Magnus Morton
Hi Armin, Thanks for looking into this. Is this pre-translation code a general thing possible with any RPython based compiler, or is it very PyPy specific? Cheers, Magnus > On 16 Mar 2016, at 08:45, Armin Rigo wrote: > > Hi Magnus, > > On 16 March 2016 at 01:37, Magnu

Re: [pypy-dev] setting attribute of JitHookInterface instance

2016-03-15 Thread Magnus Morton
about the setup_after_space_initialization methods that makes it work there. Cheers, Magnus > On 15 Mar 2016, at 15:32, Armin Rigo wrote: > > Hi Magnus, > > On 15 March 2016 at 15:45, Magnus Morton wrote: >> Yes, it has all the methods defined. If I take out the

Re: [pypy-dev] setting attribute of JitHookInterface instance

2016-03-15 Thread Magnus Morton
Hi Amin, Yes, it has all the methods defined. If I take out the assignment, but still define a JitPolicy with the hooks, it translates fine. Cheers, Magnus > On 15 Mar 2016, at 10:48, Armin Rigo wrote: > > Hi Magnus, > > On 15 March 2016 at 03:32, Magnus Morton wrote: >&g

[pypy-dev] setting attribute of JitHookInterface instance

2016-03-14 Thread Magnus Morton
Hi, I’m attempting to use the JitHookInterface to implement something like the PyPy JIT hooks in pycket. However, I’m struggling to do anything other than print information to stdout. From what I understand in pypy, the pypyjit.hooks.pypy_hooks object is instantiated, and then after the ObjSp

[pypy-dev] Question about "__extend__" hacks (in pypyjit module)

2016-02-08 Thread Magnus Morton
Hi, In the __init__.py for the ‘pypyjit’ module there’s a comment in the ‘setup_after_space_initialization’ method "force the __extend__ hacks to occur early” (line 34) followed by two imports. What are these __extend__ hacks? Many thanks, Magnus __