Igor Trindade Oliveira wrote: > Hi guys, > > i was talking with some pypy guys about work in this summer in GSoC with > C++ bindings to Pypy and i wrote a proposal and i like that you review it. > > Igor > > PROPOSAL: > > Problem > > Pypy are becoming one of the most used Python interpreter because it is > easy and flexible, but we still have a big problem, it does not have any > binding to any Graphical User Interface(GUI) and we have the second > problem, many GUIs are wrote in C++(like Qt or WxWidgets) and Pypy can not > access C++ code because it does not have any C API, it just can access C > code using ctypes. > > Solution > > Many solutions had been argued but the main solution is use > Reflex[2],which is developed at CERN (which has an incredible amount of > C++ libraries). It is not mainly intended for writing Python bindings for > C++ libraries but instead provides reflection capabilities for C++. The > idea is that for every C++ shared library, an additional shared library is > produced, which allows together with Reflex to introspect properties of > C++ classes, methods, etc. at runtime. These facilities are then used for > writing a small generic CPython extension module, that allows CPython to > use any C++ library for which this reflection information was generated > [3]. This approach is a bit similar to the ctypes module, apart from the > fact that ctypes does not use any reflection information, but the user has > to specify the data structures that occur in the C code herself. This > makes it sometimes rather burdensome to write cross-platform library > bindings. For PyPy the approach seems rather fitting: We would need to > implement only the generic extension module(a C language interface to > Reflex) and could then use any number of C++ libraries. > ... I wonder if py++ would help?
_______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
