[Python-ideas] Calling python from C completely statically

2018-07-08 Thread Alberto Garcia
Hi, I've been working for a while on having the entire python interpreter with all his modules statically linked in a binary that can be called with arbitrary argument which will be passed to the python interpreter. I've been able to statically compile Python in a single binary with no dependenc

Re: [Python-ideas] Calling python from C completely statically

2018-07-08 Thread Paul Moore
On 8 July 2018 at 09:01, Alberto Garcia wrote: > Hi, > > I've been working for a while on having the entire python interpreter with > all his modules statically linked in a binary that can be called with > arbitrary argument which will be passed to the python interpreter. > > I've been able to sta

Re: [Python-ideas] Calling python from C completely statically

2018-07-08 Thread Nick Coghlan
On 8 July 2018 at 21:34, Paul Moore wrote: > This question is probably more appropriate for python-list, but yes, > you certainly can do this. The "Embedded" distributions of Python for > Windows essentially do this already. IIRC, they are only available for > Python 3.x, so you may find you have

Re: [Python-ideas] Calling python from C completely statically

2018-07-08 Thread Alberto Garcia
Hey there, Yes, the part of having the pyd modules built in in library is already done. I followed the instructions in the README. What I would like to know now is how to embed the non frozen python (py) modules. Can you guys please point me in the right direction. Thank you On Sun, Jul 8, 2018

[Python-ideas] The future of Python parallelism. The GIL. Subinterpreters. Actors.

2018-07-08 Thread David Foster
In the past I have personally viewed Python as difficult to use for parallel applications, which need to do multiple things simultaneously for increased performance: * The old Threads, Locks, & Shared State model is inefficient in Python due to the GIL, which limits CPU usage to only one threa