[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-dev
Subject:    Re: [pypy-dev] PyROOT with PyPy
From:       wlavrijsen () lbl ! gov
Date:       2011-05-30 17:28:47
Message-ID: alpine.LNX.2.00.1105301016470.31427 () pc3-wlav ! lbl ! gov
[Download RAW message or body]

Hi Daniel,

> I was able to remove a lot of my Numpy dependencies in my scripts but
> unfortunately I need PyROOT for some. My question is now: Is it possible
> to use PyROOT with PyPy?

no, too many hacks into CPython internals for things like lazy loading of
classes to have this to work with cpyext.

> If not, what needs to be done to get it working?

Well, there's a branch, reflex-support:

   https://bitbucket.org/pypy/pypy/src/dc3b3a380dcd

that I'm working on. Is not quite far enough along for it to be useful, and
not on the level of PyROOT by far. However, I've been taking more time for
it recently, and so development is slogging along. At this pace, it'll be
useful within a couple of months (there's a sprint planned in July, which I
expect to be the game changer).

Next to the above, for it to replace PyROOT, a wrapper on CINT would be
needed (currently, there's a thin layer on Reflex). If the amount of code
going into PyROOT is limited (e.g. only creating/plotting of histograms),
that could be given priority. The future is clang/llvm btw. ROOT itself
should have that out by Summer next year, or so I hear.

Note that there are a plethora of reasons for doing things this way, rather
than making PyROOT working with cpyext. For one, since you care about it,
speed is a lot better b/c cppyy is not a black box to the JIT.

> I'd like to contribute as much as possible to get it done.

Care to help work on cppyy?

Best regards,
            Wim
-- 
WLavrijsen@lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic