Amaury Forgeot d'Arc, 20.07.2012 22:28:
> 2012/7/20 Alexander Pyattaev:
>> I think that most of the end-users would not care much and would use SWIG
>> anyway, because it is simple to do and scalable. So whatever API you decide
>> to go with, the only real problem will be to make a swig wrapper library for
>> that and about 80% of applications that use SWIG would not even need any
>> tweaks to work. I'd be able to help with those wrappers, did quite a few of
>> them so far.
> 
> I also worked a lot with SWIG, and it does not hide the interpreter API at 
> all;
> most of the time you write a %typemap, you'll need functions like
> PyString_FromString.
> (For example, the one for char**argv)
> 
> And advanced uses (callbacks, threads, directors for C++) will need advanced 
> API
> functions (like PyThreadState_New) to properly integrate the library
> with Python.

And even if you managed to get it working, you'd still have to figure out
how to make your wrapper fast enough for what you do with it, which may be
anywhere between "don't care as long as it works" and "can't use SWIG for
it at all".

Stefan


_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to