Can python embedded into c++ allow you to run n python scripts concurrently?
I am currently dealing with the dread which is the GIL. My project requires concurrency of at least 2 threads and the easy typing in Python would really help with code simplicity.
Would embedding my Python code in a C++ script which deals with the threading circumvent the problems the GIL causes?
Only if you spawn separate interpreters.
GIL is one-per-interpreter policy to protect interpreter internals. One interpreter will run one line at a time.
The only other way is to program at least one of your threads in pure C++ and offer a communication queue API to your python script or any way to communicate asynchronously really.
Python GIL: concurrent C++ embed