You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/03/07 23:25:00 UTC
[jira] [Commented] (PROTON-2095) Move away from SWIG to CFFI
[ https://issues.apache.org/jira/browse/PROTON-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697653#comment-17697653 ]
ASF subversion and git services commented on PROTON-2095:
---------------------------------------------------------
Commit b8b6e05678d8280a4d09b786b6e99196ddb148af in qpid-proton's branch refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=b8b6e0567 ]
PROTON-2095: Add debug API to print proton object
> Move away from SWIG to CFFI
> ---------------------------
>
> Key: PROTON-2095
> URL: https://issues.apache.org/jira/browse/PROTON-2095
> Project: Qpid Proton
> Issue Type: Wish
> Components: python-binding
> Affects Versions: proton-c-0.29.0, proton-c-future
> Reporter: Omer Katz
> Assignee: Andrew Stitcher
> Priority: Major
> Fix For: proton-c-0.39.0
>
>
> SWIG is fine but we're not using it for anything other than exporting all of proton-c's API as is.
> Unfortunately SWIG only generates CPython extension bindings. This may be a problem on PyPy where CPython extensions are either slow or simply won't compile.
> Unlike SWIG, CFFI is portable both on CPython and PyPy.
> It also satisfies the same requirements as SWIG currently does.
> In addition, calls to CFFI simply release the GIL which will help parallelizing Python applications using threads.
> By using CFFI we can also get rid of all of our setup.py code and simply use it to build the extension. We will also no longer have problems building wheels.
> The newest version of CFFI supports pkg-config so we can use that to find proton-c easily.
> I'm willing to help with the refactor but I'll need a mentor since I'm not familiar with the code base.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org