Alex Gaynor, 13.12.2012 08:43: > Out of curiosity Stefan, if we had an alternate C-API with similar methods > (e.g. PyPyList_Append or so), but different signatures and memory model, > how hard do you think it would be to have Cython support this?
Impossible to say in that generality. If it's only about exchanging C functions, it should be doable, but if it has an impact on Cython's type system, it might turn into a horrible mess to come up with something that works in both CPython and PyPy. Also note that Cython knows a lot about reference counting internally. If that alternate C-API requires substantial changes to the way references are maintained in the C code, that would mean some work. Also note that the amount of Cython code out there that uses explicit C-API calls for one reason or another is most likely rather large. All in all, I'm not a fan of that one big revolution that will make everything beautiful, fast and shiny, but that will never happen, really. I prefer small steps that make things work. Stefan _______________________________________________ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev
