[Github-comments] [geany/geany] Is it possible to contribute to this project using Python code converted to C? (#2876)

elextr notifications at xxxxx
Wed Aug 25 12:54:04 UTC 2021


I'm not sure how you proposed to convert Python to C.  There are tools such as Cython, but they still require the Python runtime library to be present, and it would not likely be acceptable to Geany to always require the Python library to be present in a C project.  And the generated code is unlikely to fit into existing code in C.

If you are proposing to manually convert Python to C its not likely to save you much effort, and in fact is likely to lead to memory management problems because Python handles memory management, but C doesn't and you would be adding lots of code that is not needed in the Python (its not code that would not have been needed in any C code anyway, but what I mean is that there is nothing in the Python that prompts you to add memory management when you convert it to C, so its likely to be missed).

If you can't contribute C code, and I acknowledge its a learning curve that might not be worth it to you, have you considered other contributions, possibly cleaning up the manual, or adding better explanations of some of the features for example.  

It used to be possible to write plugins in Python, but that capability depended on features that were not continued from Python 2 to Python 3 so now its only available using an out-of-tree capability that supports Python 3.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/2876#discussioncomment-1233019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210825/84d17f22/attachment-0001.htm>


More information about the Github-comments mailing list