Integrating Python, was Re: The New Product

Stefan Csomor csomor at advancedconcepts.ch
Mon May 30 06:00:19 UTC 2022


Hi Gary

Yes, sorry, I forgot to update the readme.md after adding the python 3 targets in 2019. Done now.

Thanks for spotting this,

Stefan

Am 29.05.22, 22:39 schrieb "omnisdev-en im Auftrag von Gary Giumarra via omnisdev-en" <omnisdev-en-bounces at lists.omnis-dev.com im Auftrag von omnisdev-en at lists.omnis-dev.com>:


    Thanks for including the link to GitHub, but whereas you say in your message the xcomp is “updated for Python 3” on the GitHub page itself it specifically states “Python needs a 2.7+ version, not a 3.X version”. So we can safely ignore that if we’re using Python 3.x?

    Gary Giumarra
    ggiumarra at yahoo.com

    > On May 29, 2022, at 8:15 AM, Stefan Csomor <csomor at advancedconcepts.ch> wrote:
    > 
    > Hi
    > 
    >>  But a good python integration literally opens up the whole of the python 
    >>  extensions world to be available inside Omnis.
    > 
    > I've done a presentation of Python integration into Omnis in 2008, I've also pushed the code to github, updated for Python 3, https://github.com/advancedconcepts/opython but this was rather for integrating Python into the main / GUI thread.
    > 
    > The problem with background language workers using python is that CPython itself is not very well suited to profit from multiple cores when multithreading - there still is a global object GIL (Global Interpreter Lock) that each thread has to acquire when active, so in order to really profit from multi-core / multi-processor machines you'd have to use a multi-process solution, which is a little bit more complex. (When your python multi-threaded code is primarily IO bound or effectively wrapping a c-library that itself is benefitting from multiple cores then things are different of course).
    > 
    > Just my 0.02$
    > 
    > Best,
    > 
    > 
    > Stefan
    > 
    > _____________________________________________________________
    > Manage your list subscriptions at https://lists.omnis-dev.com
    > Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 

    _____________________________________________________________
    Manage your list subscriptions at https://lists.omnis-dev.com
    Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list