[pypy-dev] okay to rename cppyy -> _cppyy

Armin Rigo armin.rigo at gmail.com
Fri Jul 21 02:36:41 EDT 2017


Hi Wim,

On 21 July 2017 at 03:17,  <wlavrijsen at lbl.gov> wrote:
>  _ffi.cdef("""
>  void _ZN6SimpleC1Ev(void*);
>  void _ZN6SimpleC1Ei(void*, int);
>  int _ZN6Simple8get_dataEv(void*);
>  void _ZN6Simple8set_dataEi(void*, int);
>  """)

Ouch, I suppose :-)  Explicit C++ mangling.  The alternative would be
to use ffi.set_source() instead of ffi.dlopen(), and use a C++
compiler again to produce the cffi binding.  This reduces cppyy to a
generator emitting a cffi build script.  But as you mentioned there
are additional issues, e.g. with instantiation of templates.


A bientôt,

Armin.


More information about the pypy-dev mailing list